zoltan1234 Posted March 31, 2014 Share Posted March 31, 2014 (edited) I've just installed the latest version of Presta - PrestaShop 1.6.0.5. For now I've only modifed style.css and colouring some elements of the basic template. A problem occurred when I wanted to add a product. Namely, the price of each product on the homepage ( the sliders with the new and popular items) is 0,00 but after moving directly to a product, the regular price shows up correctly, for example 135,00 . No taxes fixed, no price rules. I cleaned cache after each attempt to fix the problem. I also tried to disable block navigation module but without any effect. Am I doing smthg wrong? Edited March 31, 2014 by zoltan1234 (see edit history) Link to comment Share on other sites More sharing options...
clalla Posted April 3, 2014 Share Posted April 3, 2014 i have same problem but only few pruducts, not all Link to comment Share on other sites More sharing options...
AZC Posted April 3, 2014 Share Posted April 3, 2014 Can you post a link? so we can see clearly? Thanks Link to comment Share on other sites More sharing options...
clalla Posted April 4, 2014 Share Posted April 4, 2014 http://astranailsshop.it/astra/index.php?id_category=66&controller=category&id_lang=5 in category page price 0.00 but if add to cart the price is right..... Link to comment Share on other sites More sharing options...
J.Sahu Posted April 4, 2014 Share Posted April 4, 2014 Try this commit. https://github.com/PrestaShop/PrestaShop/commit/6b1a4e39f6fec68d159bc45bfcb823624016b4b3 Link to comment Share on other sites More sharing options...
AZC Posted April 4, 2014 Share Posted April 4, 2014 Try putting this in your product.tpl tell me if it helped <!-- quantity wanted --> {if !$PS_CATALOG_MODE} <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {literal} <script type="text/javascript"> $(document).ready(function(){ $('#quantity_wanted').val(1); $('btn btn-default button-plus product_quantity_up').on('click',function(){ if (isNaN(parseInt($('#quantity_wanted').val()))){$('#quantity_wanted').val(1);} else {$('#quantity_wanted').val(parseInt($('#quantity_wanted').val())+1);} }); $('btn btn-default button-minus product_quantity_down').on('click',function(){ if (isNaN(parseInt($('#quantity_wanted').val()))){$('#quantity_wanted').val(1);} else { if(parseInt($('#quantity_wanted').val())<=1){ } else {$('#quantity_wanted').val(parseInt($('#quantity_wanted').val())-1);[spam-filter] }); }); </script> {/literal} <label>{l s='Quantity:'}</label> <input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}" size="2" maxlength="3" {if $product->minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> Link to comment Share on other sites More sharing options...
evil87 Posted April 4, 2014 Share Posted April 4, 2014 (edited) I have the same problem! What is going on ? Edited April 4, 2014 by evil87 (see edit history) Link to comment Share on other sites More sharing options...
kollek Posted April 12, 2014 Share Posted April 12, 2014 The same problem after upgrade from 1.6.0.5 to 1.6.0.6 Link to comment Share on other sites More sharing options...
El Patron Posted April 12, 2014 Share Posted April 12, 2014 I have seen this issue reported 'frequently' on the forum. Many community member resolved by re-index block layered module. Link to comment Share on other sites More sharing options...
GN Digital Posted April 12, 2014 Share Posted April 12, 2014 I have same problem but only page pruducts all price 0.00 Category all price ok Link to comment Share on other sites More sharing options...
El Patron Posted April 12, 2014 Share Posted April 12, 2014 I have seen this issue reported 'frequently' on the forum. Many community member resolved by re-index block layered module. I have same problem but only page pruducts all price 0.00 Category all price ok Topics can not generally be resolved without reviewing the thread and responding to the posts. did you read other posts and try anything? Link to comment Share on other sites More sharing options...
AZC Posted April 12, 2014 Share Posted April 12, 2014 @kollek yes. It was sorted as above. But since upgrade only the regular price works the combination price no longer works. I'm working on it... Will update Link to comment Share on other sites More sharing options...
GN Digital Posted April 12, 2014 Share Posted April 12, 2014 This problem happened after upgrading from vers. 1.6.0.5 to 1.6.0.6 All price Category is ok all product 0.00 I've seen other post, to no avail de solution now talk about script Link to comment Share on other sites More sharing options...
GN Digital Posted April 12, 2014 Share Posted April 12, 2014 Fixed the problem JavaScript problem Updated the JavaScript thema 1.6.0.5 to 1.6.0.6 Link to comment Share on other sites More sharing options...
AZC Posted April 12, 2014 Share Posted April 12, 2014 @gn digital can you please explain. Link to comment Share on other sites More sharing options...
GN Digital Posted April 12, 2014 Share Posted April 12, 2014 hi copy all js folder ver.1.6.0.6 to my themes ver 1.6.0.5 Is problem have upgrade vers 1.6.0.5 to 1.6.0.6 Link to comment Share on other sites More sharing options...
cip_invest Posted April 13, 2014 Share Posted April 13, 2014 Got the same problem. I have tried to solve as GN Digital said but no luck Best Regards Link to comment Share on other sites More sharing options...
clalla Posted April 14, 2014 Share Posted April 14, 2014 SOLVED !! I have tried to clear cache_default_attribute Solution:UPDATE `ps_product` SET `cache_default_attribute` = 0;UPDATE `ps_product_shop` SET `cache_default_attribute` = 0; 6 1 Link to comment Share on other sites More sharing options...
sweetserendipity Posted April 14, 2014 Share Posted April 14, 2014 SOLVED !! I have tried to clear cache_default_attribute Solution: UPDATE `ps_product` SET `cache_default_attribute` = 0; UPDATE `ps_product_shop` SET `cache_default_attribute` = 0; clalla, Can you tell me how to do this step by step? I'm assuming this is something I do in the SQL Manager, but I don't know a lot about it. 1 Link to comment Share on other sites More sharing options...
JODY44 Posted April 14, 2014 Share Posted April 14, 2014 (edited) I have the same problem also. I did tried upload the JavaScript theme 1.6.0.5 to 1.6.0.6 the price show up but attribute price still not show and not change when select attribute but when added to cart it show prices in cart. and I’m not an expert on scripts, please help ! how to fix this. Edited April 14, 2014 by JODY44 (see edit history) 1 Link to comment Share on other sites More sharing options...
clalla Posted April 15, 2014 Share Posted April 15, 2014 yes paste in SQL to change database Link to comment Share on other sites More sharing options...
kollek Posted April 15, 2014 Share Posted April 15, 2014 (edited) @clalla - it dosen't work for me. I tried so many things and nothing help me. Did I miss something? I'm confused. Edited April 15, 2014 by kollek (see edit history) Link to comment Share on other sites More sharing options...
kollek Posted April 15, 2014 Share Posted April 15, 2014 The funniest is that I see the price on product card for awhile and then the price disappears. 2 Link to comment Share on other sites More sharing options...
AroJazz Posted April 17, 2014 Share Posted April 17, 2014 The same problem... Link to comment Share on other sites More sharing options...
elyo-luk Posted April 17, 2014 Share Posted April 17, 2014 Same here... I think the problem is the product.js of the theme. I try to add the product.js + product.tpl of the default and it's okay... Link to comment Share on other sites More sharing options...
AroJazz Posted April 17, 2014 Share Posted April 17, 2014 Actually it's not okay, if i change a product attributes with different prices, the final price rest the same. Link to comment Share on other sites More sharing options...
Johan WALTER Posted April 18, 2014 Share Posted April 18, 2014 I also have the same problem ! Does anyone has a fix ? Link to comment Share on other sites More sharing options...
AZC Posted April 18, 2014 Share Posted April 18, 2014 At the moment the only fix that works is updating the product.js page in your theme. Use this one: https://github.com/PrestaShop/PrestaShop/blob/1.6/themes/default-bootstrap/js/product.js However this does not solve the problem that the price does not change with quantity or with combination. 2 Link to comment Share on other sites More sharing options...
elyo-luk Posted April 18, 2014 Share Posted April 18, 2014 At the moment the only fix that works is updating the product.js page in your theme. Use this one: https://github.com/PrestaShop/PrestaShop/blob/1.6/themes/default-bootstrap/js/product.js However this does not solve the problem that the price does not change with quantity or with combination. The problem is that that fix is not compatible with all themes... Link to comment Share on other sites More sharing options...
AZC Posted April 18, 2014 Share Posted April 18, 2014 The problem is that that fix is not compatible with all themes... I get you. What about comparing the product.js from the default theme and the product.js of whatever theme you may be using? Link to comment Share on other sites More sharing options...
Johan WALTER Posted April 18, 2014 Share Posted April 18, 2014 Thanks AZC Your solution does display the price on product page but I don't have the button ADD TO CART any more Link to comment Share on other sites More sharing options...
elyo-luk Posted April 18, 2014 Share Posted April 18, 2014 I get you. What about comparing the product.js from the default theme and the product.js of whatever theme you may be using? I tried, and it too difficult... A lot of new variables... Link to comment Share on other sites More sharing options...
sdc0d3c Posted April 18, 2014 Share Posted April 18, 2014 I have the same problem also. I did tried upload the JavaScript theme 1.6.0.5 to 1.6.0.6 the price show up but attribute price still not show and not change when select attribute but when added to cart it show prices in cart. and I’m not an expert on scripts, please help ! how to fix this. I have the same problem. It looks like the JS code stopped running in the page of products, because menu and cart stop working too... I hope we find the fix soon. Link to comment Share on other sites More sharing options...
indus Posted April 19, 2014 Share Posted April 19, 2014 (edited) Strange, i dont have this problem with the default theme, but with my custom theme. Price displays correct during page load and then reverts back to zero after page load completes. Mine is a direct upgrade from 1.5.6 to 1.6.0.6. Also, my problem is only on product page, it is fine on homepage. Edit : I tried the github file posted above and that solved the price problem, but my add to cart animation and hover stopped working. And the price does not change either for the combinations. Edited April 19, 2014 by indus (see edit history) Link to comment Share on other sites More sharing options...
Wesleyva Posted April 19, 2014 Share Posted April 19, 2014 (edited) I'm glad not to be the only one with this problem, but a fix would be very nice! Edited April 19, 2014 by Wesleyva (see edit history) Link to comment Share on other sites More sharing options...
Johan WALTER Posted April 19, 2014 Share Posted April 19, 2014 Hi Guys, To solve the problem, go to ADVANCED PARAMETERS > PERFORMANCE > CCC (Combine, Compress and Cache) and activate Smart cache for JavaScript It solved the problem for me, the price displays with combinations I haven't made some test with combinations increasing a price Can you guys please confirm that this solves the problem for you too and if someone has tested with price increase on combinations 1 Link to comment Share on other sites More sharing options...
Johan WALTER Posted April 19, 2014 Share Posted April 19, 2014 Activate CCC (Combine, Compress and Cache) solves problem of price display but creates a problem in the order steps to place an order, the different order steps are not visible, only the one active and the address are not visible on step 3 Link to comment Share on other sites More sharing options...
AZC Posted April 19, 2014 Share Posted April 19, 2014 Doesn't seem to help with combinations though Link to comment Share on other sites More sharing options...
sdc0d3c Posted April 20, 2014 Share Posted April 20, 2014 Activate CCC (Combine, Compress and Cache) solves problem of price display but creates a problem in the order steps to place an order, the different order steps are not visible, only the one active and the address are not visible on step 3 I tried activating CCC, and it didn't help to me Doesn't seem to help with combinations though I just discovered it happens with the products that have combinations assigned. The price shows up for one second and then it becomes to 0,0, so we can say it is a problem related to the javascript files (product.js) and related to the combination's configuration also. I hope someone find the fix soon 1 Link to comment Share on other sites More sharing options...
sightless Posted April 21, 2014 Share Posted April 21, 2014 Have this issue as well... need a fix! So sad... Maybe will have to revert to 1.5 =/ Link to comment Share on other sites More sharing options...
El Patron Posted April 21, 2014 Share Posted April 21, 2014 please review this forge report, it might help someone having this issue. http://forge.prestashop.com/browse/PSCSX-1835 Note: if this does not fix 'your' issue, please open a forge report using the link above and POST that link here so other can vote and follow the bug report. 2 Link to comment Share on other sites More sharing options...
Johan WALTER Posted April 21, 2014 Share Posted April 21, 2014 please review this forge report, it might help someone having this issue. http://forge.prestashop.com/browse/PSCSX-1835 Note: if this does not fix 'your' issue, please open a forge report using the link above and POST that link here so other can vote and follow the bug report. Thanks for the link ! It works for me ! 1 Link to comment Share on other sites More sharing options...
M.Nour Posted April 22, 2014 Share Posted April 22, 2014 Hi all I have a same problem after install a mega theme , I solve it by delete this line : $('#our_price_display').text(our_price); from product.js which locate on theme path . I dont knew if this solution is good but it work with me. best 2 Link to comment Share on other sites More sharing options...
Xavier du Tertre Posted April 22, 2014 Share Posted April 22, 2014 Hi, A month ago, we found a bug on 1.6.0.5: whenever you'd set up a group reduction of 10%, the products would display a 90% reduction (the initial feature had been tested with a 50% reduction and that's how it ended up in the final version). Then, Julien committed this fix: https://github.com/PrestaShop/PrestaShop/commit/75692e60d3ed91f7fa9fffaa89c668de5f81db81 Basically replacing {$group_reduction} with {1-$group_reduction} in themes/yourthemename/product.tpl and merging this in the 1.6.0.6 release. So 1.6.0.6 is clean! However, some of you are facing a problem because you are using a theme that was developed from the standard theme of PrestaShop 1.6.0.5. If you combine our fix with a theme that was developed on the previous version of PrestaShop, you get a multiplier equal to {1-1}. And that's why you have prices at $0. Please check this forge reports and the comments. You'll easily find out how to fix your prices display! http://forge.prestashop.com/browse/PSCSX-1835 6 Link to comment Share on other sites More sharing options...
Wesleyva Posted April 22, 2014 Share Posted April 22, 2014 (edited) Wow problem solved! Great thank you Xavier! Now i can sleep again... Edited April 22, 2014 by Wesleyva (see edit history) Link to comment Share on other sites More sharing options...
hhhans1 Posted April 25, 2014 Share Posted April 25, 2014 Hi, A month ago, we found a bug on 1.6.0.5: whenever you'd set up a group reduction of 10%, the products would display a 90% reduction (the initial feature had been tested with a 50% reduction and that's how it ended up in the final version). Then, Julien committed this fix: https://github.com/PrestaShop/PrestaShop/commit/75692e60d3ed91f7fa9fffaa89c668de5f81db81 Basically replacing {$group_reduction} with {1-$group_reduction} in themes/yourthemename/product.tpl and merging this in the 1.6.0.6 release. So 1.6.0.6 is clean! However, some of you are facing a problem because you are using a theme that was developed from the standard theme of PrestaShop 1.6.0.5. If you combine our fix with a theme that was developed on the previous version of PrestaShop, you get a multiplier equal to {1-1}. And that's why you have prices at $0. Please check this forge reports and the comments. You'll easily find out how to fix your prices display! http://forge.prestashop.com/browse/PSCSX-1835 Hi, Thank you for your support...but i didn't managed to have the fix working. In mytheme/product.tpl i have the following two lines wich contain $group_reduction first is <p id="old_price" class="{if (!$product->specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} hidden{/if} pull-left"> and second is {addJsDef group_reduction=$group_reduction} How do i change them to have prices not showing 0 for combinations? What is working, is the reduction amount, which is changing according the setup in combinations. What is not working is the price which is 0 no matter what combination i choose (changed already default combo with other) and the old price for what i apply the reduction. The old price remain the price settled for default combination. With anticipated thanks for help, Cristian Link to comment Share on other sites More sharing options...
idealhair Posted April 25, 2014 Share Posted April 25, 2014 How do i change them to have prices not showing 0 for combinations? What is working, is the reduction amount, which is changing according the setup in combinations. What is not working is the price which is 0 no matter what combination i choose (changed already default combo with other) and the old price for what i apply the reduction. The old price remain the price settled for default combination. With anticipated thanks for help, Cristian i've the same problem Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 Try taking this out of product.js $('#our_price_display').text(our_price); I think it might help for the 0 As far as the old price, i have the same problem, combination price changes, but when i change quantity all i get is the default price. http://azcoweb.com/web1/prestashop/grape-juice/24-kedem-natural-white-grape-juice.html Link to comment Share on other sites More sharing options...
hhhans1 Posted April 25, 2014 Share Posted April 25, 2014 Try taking this out of product.js $('#our_price_display').text(our_price); I think it might help for the 0 As far as the old price, i have the same problem, combination price changes, but when i change quantity all i get is the default price. http://azcoweb.com/web1/prestashop/grape-juice/24-kedem-natural-white-grape-juice.html yesterday i tried your solution. The comportament is odd. It display the right price for default combo, but it break add to cart button, and also don't change for other combo that i have. So, this is no go, but thanks for help. Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 yesterday i tried your solution. The comportament is odd. It display the right price for default combo, but it break add to cart button, and also don't change for other combo that i have. So, this is no go, but thanks for help. In what way does it break the add to cart button? Link to comment Share on other sites More sharing options...
idealhair Posted April 25, 2014 Share Posted April 25, 2014 yesterday i tried your solution. The comportament is odd. It display the right price for default combo, but it break add to cart button, and also don't change for other combo that i have. So, this is no go, but thanks for help. In my shop it display the right price for default combo, but for other combo, the price not changed. I've ADD TO CART BUTTON and in cart price is right. Example: http://niebieskiejablko.pl/glowna/1516-tygrysek-kolorowa-naklejka-scienna-wycieta-po-obrysie.html combo 25cm is 24.90 combo 47cm is 39.00 in cart is ok. the price not change on product.tpl card Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 In my shop it display the right price for default combo, but for other combo, the price not changed. I've ADD TO CART BUTTON and in cart price is right. Example: http://niebieskiejablko.pl/glowna/1516-tygrysek-kolorowa-naklejka-scienna-wycieta-po-obrysie.html combo 25cm is 24.90 combo 47cm is 39.00 in cart is ok. the price not change on product.tpl card Try this: http://www.prestashop.com/forums/topic/325496-showing-total-price-when-changing-quantity/?do=findComment&comment=1649592 Link to comment Share on other sites More sharing options...
hhhans1 Posted April 25, 2014 Share Posted April 25, 2014 In what way does it break the add to cart button? Sorry, it break custom price for combinations i have a product, with 3 sizes 30ml 50ml 100ml. the prices are: default combo 30 ml 45 lei with old price 71 with a reduction of 26 lei second for combo 50ml is 73 lei with old price 119 with a reduction 46 third combo is 100ml with 101 with old price 169 wth a reduction of 68 with your fix it display the new price for default combo, but it don't display for other combo's when i choose them. You can see what happen with your fix here: http://www.irina-boutique.ro/arrogance-blue/19-arrogance-blue-8002747048767.html#/gramaj-30_ml/tip-apa_de_toaleta You can use following customer account: [email protected] password: 12345 because shop is in private mode and display prices only for registered customers and registration is disabled Link to comment Share on other sites More sharing options...
idealhair Posted April 25, 2014 Share Posted April 25, 2014 Try this: http://www.prestashop.com/forums/topic/325496-showing-total-price-when-changing-quantity/?do=findComment&comment=1649592 + / - buttons is working for price good, but combos not change the price on product.tpl (add to card price is right -> it's combo's price) Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 Have you tried using the default theme? Link to comment Share on other sites More sharing options...
idealhair Posted April 25, 2014 Share Posted April 25, 2014 Have you tried using the default theme? i'm using default-bootstrap theme Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 The latest update? Link to comment Share on other sites More sharing options...
idealhair Posted April 25, 2014 Share Posted April 25, 2014 (edited) The latest update? 1.6.06 (now i'm using product.js from http://www.prestasho...y/#entry1649592 ) I can attach my product.tpl if you want. Edited April 25, 2014 by idealhair (see edit history) Link to comment Share on other sites More sharing options...
hhhans1 Posted April 25, 2014 Share Posted April 25, 2014 1.6.06 (now i'm using product.js from http://www.prestasho...y/#entry1649592 ) I can attach my product.tpl if you want. I will switch back to 1.5.6.2 until next release or a real bug fix. i can live without 1.6 several months Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 Please post your product.tpl Also try using the product.js which is attached. See if it makes a difference product.txt 1 Link to comment Share on other sites More sharing options...
idealhair Posted April 25, 2014 Share Posted April 25, 2014 (edited) Please post your product.tpl Also try using the product.js which is attached. See if it makes a difference Attached product.js make diffrence, -> it's broke the + / - function - not fixed combo's price bug Now i'm returned to product.js from http://www.prestasho...y/#entry1649592 [/size] Here you're my product.tpl product.txt Edited April 25, 2014 by idealhair (see edit history) Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 That's strange. I'll keep looking anyway cos i've got similar problems, let me know if you find any answers Link to comment Share on other sites More sharing options...
Ryan-iUse Posted April 25, 2014 Share Posted April 25, 2014 (edited) AZC, I have used your product.js, and the weird thing is that for some products it shows the correct price, but some still keep showing 0,00. Even weirder is the fact it does add up correctly though! e.g.: Product A shows 0,00 (price should be 14,95) with quantity of 1. Product A shows 29,90 when you add or subtract the quanity (in this case quantity is 2). After adding or subtracting it shows the correct price for quantity 1. Do you know any solution for this? We're almost there.... ! website: http://www.upperdice.com Edited April 25, 2014 by Ryan-iUse (see edit history) Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 (edited) AZC, I have used your product.js, and the weird thing is that for some products it shows the correct price, but some still keep showing 0,00. Even weirder is the fact it does add up correctly though! e.g.: Product A shows 0,00 (price should be 14,95) with quantity of 1. Product A shows 29,90 when you add or subtract the quanity (in this case quantity is 2). After adding or subtracting it shows the correct price for quantity 1. Do you know any solution for this? We're almost there.... ! website: http://www.upperdice.com can you post your product.tpl? and a screen shot of the prices page in your back office. Edited April 25, 2014 by AZC (see edit history) Link to comment Share on other sites More sharing options...
Ryan-iUse Posted April 25, 2014 Share Posted April 25, 2014 Hi, I have attached my product.tpl in a txt file. With the prices page you mean the prizes section of a product? product tpl.txt Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 Hi, I have attached my product.tpl in a txt file. With the prices page you mean the prizes section of a product? can you also post a screenshot of the combination page it sometimes helps to see how the prices have been set up Link to comment Share on other sites More sharing options...
AZC Posted April 25, 2014 Share Posted April 25, 2014 Ryan-iUse: 1 last try from me Can you try the following: In global.js find: closeBtn : '<a title="' + FancyboxboxI18nClose + '" class="fancybox-item fancybox-close" href="javascript:;"></a>', and change to: closeBtn : '<a title="' + FancyboxI18nClose + '" class="fancybox-item fancybox-close" href="javascript:;"></a>', In global.tpl find: {addJsDefL name=FancyboxboxI18nClose}{l s='Close'}{/addJsDefL} and change to: {addJsDefL name=FancyboxI18nClose}{l s='Close'}{/addJsDefL} I have no idea why this should make any difference but it seems to work for me. Use the product.js I posted. Link to comment Share on other sites More sharing options...
Ryan-iUse Posted April 25, 2014 Share Posted April 25, 2014 Hi AZC, First of all thank you for checking this out! I really hope there will be a solution soon, as there are many people having the same problem.. I tried to change the global.js and the global.tpl but I already seem to have the ´correct´ changes. The combination is set up without any price changes. I needed combinations for the clothing size, not for extra options (thus different prices) whatsoever. The problem seems to be (only) with the product.js / product.tpl as the right price pops up when adding/subracting quantities.. Link to comment Share on other sites More sharing options...
Laura4 Posted April 25, 2014 Share Posted April 25, 2014 (edited) Upgraded from PRESTASHOP 1.5.xxxx to 1.6.0.5 , then to 1.6.0.6. Standard layout. In case of product variations, when opting for one of them: Only the default (and its price) is taken and goes to the cart. BUT: When the buyer clicks 2x on the option, then the behavior is like expected. There was absolutely no influenc from settings like: Activate CCC (Combine, Compress and Cache Also most other settings of that configuration page tried... no behavior change.. Now there is at least some improvisation possible: ------------------------------------------------------------ To insert via the style sheet a visble message asking the buyer to click 2x on this option, "to make sure that he really wants that specific variant". I will not implement this improvisation for now because I hope that these days a true solution will be found for this problem (a configuration problem or more probable a bug within the themes). LINKS: -------------------------------- About similar problems / more detailed fact description there: http://www.prestashop.com/forums/topic/324654-select-variations-from-product-list/?hl=%2Bvariations A coherent list how to settle various problems of the default layout when upgradiong PS 1.5.xxxx to 1.6.0.6: ------------------------------------------------------ http://www.prestashop.com/forums/topic/316346-major-layout-issues/ Mainly concerns: Configuration steps for layout problems, especially for the start page. Edited April 25, 2014 by Laura4 (see edit history) Link to comment Share on other sites More sharing options...
Laura4 Posted April 26, 2014 Share Posted April 26, 2014 Hopeful that the job withe the product variants is done .... as follows;: ------------------------------------------------------------------------------------ In the admin menu: (++ means: opt for it with the mouse) ++"Preferences" ++"Products" goto: "Display unavailable product attributes on the product page" there: ++"Yes" ++"Save" Opinion: ------------- From then my probem type is resolved. Some other problem types look like being similar - perhaps also resolved. The problem is perhaps caused if the stock of a variant is set to 0 =zero. So upgrade problems which resulted in thousands --------------------------------------------------------- of actions on this forum, are probably resolved as far as being vital for running shops. See my preceding post in this thread and again, the various other problems get their solutions here: LINKS: -------------------------------- About similar problems / more detailed fact description there: http://www.prestasho...?hl=+variations A coherent list how to settle various problems of the default layout when upgradiong PS 1.5.xxxx to 1.6.0.6: ------------------------------------------------------ http://www.prestasho...-layout-issues/ Mainly concerns: Configuration steps for layout problems, especially for the start page. Still on my TODO-list: ---------------------------------- - The disturbing size proportions in the page header for: cart; search field. - The too big size of the horizontal top menu bar and the too big script size in it. - The contradictory use of the word "home" for totally different link subject. Probably all to settle by ~5 modifications in the style sheets. I will take care, when done, that my small trouble shoot contributions will be cross-linked in this forum. So you will probably soon find in a while here also the link to these less important subjects. I am always admiring this very exceptional software system PRESTASHOP. ---------------------------------------------------------- This is true top state of the art development work. Top brains behind it. Those responsbile for the comparitively simple task of upgrading the default layout, should I feel obliged to love them with the same admiration? Link to comment Share on other sites More sharing options...
hhhans1 Posted April 27, 2014 Share Posted April 27, 2014 i found something which is kind of solution that work for me. in product.js i commented the following line (i don't know what it does but until a proper fix, i can live whitout group reductions: productPriceDisplay = reduction; // productPriceDisplay = ps_round(productPriceDisplay * (1 - group_reduction), 2); The prices for product with combos are now displayed right. Link to comment Share on other sites More sharing options...
AZC Posted April 27, 2014 Share Posted April 27, 2014 i found something which is kind of solution that work for me. in product.js i commented the following line (i don't know what it does but until a proper fix, i can live whitout group reductions: productPriceDisplay = reduction; // productPriceDisplay = ps_round(productPriceDisplay * (1 - group_reduction), 2); The prices for product with combos are now displayed right. Hasn't helped for my problem. See website http://azcoweb.com/web1/prestashop/grape-juice/24-kedem-natural-white-grape-juice.html#/size-946ml Combination prices show, but as soon as quantity is changed it goes back to regular price. I can't work out whats wrong. 1 Link to comment Share on other sites More sharing options...
idealhair Posted April 28, 2014 Share Posted April 28, 2014 i found something which is kind of solution that work for me. in product.js i commented the following line (i don't know what it does but until a proper fix, i can live whitout group reductions: productPriceDisplay = reduction; // productPriceDisplay = ps_round(productPriceDisplay * (1 - group_reduction), 2); The prices for product with combos are now displayed right. can you attache yor product.tpl. product.js and Product.php files? In my shop that solution has't solved problem Link to comment Share on other sites More sharing options...
hhhans1 Posted April 28, 2014 Share Posted April 28, 2014 (edited) can you attache yor product.tpl. product.js and Product.php files? In my shop that solution has't solved problem they are custom product.js and custom product.tpl. It won't be much of a help. What i discovered instead, the problem with 0 prices apear from fact of: 1. in the prices for product we have 0 retail price with taxes declared because we have combinations with different base price. 2. When we have 0 main retail prices, smaller then a reduction amount the price displayed it will be 0. 3. If we declare a fixed retail price, bigger then reduction amount (let say for example the bigger retail price for the biggest size combination) the prices are displayed but they are wrong. Please se comparative screenshoot between 1.5.6.2 comportament and 1.6.0.6 comportament. The shop is in Romanian, but you will get the "picture" http://imgur.com/a/VciAm#0 Hope that will help for debugging. Also you can see it live at this two links: Working shop on 1.5.6.2 (user: [email protected]/pass:12345 to see prices) http://www.irina-boutique.ro/arrogance-pour-femme/24-arrogance-pour-femme.html Dev shop on 1.6.0.6 (user: [email protected]/pass:12345 to see prices) http://prestashop.irina-boutique.ro/arrogance-pour-femme/24-arrogance-pour-femme-8002747010801.html#/gramaj-30_ml/tip-apa_de_toaleta Best regards Edited April 28, 2014 by hhhans1 (see edit history) Link to comment Share on other sites More sharing options...
Ryan-iUse Posted April 30, 2014 Share Posted April 30, 2014 (edited) Hi, Quick update! I had it fixed by someone.. and it seems it was a problem in the product.tpl. I have included it. Please let me know if it works for me it does!! product tpl.txt Edited April 30, 2014 by Ryan-iUse (see edit history) 1 Link to comment Share on other sites More sharing options...
AZC Posted April 30, 2014 Share Posted April 30, 2014 (edited) Hi, Quick update! I had it fixed by someone.. and it seems it was a problem in the product.tpl. I have included it. Please let me know if it works for me it does!! What product.js are you using it with? Still doesn't work for me. When i use the product.tpl attached the price doesn't change at all?? And I cant see the difference between my product.tpl and yours. I must be missing something Edited April 30, 2014 by AZC (see edit history) Link to comment Share on other sites More sharing options...
hhhans1 Posted May 1, 2014 Share Posted May 1, 2014 Hi, Quick update! I had it fixed by someone.. and it seems it was a problem in the product.tpl. I have included it. Please let me know if it works for me it does!! is not working..is not update the price accordind the combo price, but it display the price for default combination. When you change the combo, the price remain displayed for the main combo and also reduction amount doesn't change 1 Link to comment Share on other sites More sharing options...
Ryan-iUse Posted May 1, 2014 Share Posted May 1, 2014 Hmm that's weird. I had it fixed by someone on fiverr.. Maybe he is able to help you guys too.. only costs 5 dollars :') Saves you a lot of headache time http://www.fiverr.com/google_al/fix-prestashop-ecommerce-problems Link to comment Share on other sites More sharing options...
hhhans1 Posted May 1, 2014 Share Posted May 1, 2014 The maker of my theme, point me in the right direction, even he sustain, that is happen is not a bug. How is not a bug, if in 1.5.6.2 is working and in 1.6.0.6, which is much much better, is not working. So, like i said in prevoius posts the problem with 0$ price apear when we don't have a default base price declared, but we have different default base prices for different combinations. So i take the product.js and found where is declared that and i found this :]\ var our_price = ''; if (productPriceDisplay > 0) { our_price = formatCurrency(productPriceDisplay, currencyFormat, currencySign, currencyBlank); } else { our_price = formatCurrency(0, currencyFormat, currencySign, currencyBlank); } So bassicaly, it will display prices only when we declare base price declared. So what i did, i changed the else " declaration" from our_price = formatCurrency(0, currencyFormat, currencySign, currencyBlank); to our_price = formatCurrency(productPriceDisplay, currencyFormat, currencySign, currencyBlank); Finnaly i saw some sign of life from my combinations prices . It display prices, BUT, they are not mathematically right.So where is the problem. The problem is on old specific price which is not changing. So, back to product.js. From step by step bla bla bla i finally have a final form which is working for me. I changed this on my product.js: productPriceDisplay -= reduction; productPriceDisplay = ps_round(productPriceDisplay * (1 - group_reduction), 2); to productPriceWithoutReductionDisplay = ps_round(selectedCombination.price * tax); productPriceDisplay = ps_round(productPriceWithoutReductionDisplay - reduction); productPriceDisplay = ps_round(productPriceDisplay * (1 - group_reduction), 2); I will not know if it will work for you, or if it will breake something else, or it will breake comportament with products without combinations, because i did not tested, and mostly my products wll have combinations. So, for testing pourpose only attached my product.js (please rename txt file to js file) product js.txt 1 Link to comment Share on other sites More sharing options...
xolero Posted May 1, 2014 Share Posted May 1, 2014 Hi Guys, To solve the problem, go to ADVANCED PARAMETERS > PERFORMANCE > CCC (Combine, Compress and Cache) and activate Smart cache for JavaScript It solved the problem for me, the price displays with combinations I haven't made some test with combinations increasing a price Can you guys please confirm that this solves the problem for you too and if someone has tested with price increase on combinations thanks, I solved in this way 1 Link to comment Share on other sites More sharing options...
marcellolaforgia Posted May 2, 2014 Share Posted May 2, 2014 To solve this problem, it is necessary to copy the file product.js CMS (file path: ...\modules\giveit\js) js folder of the chosen template (file path: ...\themes\name_theme\js ). If you have troubles finding the file, it would be enough to do a search in the root folder. I've just done this and I solved the problem . A hug Marcello Link to comment Share on other sites More sharing options...
wjq588jk Posted May 8, 2014 Share Posted May 8, 2014 Hi Guys, To solve the problem, go to ADVANCED PARAMETERS > PERFORMANCE > CCC (Combine, Compress and Cache) and activate Smart cache for JavaScript It solved the problem for me, the price displays with combinations I haven't made some test with combinations increasing a price Can you guys please confirm that this solves the problem for you too and if someone has tested with price increase on combinations Thanks,activate CCC is ok for me,I am from 1.5.6.2 upgrade to 1.6.0.6,it is only the product price show 0.00,other place work well,and now all work well. Thanks. 1 Link to comment Share on other sites More sharing options...
alfredopacino Posted May 16, 2014 Share Posted May 16, 2014 http://www.prestashop.com/forums/topic/329385-bug-1606-0%E2%82%AC-products-wrong-price-combinations/ anyone could help me? the price doesn't change on combination change Link to comment Share on other sites More sharing options...
rruhan Posted May 20, 2014 Share Posted May 20, 2014 Hi, i'm new in prestashop. how can i highlight a product attribute in prestashop 1.6. i want to change a product's attribute background color to be highlighted like 'Add to cart button' in product page. how can i do this ? please help me out. Link to comment Share on other sites More sharing options...
Death Metal Coding Posted June 2, 2014 Share Posted June 2, 2014 do the following: Your Prestashop Folder > Themes Inside there you will find a default-bootstrap theme folder and your third party/custom theme folder. Step 1: Go to default-bootstrap > js and copy product.js Step 2 Go back to the themes folder > yourTheme > js and paste the product.js file (remember to backup the original product.js file before replacing it with a new one. Link to comment Share on other sites More sharing options...
Death Metal Coding Posted June 2, 2014 Share Posted June 2, 2014 Another solution is to go to themes > your theme > product.tpl and change {addJsDef group_reduction=$group_reduction} to {addJsDef group_reduction=1} Remember to clear smarty cache from the dashboard 2 Link to comment Share on other sites More sharing options...
divento Posted June 2, 2014 Share Posted June 2, 2014 Hello, We are experiencing this exact problem with many of our products ie. only until they are selected and moved to the basket does any price appear. The prestashop we are using is 1.5.4.1 Can anyone help please?! thanks Link to comment Share on other sites More sharing options...
Harry101 Posted June 17, 2014 Share Posted June 17, 2014 can we customize the prstashop templete according to our needs.... Link to comment Share on other sites More sharing options...
precreate Posted June 17, 2014 Share Posted June 17, 2014 That's a quick fix, thanks. Tried to fix this problem myself, but didn't manage. Link to comment Share on other sites More sharing options...
BoKr Posted June 22, 2014 Share Posted June 22, 2014 Sorry but I can not absolutely follow Xavier. For certain reasons I have to stay with 1.6.0.6 (my Theme Maker account ran out and there is no adaption to 1.6.0.8 right now). SO in order to make 1.6.0.6 a bit more flawless I need to do what excately? Basically replacing {$group_reduction} with {1-$group_reduction} in themes/yourthemename/product.tpl and merging this in the 1.6.0.6 release. So 1.6.0.6 is clean! In my 1.6.0.6 are two occurences: <p id="old_price"{if (!$product->specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="hidden"{/if}> {addJsDef group_reduction=$group_reduction} None of them is in the way you wrote it: {$group_reduction} So I assume you want us to look for group_reduction . This is then to be exchanged for 1-$group_reduction . Or merely for 1 Link to comment Share on other sites More sharing options...
Rescue Posted June 23, 2014 Share Posted June 23, 2014 I am brand new to Prestashop but not to customizing shopping cart software. I thought it was easy to set up and get products added with PS. The navigation in the admin isn't always logical or easy to find things, but the initial setup has gone okay....until now. This 0.00 thing has not been fun. It amazes me not only how long this problem has existed, but it appears to keep coming back with different versions. Sadly, I have now spent more time on this bug than I did trying to customize the template. I have a fresh install using the default bootstrap theme on version 1.6.0.8. I have tried so many "fixes" but non of them have worked. Some of the links given don't even appear to apply to version 1.6.0.8. For example, at the following link...http://forge.prestashop.com/browse/PSCSX-1835...the code isn't even in 1.6.0.8. Also, there are references on "clearing the smarty cache" but I still haven't figured out how to do that in 1.6.0.8. The instructions I have found so far must have been for a previous version. Does anyone know where instructions are to fix this is version 1.6.0.8? Link to comment Share on other sites More sharing options...
Rescue Posted June 24, 2014 Share Posted June 24, 2014 I now see that version 1.6.0.8 just came out a couple of days ago. I guess I'm kind of surprised our host allowed us to install something that was just released. Link to comment Share on other sites More sharing options...
Rescue Posted June 24, 2014 Share Posted June 24, 2014 Seems to be two fold issue in 1.6.0.8. If you just change the initial items that come installed in the cart they will not work if "Featured products on the homepage" is enabled. If you disable this module the prices will show. If you want to keep this enabled we had to delete all the initial products and create new ones. At that point everything appears to work fine. Link to comment Share on other sites More sharing options...
Longa Posted July 2, 2014 Share Posted July 2, 2014 When they ll sove his problem ? Link to comment Share on other sites More sharing options...
besssbesss Posted July 4, 2014 Share Posted July 4, 2014 Someone has a solution for the 1.6.0.8 version please ? Have the same problem. I've already disable the module featured products... still the same problem. I've tried the fix on forge for 1.6.0.6 version, but I didn't have the same code. So can't use it. Someone to help please ?? Thank you Link to comment Share on other sites More sharing options...
roo10 Posted July 5, 2014 Share Posted July 5, 2014 (edited) ^ Same problem here. Installed fresh PS 1.6.0.8 on localhost. Edited price of some default products (including with combinations and without combinations). Now, the price shows 0.00 for some products on homepage and category page whereas its displayed correctly on product page and cart page. I also checked the database and the prices are shown in it. Then, I debugged "product-list.tpl" which has two price variables shown below and their result. {convertPrice price=$product.price} = returns blank {convertPrice price=$product.price_tax_exc} = returns 0.00 For other products, the price are displaying fine. * Cleared cache from Back-office as well as browser. Edited July 7, 2014 by roo10 (see edit history) Link to comment Share on other sites More sharing options...
besssbesss Posted July 7, 2014 Share Posted July 7, 2014 (edited) The problem for is resolved. The http://cleandev.net team help me !! The problem was in the data base, there was, one line in specific prices, which was on 0 for the price, and applied on all the products. I just delete this line. and it was ok. Maybe, if you're not sure about what you're doing, you can ask to a profesionnal to help you with that. thanks to cleandev to help me to find the solution. Edited July 7, 2014 by besssbesss (see edit history) Link to comment Share on other sites More sharing options...
roo10 Posted July 7, 2014 Share Posted July 7, 2014 @besssbesss - I haven't given specific price to those products which are showing price as 0.00. Can anyone please help.. Link to comment Share on other sites More sharing options...
besssbesss Posted July 7, 2014 Share Posted July 7, 2014 Me too. I had some products with specific prices, and some without. But there was 1 line on the data base, who says that the price for all the products is 0. So even if you have entered prices for your products, the 0 is showed on the catalog page. If you have access to you data base, go on the specific prices table, and then, sort by price low to high, and there you should have the first line with a 0 price, for all products (no category, product, or attribute choosen). If you see that, maybe its the same issue I had. Link to comment Share on other sites More sharing options...
roo10 Posted July 7, 2014 Share Posted July 7, 2014 @besssbesss - I did as you told but the price column has "-1.0000" for all products in "ps_specific_price" table. Link to comment Share on other sites More sharing options...
Recommended Posts