Defining Available Terms

For some stores, it is important to control which contract terms (the duration in months) are available for particular products.

The WooCommerce HeidiPay Checkout Plugin supports the supply of "available terms" for each product in the basket. This attribute limits which term the customer can select when they are redirected to the HeidiPay checkout. For example, if the merchant is configured for 3, 6 and 12 month contracts with HeidiPay, but wants to limit a particular product to just Pay-in-3, they can configure an attribute on the product. This attribute is sent to HeidiPay and used to adjust the "select schedule" in the HeidiPay Checkout screen appropriately.

WooCommerce and Pods

🚧

Instal at your own risk

We only recommend the Pods plugin. If you choose do install it, you do so at your own risk.

  1. Go to "Plugins" and click "Add new"
376
  1. Search for "Pods - Custom content Types and Fields". Install and Activate the plugin.
582
  1. Navigate to "Pods Admin" and "Edit Pods".
167
  1. Choose to "Extend existing" and select the "Post" content type and "Products" post type.
844
  1. Add a field with a label and name. Change the field type to "Relationship" and add some options in the way shown below.
969
  1. Change the "Relationship Options" Selection Type to "Multiple select" and the Input Type to "List view".
966
  1. Navigate to any product in your product catalogue. You should now see a "More Fields" section at the bottom of the page, where you can select multiple allowed terms.
1069
  1. Finally, navigate to the HeidiPay plugin settings and enter the name of your attribute into the "Allowed terms attribute name" field.
734