LeeStrong Posted July 18, 2013 Share Posted July 18, 2013 (edited) This issue has been resolved, thanks for your help. In main template header.tpl: {if ($smarty.server.SCRIPT_NAME eq "/cart.php")} The code below the if statement will show when the web address bar is cart.php. When adding an item to the cart, or adding a product domain the web address bar shows: cart.php?a=add&pid=4&billingcycle=annually The if statement is then ignored and does not trigger. Does anyone have any inclination as to why this is? Edit: This same code works when I use a different order form. Still don't know why. Edited July 19, 2013 by LeeStrong 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted July 18, 2013 Share Posted July 18, 2013 Hi, Did you try {if $pagetitle eq $LANG.carttitle} 0 Quote Link to comment Share on other sites More sharing options...
LeeStrong Posted July 18, 2013 Author Share Posted July 18, 2013 This does not work, thanks for trying though. 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted July 18, 2013 Share Posted July 18, 2013 Hmm that is odd then. 0 Quote Link to comment Share on other sites More sharing options...
LeeStrong Posted July 18, 2013 Author Share Posted July 18, 2013 I understand it should work because it seems to work correctly when using the stock orderforms, however not under the one I have created. Thanks again though, I'm about to do a more in depth search and try my best to find out why it's doing this. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted July 19, 2013 Share Posted July 19, 2013 I can see you've found a solution but if I understand correctly you're looking to detect if the user is on cart.php? If so you can use: {if $filename eq "cart"} {/if} Or with PHP (has it's benefits in certain cases): {if $filename eq "cart"} {php}$page = 'cart';{/php} {/if} {php}if ($page=='cart') { {/php} content for cart {php} } {/php} Jack 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.