nandosendraa Posted February 13, 2024 Share Posted February 13, 2024 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) On the template I've tried to var_dump the $product.price variable every line to see how far this variable goes (2nd photo) But something strange happens, after the 4th dump nothing appears anymore (3rd photo) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 13, 2024 Share Posted February 13, 2024 Certainly a css issue, can you inspect html code to see if price is present? Link to comment Share on other sites More sharing options...
nandosendraa Posted February 13, 2024 Author Share Posted February 13, 2024 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 html And this is the second product, the element whith the class product-price-and-shipping is not on the html Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 13, 2024 Share Posted February 13, 2024 It seems you have the show_price attribute deactivated on theses products Link to comment Share on other sites More sharing options...
nandosendraa Posted February 13, 2024 Author Share Posted February 13, 2024 3 minutes ago, Prestashop Addict said: It seems you have the show_price attribute deactivated on theses products 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 showed Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 13, 2024 Share Posted February 13, 2024 Check on modules or other templates that override the block name {block name='product_price_and_shipping'} Link to comment Share on other sites More sharing options...
nandosendraa Posted February 13, 2024 Author Share Posted February 13, 2024 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 More sharing options...
Prestashop Addict Posted February 13, 2024 Share Posted February 13, 2024 can you activate debug mode and see if any errors. Link to comment Share on other sites More sharing options...
nandosendraa Posted February 13, 2024 Author Share Posted February 13, 2024 2 minutes ago, Prestashop Addict said: can you activate debug mode and see if any errors. debug mode is enabled, but there's no errors Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 13, 2024 Share Posted February 13, 2024 Are you using Classic template? Can you paste the source code (upload file not an image) of the template. 1 Link to comment Share on other sites More sharing options...
endriu107 Posted February 13, 2024 Share Posted February 13, 2024 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. 1 Link to comment Share on other sites More sharing options...
nandosendraa Posted February 13, 2024 Author Share Posted February 13, 2024 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 More sharing options...
endriu107 Posted February 13, 2024 Share Posted February 13, 2024 It's not by length but by some characters. Probably all description are copied with html markup, in most theme those text are stripped from unwanted markups. 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