datatel Posted July 17, 2012 Share Posted July 17, 2012 Hi. I need to to put link if the Product is Online Only! The Online Only! will link to contact-form.php. Actually what I need is replace Online Only with Inquire Now which i was able to do from this link-> http://www.prestashop.com/forums/topic/140790-online-only-to-other-verbage/ Now I need to add link to contact-form.php Will I add code to product-list.tpl and product.tpl?? How? Please show me. Thanks. Link to comment Share on other sites More sharing options...
shacker Posted July 20, 2012 Share Posted July 20, 2012 search the text online only, and replace with this <a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a> Link to comment Share on other sites More sharing options...
datatel Posted July 23, 2012 Author Share Posted July 23, 2012 search the text online only, and replace with this <a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a> I try the above suggestion in domain/themes/prestashop_new/products.tpl and nothing happened. Here's the code of product .tpl at line 298: {if $product->online_only} <p>{l s='Online only'}</p> {/if} and here is the code at line 48 of product-list.tpl: {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only!'}</span>{/if} Please show me how to change and if it is the right code to change. Link to comment Share on other sites More sharing options...
shacker Posted July 23, 2012 Share Posted July 23, 2012 {if $product->online_only} <p><a href="http://www.prestasho...-other-verbage/">YOUR TEXT</a></p> {/if} {if isset($product.online_only) && $product.online_only}<span class="online_only"><a href="http://www.prestasho...-other-verbage/">YOUR TEXT</a></span>{/if} Link to comment Share on other sites More sharing options...
Recommended Posts