1. How To Change Main Product Price Of Multilayered Product Magento Tutorial
  2. How To Change Main Product Price Of Multilayered Product Magento List

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?

How To Change Main Product Price Of Multilayered Product Magento Tutorial

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 be
3,75215 gold badges75 silver badges130 bronze badges
How to change main product price of multilayered product magento download

1 Answer

You 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.

How To Change Main Product Price Of Multilayered Product Magento List

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:

Ankur GoyalAnkur Goyal
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged magento or ask your own question.

Coments are closed
Scroll to top