Debugger Posted August 13, 2010 Share Posted August 13, 2010 I have a shopping cart ! and one category is separated to Adult Stuff . but I need to add a "adult disclaimer page" before they get into adult section ? can anyone help with this ?? Link to comment Share on other sites More sharing options...
eltitos Posted August 13, 2010 Share Posted August 13, 2010 You can use this module http://todoprestashop.com/foro/viewtopic.php?f=12&t=1816In the file dialogkutesen.tpl at the line 13 add {if $category->name == 'Test'} With Test the name of you categorie (be carefull with uppercase)and at the end of this file {/if} After you have to customize the display as you need Link to comment Share on other sites More sharing options...
Debugger Posted August 14, 2010 Author Share Posted August 14, 2010 I tired it in the way you said it .. but when I do like that ,my categories are not showing .. whats wrong ?:S Link to comment Share on other sites More sharing options...
eltitos Posted August 14, 2010 Share Posted August 14, 2010 Try to put the last category name.If it's works you can change the if by comparing the URL address instead of the category name. Link to comment Share on other sites More sharing options...
Debugger Posted August 14, 2010 Author Share Posted August 14, 2010 nop not working .. I tried the last category name .. and I even try to use "id" insed of the name .. both arnt working .. umm :s Link to comment Share on other sites More sharing options...
eltitos Posted August 14, 2010 Share Posted August 14, 2010 Which version of prestashop are you using ?I join the tpl that i changed.If you are using more than 1 language you should use the id instead of the name. dialogkutesan.tpl.txt Link to comment Share on other sites More sharing options...
Debugger Posted August 14, 2010 Author Share Posted August 14, 2010 Which version of prestashop are you using ?I join the tpl that i changed.If you are using more than 1 language you should use the id instead of the name. Im using the latest version ..No acutually I use 1 language..ok I'll take it ..lets see Link to comment Share on other sites More sharing options...
Debugger Posted August 14, 2010 Author Share Posted August 14, 2010 nop dude !! same problem .. I dont know what to do .. :S Link to comment Share on other sites More sharing options...
eltitos Posted August 14, 2010 Share Posted August 14, 2010 I tried on a fresh install, same problem appears.I find an another solution but you need to active URL friendly ( if not yet)I modified the php, for check by the URLOn the line 159 you have to change "stringtolook" by the string that appears in the product page. For exemple with the default products ( laptop ) the url is http://........../portables-apple/5-macbook-air.htmlSo if i changed the "stringtolook" by "portables-apple", when the string "portables-apple" will be in the URL, the disclaimer will be displayed dialogkutesan.php.txt Link to comment Share on other sites More sharing options...
Recommended Posts