Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

JS - CustomOption Price + Product Price
 
elfling
Enthusiast
 
Avatar
Total Posts:  901
Joined:  2008-10-21
 

Hey Everyone,

Not such a big problem, but I can\’t work this out for the life of me.

The old code, which would get me the product price and the custom price added to it

optionsPrice.productPrice price

however, the new code is leaving me a little stumped.

The changes in the code that leave me stumped are that this

price += parseFloat(this.config[optionId]);

has been changed to

optionsPrice.addCustomPrices(optionId \'-\' selectOption.valuecurConfig);

So… price is now an undefinded variable in the js.

So, my question is… how the heck do I get the custom price again through my JS code?

The following do not work

optionsPrice.productPrice optionsPrice.CustomPrices
optionsPrice
.productPrice optionsPrice.CustomPrice
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top