Magento Forum

   
How is being price updated on product page depending on the product custom options
 
hgrzesiek
Jr. Member
 
Total Posts:  12
Joined:  2009-01-05
 

Hi all,
I’m really new to magento so my question is How is being price updated on a product which is chosen from the product options drop down. For example we have a product which cost 80 and a color attribute blue 100, gray 120. could anyone point me to the right functions or files where should i look for it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive_br
Guru
 
Avatar
Total Posts:  653
Joined:  2008-05-19
Buenos Aires, Argentina
 

Try looking at template/catalog/product/view.phtml
One of the first lines has this:

<script type="text/javascript\">
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
</script>

You should check that and product.js in js/varien/, there should be the code for changing the configurable product price.

--
Ezequiel

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top