anmihe Posted May 14, 2014 Share Posted May 14, 2014 Hi guys, I'm trying to exclude the newsletter signup and the cart drop down modules when on a payment page as I don't want those distractions there... This works fine by adding "payments" to the exceptions list for those modules but only if the payment page url doesn't end with .php I have one payment module that generate a payment page that looks like this "domain.com/modules/modulename/payment.php" ...and I've tried adding: payment.php modulename/payment.php modules/modulename/payment.php But none of them works, the modules I wanna exclude from this page still shows up. Anyone with some ideas n how to approach this? Thanks in advance Link to comment Share on other sites More sharing options...
anmihe Posted May 14, 2014 Author Share Posted May 14, 2014 I've tried wrapping the module in: {if $smarty.get.controller !='payment'} {/if} ...kinda make sense but that doesn't do anything as when on the payment page $smarty.get.controller returns "pagenotfound" Anyone with ideas? Link to comment Share on other sites More sharing options...
anmihe Posted May 14, 2014 Author Share Posted May 14, 2014 Solved it, at least for the moment but it feels a bit ugly... {if $smarty.server.REQUEST_URI !== '/modules/modulename/payment.php'} {/if} ...any downside to this method? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now