Corporate / Franchise Pricing

Hi,

We have a requirement to sell custom products that will only be available to a select number of customers.

We have customized our liquid them so that if the customer tag contains a certain word these custom products will be visible. The products were also tagged so that they are hidden for anyone that is not logged in.

Another requirement is the each custom product should have 2 pricing levels. Corporate and Franchises. We started playing with JSON metafields to store pricing which successfully changes on the product page, unfortunately when you add the product to your CART, the pricing shown on the product page is not applied to the items in the cart. The cart seems to go back and get the pricing from the product page.

Has anyone overcome this issue or could offer some information.

Note: I do not want to install any 3rd party Apps. I would rather code this myself.

Thanks

Yann

24 hrs later… No replies but we found a way to do this.

It is a bit of a workaround but we end up adding variants to our products which allowed us to have 2 prices for each item. We coded it so that it shows the pricing for the correct variant depending on the customer tag. The drop down that typically appears for the variant choice has been hidden via liquid and it is forced to select the proper variant based on the customer tag.

This achieves the desired result as when you add the item to the cart, the proper pricing / item variant is added the cart. This is all transparent to the customer.

1 Like