Hi,
Implementing direct 'add to cart' from products page.
The only open issue I have is how to present the choices prices for killo/unit.
I'm using images instead of radio buttons, and the cart receives the correct price,
But when trying to change it for view, I don't know where to find it.
The productOptions on the products collection looks like this:
{"choice":{"optionType":"drop_down","name":"choice","choices":[{"value":"killo","description":"killo","inStock":true,"visible":true,"mainMedia":null,"mediaItems":[]},{"value":"units","description":"units","inStock":true,"visible":true,"mainMedia":null,"mediaItems":[]}]}}
and the variant price is not there.
many thanks!
Dafna:)
![](https://static.wixstatic.com/media/a27d24_8c4193d2abf246f38ad3ae1e970d6a6e~mv2.png/v1/fill/w_89,h_126,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/a27d24_8c4193d2abf246f38ad3ae1e970d6a6e~mv2.png)
can you please explain what you did?
got this reference from Wix.
You cab use the function
getProductOptionsAvailability()
to get the choices variant prices with
let selectedVariant = availability.selectedVariant;
and then get the price
selectedVariant.price
follow the code, including the backend part
good luck!!!
I asked about this issue already. One of the team members said, that variant price is not implemented and it's not even in their plans :(
It's really missed point.