Can i do this?
When a costumer select a type of Shipping plan (for example A) have to mandatory a type of Payment.
For example
Shipping :
A
B
C
Payment:
X
Y
Z
When i select A (Shipping) i have to select Y (Payment)
Can i do this?
Can i do this?
When a costumer select a type of Shipping plan (for example A) have to mandatory a type of Payment.
For example
Shipping :
A
B
C
Payment:
X
Y
Z
When i select A (Shipping) i have to select Y (Payment)
Can i do this?
This type of feature can be designed for your shop ... it is not, however, built into Zen Cart ...
What you would want to control is the $this->enabled on the Payment Modules to change based on the Shipping Module selected ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
yes it this.
Any ideia, how to do it?
Make a function that decides based on the selected Shipping Module when to set the $this->enabled to false in the Payment Module ...
If false, then the Payment Module will not display ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
In what page and line can i do this?
All of the Payment Modules have a line similar to:
What you need is a function to control the $this->enabled beyond the simple test of is it installed ...PHP Code:$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
Writing a function to test the conditions of what the Shipping Module is that the customer has selected and set that value to false to turn off a Payment Module when it should not show ...
The Shipping Modules use something similar to control when the Free Shipping freeshipper should show or not show and whether the other Shipping Modules should show or not show ...
For example the Item Rate item Shipping Modules uses:
If the function returns a false value, then the Item Rate item Shipping Module will turn off or hide from display ...PHP Code:// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true : false);
}
If the function returns a true value, then the Item Rate item Shipping Module will turn on or show on the display ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I will try, but i don't know if i can do it![]()
Could u help me?
$_SESSION['payment'] will tell you the payment such as: moneyorder
$_SESSION['shipping']['id'] will come up as: item_item or flat_flat
NOTE: UPS will show the module and type: ups_3DS
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!