Jump to content

In which file is the price updated in the product page

Too Cool

Recommended Posts

in which file is the price updated in the product page, because I have installed a module attribute wizard pro but the quantity is not working! when I add the product into cart it works, it adds the product to the cart with its price and the quantity number, but when I change the quantity it doesnt update the price in the product page, so in which file is this done so that I can solve this problem?

Link to comment
Share on other sites

Hi Too cool,

Your question is a little confusing. You talk about product page, but I think you mean shopping cart page, or checkout page, right? You change the quantity with the arrows up/down, so the order changes, right? The price on the 'product page' as you described, I don't expect to change, as it is just the normal fixed price per product. Please elaborate here a little.


What PS version do you use?


In, I would start with the files:


and from there see what happens when you add a product/change the amount.


Somewhere in here you see code like this:



public function updateQty($quantity, $id_product, $id_product_attribute = null, $id_customization = false,

$operator = 'up', $id_address_delivery = 0, Shop $shop = null, $auto_add_cart_rule = true)




the second file to look at is:



here I expect the quantity change to happen when pressing the up/down button.

Have a look at the code:



public function ajaxProcessUpdateQty()





and from there see what happens when you change the amount.



Maybe start a look here, and see if it gives some clues.


My 2 cents,


Link to comment
Share on other sites

Hi PascalVG,

I have a little diffrent question I hope that you could help me.


I am trying to edit just a look of the quantity buttons, but I have no idea where, because I found them on three places in shopping-card-product-line.tpl in shopping-cart.tpl and

inside order-address-product-line.tpl, but none of them didn't react to the changes.


all I want is just remove the image of quantity buttons and replace it with different img.


I am using prestashop 1.5.4 and default theme

Edited by xezus (see edit history)
Link to comment
Share on other sites

Hi xezus,


I see some Buttons Up/Down here:

/themes/<your theme folder>/img/icon/quantity_up.gif

/themes/<your theme folder>/img/icon/quantity_down.gif


Not sure if there are more. Please change these first, and if there are some left out, please send me a link to that page.


Hope this helps,



(You can check many things with Google Chrome browser. Right click on a spot in the page where you want to know more about, and choose the "Inspect element" item. You will see code and css of element. You can even real time change css here :-) )

Edited by PascalVG (see edit history)
Link to comment
Share on other sites

Thanks this is also solution, but my problem is that even if I delete the img tag (img tag containing button image) inside shopping-cart.tpl, order-address-product-line.tpl or shopping-card-product-line.tpl. Nothing happen in output the img tag is still there so I don't know where make those changes to change the HTML structure.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...