oc-shopaholic-plugin icon indicating copy to clipboard operation
oc-shopaholic-plugin copied to clipboard

Multiple properties

Open skacco opened this issue 4 years ago • 1 comments

Hi,

I need to have 2 select dropdown (or radio button) to choose from and update the price accordingly.

For example, a jeans offer would have a Size and a Color properties. Size: S, M, L, XL Color: Blue, Black, Red Each combination has his own price.

on the product page: 2 select dropdown, one to select the size and the other one to select the Color. upon the choice of the size and the color, the price would be updated accordingly on the product page.

I have already create offers for all possible combinations of colors and sizes. I have show 2 select with possible variants of properties. I need to have the ajax code to update pricing, photos and others.

skacco avatar Jul 30 '20 12:07 skacco

Hi! We do not have ready-made solution for implementing such complex logic of choice. We usually make products of different colors as related products. It's better for SEO and easier to implement.

You can display prices for combinations in attributes or json objects. You can write your own custom component that will return response in json format that you need, receiving OfferItem object

kharanenka avatar Aug 03 '20 13:08 kharanenka