I'm working on a site/shop with a configurable product. This product is very specific and technical but in this ticket I'll use a simpler product to explain.
The product is configurable in dimensions so length and width. Imagine a carpet or a wooden board. So you have the dimensions 3m x 2m and that times the base square meter price of the material. for example €10 in this calculation €50 total. Nothing special up to this point, works in WPC Product options.
But there is a extra field we define in WPC PO. Coating: a manually applied coating on the product and because it's applied after, it's price also needs to be defined after. So it adds for example €5 per square meter on top of the price.
Is there a way to link these WPC PO fields to each other?
So my dimensions-field #wpcpo-dimensions has the formula:
(p*((d1/1000)*(d2/1000)))-p
(mm to meter conversion, and addition on the base price)
And for my coating I want my coating field #wpcpo-coating to do something like:
- Add €5 to baseprice. I know I can make a variation but there are a few more fields like this and just adds to the complexion of variations.
(practically same calculation, coating price times dimensions and add to total price. Just as above but add reference from other field)
Is there a way to achieve this or do we need to add a lot of extra complexity for the client in form of extra variations (which I would only like to do as a last resort)?
Hi there,
I'm working on a site/shop with a configurable product. This product is very specific and technical but in this ticket I'll use a simpler product to explain.
The product is configurable in dimensions so length and width. Imagine a carpet or a wooden board. So you have the dimensions 3m x 2m and that times the base square meter price of the material. for example €10 in this calculation €50 total. Nothing special up to this point, works in WPC Product options.
But there is a extra field we define in WPC PO. Coating: a manually applied coating on the product and because it's applied after, it's price also needs to be defined after. So it adds for example €5 per square meter on top of the price.
Is there a way to link these WPC PO fields to each other?
So my dimensions-field #wpcpo-dimensions has the formula:
(p*((d1/1000)*(d2/1000)))-p
(mm to meter conversion, and addition on the base price)
And for my coating I want my coating field #wpcpo-coating to do something like:
- Add €5 to baseprice. I know I can make a variation but there are a few more fields like this and just adds to the complexion of variations.
- (v*((<#dimensions D1>/1000)*(<#dimensions D2>/1000))))
(practically same calculation, coating price times dimensions and add to total price. Just as above but add reference from other field)
Is there a way to achieve this or do we need to add a lot of extra complexity for the client in form of extra variations (which I would only like to do as a last resort)?
Gr
Hi Mike,
Try configuring it as follows:
#1. Set the product price to 0 to only calculate the price based on the options.
#2. Set the Coating and Dimensions as shown below:
Here, you will use a hidden parameter 's'.
The final result will look like this (video): https://app.screencast.com/zK6AGk1LAYgHm
Best regards,
Dustin