Too Cool Posted April 15, 2013 Share Posted April 15, 2013 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 More sharing options...
PascalVG Posted April 15, 2013 Share Posted April 15, 2013 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 1.5.3.1, I would start with the files: classes/Cart.php 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: controllers/admin/AdminCartsController.php 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, Pascal Link to comment Share on other sites More sharing options...
xezus Posted April 18, 2013 Share Posted April 18, 2013 (edited) 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 April 18, 2013 by xezus (see edit history) Link to comment Share on other sites More sharing options...
WStefanko Posted April 18, 2013 Share Posted April 18, 2013 Have you contacted Tomer at presto-changeo? I believe he is the creator of the module. Link to comment Share on other sites More sharing options...
xezus Posted April 18, 2013 Share Posted April 18, 2013 No, I don't use any module just basic theme. Link to comment Share on other sites More sharing options...
PascalVG Posted April 18, 2013 Share Posted April 18, 2013 (edited) 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, pascal (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 April 18, 2013 by PascalVG (see edit history) Link to comment Share on other sites More sharing options...
xezus Posted April 18, 2013 Share Posted April 18, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now