sokpet Posted February 1, 2012 Share Posted February 1, 2012 Hello, Please urgent How to get product reference on product-list and product search results pages? I can easely get product id like this {$product.id_product} I tried all possible combinations with no results: {$product->reference} {$product.reference} {$product->product.reference} {$product.product.reference} {$product.product_reference} {$product.reference_product} {$reference_product} {$reference} Should I assign reference variable somewhere? Thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 1, 2012 Share Posted February 1, 2012 Hi sokpet, Please try replacing your classes/search.php file with this version, and let me know if it works for you! Search.php I hope this helps. -Mike Link to comment Share on other sites More sharing options...
sokpet Posted February 1, 2012 Author Share Posted February 1, 2012 thanks for reply Mike, unfortunately it did nor help. Is there solution for category product list? Should I change classes Category.php? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 1, 2012 Share Posted February 1, 2012 thanks for reply Mike, unfortunately it did nor help. Is there solution for category product list? Should I change classes Category.php? I'm not sure off the top of my head, but you may want to check out this thread for more information. -Mike Link to comment Share on other sites More sharing options...
sokpet Posted February 1, 2012 Author Share Posted February 1, 2012 Thanks I did it before. It is for product.tpl. mainly, In my case I need it for product-list.tpl Of course I can replace via import all id with reference code, but it is not the best solution.... Link to comment Share on other sites More sharing options...
sebkos Posted February 1, 2012 Share Posted February 1, 2012 Hi guys, it's also interesting for me and previously I found that thread http://www.prestashop.com/forums/topic/27151-features-or-tags-on-productlist/ . I'm not good enough in SQL so I'm not able to help, but maybe that's the right way. Link to comment Share on other sites More sharing options...
belladict Posted February 14, 2013 Share Posted February 14, 2013 (edited) I use this code to display reference on the product-list (I use PS 1.4.9) {$product.reference|escape:'htmlall':'UTF-8'} Edited February 14, 2013 by belladict (see edit history) 1 Link to comment Share on other sites More sharing options...
Alejandrosi Posted August 12, 2014 Share Posted August 12, 2014 Hi, Did you find a solution for this? 1 Link to comment Share on other sites More sharing options...
c4vnet Posted November 21, 2015 Share Posted November 21, 2015 I use this code to display reference on the product-list (I use PS 1.4.9) {$product.reference|escape:'htmlall':'UTF-8'} I tried adding it to the catalog and in the end it had increased activity thank you Link to comment Share on other sites More sharing options...
Recommended Posts