The product is a membership to our organization. There are four attribute options and values for each as follows:
- transaction type: new or renewal
- membership classification: (six membership levels from student to life membership)
- location: US or non-US
- Gift?: yes or no
Each membership level has a different price. If the customer is non-US, a surcharge is applied to three of the six membership classifications to partially cover increased mailing costs for our quarterly magazine. If the surcharge was applied to all six classifications I could use the attribute option price delta feature. Since it's not, I set up two identical products, one with the price for each classification without the surcharge, and another with the surcharge applied to the three classifications. Only one product is shown to the customer, and no prices for each classification are shown where the attributes are selected. Prices are disclosed in the product description. My file in extra_cart_actions detects the membership product being added to the cart, and changes the product to the surcharged membership if the surcharge applies, that is, to one of the three membership classifications that get the surcharge and if the customer is non-US. A message is displayed to the customer if the surcharge is applied.
If a gift membership (new or renewal, any classification, any location), the same file brings up the form we have been discussing, asking for name, address, email, etc. A discussion of the process and how I got to this point is located in the General Questions forum titled "Custom form doesn't work", dated Jan 5, 2020.
The membership product(s) are not SBA products, that is, I don't track inventory for each possible combination of attributes, or for a subset of those attributes. I only track inventory at the product_id level for these two products.
Dave
Bookmarks