en Jump to content
  • 0
zoltan1234

0,00 prices problem at homepage and categories page

Question

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?

 

post-779521-0-84242300-1396305333_thumb.png

Edited by zoltan1234

Share this post


Link to post
Share on other sites

121 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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} />

Share this post


Link to post
Share on other sites
  • 0

I have the same problem! What is going on ?

Edited by evil87

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

@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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 by JODY44

Share this post


Link to post
Share on other sites
  • 0

@clalla - it dosen't work for me. 

 

I tried so many things and nothing help me. Did I miss something?

I'm confused.

Edited by kollek

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 by indus

Share this post


Link to post
Share on other sites
  • 0

I'm glad not to be the only one with this problem, but a fix would be very nice!

Edited by Wesleyva

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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  :mellow: 

 

 

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  :(

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 !

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

Wow problem solved! Great thank you Xavier! Now i can sleep again...  :lol:  :ph34r:

Edited by Wesleyva

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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 :(

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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 :(

Share this post


Link to post
Share on other sites

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More