Jump to content

Price not appearing on my shop page on some products


nandosendraa

Recommended Posts

This is my shop and on some products the price is not been visible, I comproved that the products are configured correctly, and the price should been visible. (1st photo)Capturadesde2024-02-1309-16-33.thumb.png.ab83d2633d53c51671a2b39d0538cddc.png

On the template I've tried to var_dump the $product.price variable every line to see how far this variable goes (2nd photo)

Capturadesde2024-02-1309-28-38.thumb.png.1ae1fb441fabab1a33a0a4c38b7142ce.png

But something strange happens, after the 4th dump nothing appears anymore (3rd photo)

Capturadesde2024-02-1309-28-56.thumb.png.94c8d338d1ab101773ce656c3b145cf1.png

Link to comment
Share on other sites

5 minutes ago, Prestashop Addict said:

Certainly a css issue, can you inspect html code to see if price is present?

This is the first product, the price is on the htmlCapturadesde2024-02-1312-02-49.thumb.png.616b820a568303ca01eba7b6a900de94.png

And this is the second product, the element whith the class product-price-and-shipping is not on the htmlCapturadesde2024-02-1312-03-43.thumb.png.0f7c2192e19aabfafb5be4f3b0396094.png

Link to comment
Share on other sites

3 minutes ago, Prestashop Addict said:

It seems you have the show_price attribute deactivated on theses products

image.png.e10fc90ce583126628dadf4c88ae4941.png

I have reviewed the products that do not have the price and both in the configuration that you have sent me and in the database I have this option activated, this is my template, I have also tried removing the if $product.show_price to see if it works but neither. And all products have the same configuration, the products that the price are showed and the products that are not showedCapturadesde2024-02-1312-10-54.png.7088cbffc00f0b9c33bc28244b5b1534.png

Link to comment
Share on other sites

20 minutes ago, Prestashop Addict said:

Check on modules or other templates that override the block name {block name='product_price_and_shipping'}

I have been checking and I have not found anything that is overwriting the block, the strange thing is that all the products are configured in the same way but there are some that show the price and others do not

Link to comment
Share on other sites

8 minutes ago, endriu107 said:

Issue could be generated by description short or long of those product. You can do test and remove it from product without price if it helps you need to change descriptions for all products with issue.

Yes it works, thanks!!! But I'dont understand why is this happening, Could it be because of the length of the text? The problem was in the short description, but it did not exceed the 800 characters that Prestashop allows.

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