Fireballrus Posted April 15, 2011 Share Posted April 15, 2011 Hi,I use PrestaShop just as a way to display a catalog of items available in my real-world store. But, when I set it to "Catalog mode", it doesn't show item's reference number anymore!This is very important, it's a main point of running a catalog: you can choose something, write down it's ref. num, go to the shop and ask to have a look / buy that item.Are there any ideas how to solve this? Two existing options are not really very good (either disable catalog mode and cope with 0$ + Add to cart buttons which are totally useless; or add ref. num directly to the product description which is nothing good either).Thanks in advance for any help! PrestaShop is of the latest version. Link to comment Share on other sites More sharing options...
shokinro Posted April 16, 2011 Share Posted April 16, 2011 I don't know why the reference # does not show up at your store.I just tested at my DEMO site, it woks fine with Reference #.http://expresscheckout.dyndns.org:8080/shop1417/product.php?id_product=1 Link to comment Share on other sites More sharing options...
shokinro Posted April 16, 2011 Share Posted April 16, 2011 After further investigation, I reproduced your problem.it happens when the product there is no attribute combination.please see here on how to fix the issue. Link to comment Share on other sites More sharing options...
Fireballrus Posted April 16, 2011 Author Share Posted April 16, 2011 Thank you very much, it's indeed the way to fix it.The only thing, you have pasted wrong/messed up code in your tutorial, the correct line would be: reference}style="display: none;"{/if}>{l s='Reference :'} {$product->reference|escape:'htmlall':'UTF-8'} Link to comment Share on other sites More sharing options...
shokinro Posted April 16, 2011 Share Posted April 16, 2011 I checked again at blog, my code actually the code at mt blog is correct. I tested on my demo site.Maybe you didn't copy the whole code (there is scroll bar)Here I paste my code for other references.changes file: /themes/prestashop/product.tplBefore following line {if $product->description_short OR $packItems|@count > 0} Link to comment Share on other sites More sharing options...
RedPig Posted April 17, 2014 Share Posted April 17, 2014 After further investigation, I reproduced your problem. it happens when the product there is no attribute combination. please see here on how to fix the issue. Sorry Im very new at this. Where do I find the file to add this code to? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts