Variation Price (only for Magento Configurable and Bundle Products) – select a price source for the Item variations:- Main Product – the price value for Item variations will be taken from Magento Parent Product.- Associated Products – the price values for Item variations will be taken from the relevant Magento Child Products. Add percentage discount for individual product in magento. You can set this using Catalog Price Rules. You can access this in backend from Top Navigation Promotions Catalog Price Rules. You can specify products valid for this rule using their attribute value. With the Advanced Product Options extension, you can: set an individual price for any custom option, configure the option's absolute price to replace the original one, define an option’s price as ‘one-time’ (the custom price will be added only once despite the quantity of the products added to cart).
In Magento product view page,
I need to call 3rd party API with product option to get product price,and I need to change the product price dynamically.
How can I update the product price in view page so that I can pass right price to cart?
I tried adding this input tag in options.phtml,
and I click 'Add to cart' button, but the price is not changed in cart page.
please advise me,
Expert wanna beExpert wanna beYou will not be able to set custom price in this way because when magento add a products to cart it does not take price from the form post data.
In magento,there is option of setting custom price of product at run time.So you have to call a observer on checkout_cart_product_add_after event and in that observe,get the custom price from the form post data and set the product custom price in following way: