How can I have different payment options for different shipping options?
I offer two shipping options Flat rate courier and store pickup.
and I offer two payment options PayPal and Cash on pickup.
If a customer selects the flate rate courier option on the 'Delivery Information' page when they progress to 'Payment Information' page they still get the option of 'pay cash on delivery'/pickup.
How do I change it so that if they select a courier dispatch the 'pay cash on delivery'/pickup option does not show?
I am using the ZJ Black template
Many thanks in advance. Once I have this resolved I can go live.
Re: How can I have different payment options for different shipping options?
You would need to customize your Payment Module(s) by disabling the $this->enabled based on the setting:
$_SESSION['shipping']['id']
Flat Rate flat shipping module, for example, will give $_SESSION['shipping']['id'] as flat_flat
The Store Pickup storepickup will give storepickup_storepickup
Re: How can I have different payment options for different shipping options?
Quote:
Originally Posted by
Ajeh
You would need to customize your Payment Module(s) by disabling the $this->enabled based on the setting:
$_SESSION['shipping']['id']
Flat Rate flat shipping module, for example, will give $_SESSION['shipping']['id'] as flat_flat
The Store Pickup storepickup will give storepickup_storepickup
Thanks Ajeh, I am a bit of a newbie but have managed to customise a few things here and there already.
Can you give me a bit more detail on how to do this?
Many thanks in advance
Re: How can I have different payment options for different shipping options?
What Payment Module are you using for the Cash Payment?
Re: How can I have different payment options for different shipping options?
Quote:
Originally Posted by
Ajeh
What Payment Module are you using for the Cash Payment?
I was using one the COD module which I was successful in renaming "Cash on Pick up'
Re: How can I have different payment options for different shipping options?
This would disable the COD Payment Module when the Flat Rate flat Shipping module has been selected by changing the code in:
/includes/modules/payment/cod.php
where it reads:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
to read:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
// do not show COD when shipping is Flat Rate
if ($_SESSION['shipping']['id'] == 'flat_flat') {
$this->enabled = false;
}
Now if Flat Rate flat shipping module is selected then the COD Payment Module will be disabled and not shown ...
Re: How can I have different payment options for different shipping options?
Quote:
Originally Posted by
Ajeh
This would disable the COD Payment Module when the Flat Rate flat Shipping module has been selected by changing the code in:
/includes/modules/payment/cod.php
where it reads:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
to read:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
// do not show COD when shipping is Flat Rate
if ($_SESSION['shipping']['id'] == 'flat_flat') {
$this->enabled = false;
}
Now if Flat Rate flat shipping module is selected then the COD Payment Module will be disabled and not shown ...
Ajeh, many thanks that worked just perfectly. All I have to do now is test the payment processes, add some more products and go live
Thank you so much. If you want to take a coffee break have a look at the site www.fastbikegear.co.nz
I've set all of the stock other than Indicator Reminders to zero until we have finished testing it.
Critiscms and suggestions valued!
Re: How can I have different payment options for different shipping options?
Thanks for the update that this worked for you ... :smile: