Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
L!mit

PLEASE HELP - DISABE SHIPPING ZONE BASED ON PAYMENT

Recommended Posts

Hi I baiscally just need to know how I can disable the shipping module from reading the shipping zone based on the payment module.

 

Here an example of what I tired.

 

$selection = $payment_modules->selection();

 

if (($selection ['module'] == 'CREDIT_CARD') && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {

$check_flag = false;

 

I just cant figue out how to call the payment module into the shipping file. Anyone know what the global would be or how I can do it?

 

Any help would be great I have been trying this for hours. Still new to PHP.

Share this post


Link to post
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
Sign in to follow this  

×