Jump to content

Exluding modules with exceptions from payment page that ends with .php doesn't work


anmihe

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...