x3n0m0rph Posted January 6, 2011 Share Posted January 6, 2011 Hi,How can I add a new field on product page?I have: Quantity AvailabilityUnder availability i need to add "Free Delilvery!". This shoud appear on all products pages - I offer free delivery for all my products.I tried on product.tlp but.. no success..Please help!sorry for bad english.. Link to comment Share on other sites More sharing options...
rocky Posted January 7, 2011 Share Posted January 7, 2011 Change lines 271-276 of product.tpl from: <!-- number of item in stock --> quantity == 0} style="display:none;"{/if}> {$product->quantity|intval} quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'} quantity == 1} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'} to: <!-- number of item in stock --> quantity == 0} style="display:none;"{/if}> {$product->quantity|intval} quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'} quantity == 1} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'} {l s='Free Shipping!'} Link to comment Share on other sites More sharing options...
x3n0m0rph Posted January 7, 2011 Author Share Posted January 7, 2011 not working.. also, my product.tlp is different: <!-- number of item in stock --> quantity == 0)} style="display:none;"{/if}> quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='Produs in stoc :'} quantity < 2} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='Produse in stoc :'} {$product->quantity|intval} {l s='Free Shipping!'} Link to comment Share on other sites More sharing options...
rocky Posted January 7, 2011 Share Posted January 7, 2011 I'm not sure why it isn't working for you. It's working on my PrestaShop v1.3.5 test site. I even tried copying your code above and it worked too on my website. The only reasons I can think that it isn't working is that your product.tpl file has been cached and isn't refreshing, or you have third-party CSS hiding the text. Link to comment Share on other sites More sharing options...
x3n0m0rph Posted January 7, 2011 Author Share Posted January 7, 2011 I cleared cache.. don`t know about any third-party css.. I really need this to work... I use 1.3.1 version.. Link to comment Share on other sites More sharing options...
rocky Posted January 7, 2011 Share Posted January 7, 2011 It must be something to do with the Rumah Batik theme you are using. It must have code that is hiding it. I'm not familiar enough with the theme to know what though. Link to comment Share on other sites More sharing options...
x3n0m0rph Posted January 19, 2011 Author Share Posted January 19, 2011 Hi,It was a cach problem. I was clearing cach with a firefox tool... I deleted cach por product.tlp manualy from /tools/smarty/compile/ and now is all good!rocky, thx for support! Link to comment Share on other sites More sharing options...
Recommended Posts