Jump to content

shipping vs. payments


Recommended Posts

Hello

I have three shipping methods:

1) Pickup in store
Payment methods are:
-- 1) Paid when delivered to your house by mail (This should not be an option)
-- 2) pay with creditcard online
-- 3) Bank wire (This should not be an option)

2) Driven to your home (local area)
Payment methods are:
-- 1) Paid when delivered to your house by mail (This should not be an option)
-- 2) pay with creditcard online
-- 3) Bank wire
-- 4) Pay the delivery guy, money, debit- or creditcard

3) Delivered by mail
Payment methods are:
-- 1) Paid when delivered to your house by mail
-- 2) pay with creditcard online
-- 3) Bank wire

For example if someone chooses to Pickup in store how do I control what payment methods are available/shown. As you can see I dont want them all shown every time.

Someone?

Thanks so much!

Link to comment
Share on other sites

  • 2 months later...
Hello

I have three shipping methods:

1) Pickup in store
Payment methods are:
-- 1) Paid when delivered to your house by mail (This should not be an option)
-- 2) pay with creditcard online
-- 3) Bank wire (This should not be an option)

2) Driven to your home (local area)
Payment methods are:
-- 1) Paid when delivered to your house by mail (This should not be an option)
-- 2) pay with creditcard online
-- 3) Bank wire
-- 4) Pay the delivery guy, money, debit- or creditcard

3) Delivered by mail
Payment methods are:
-- 1) Paid when delivered to your house by mail
-- 2) pay with creditcard online
-- 3) Bank wire

For example if someone chooses to Pickup in store how do I control what payment methods are available/shown. As you can see I dont want them all shown every time.

Someone?

Thanks so much!



Very good question! Someone please I need this solved too?
Link to comment
Share on other sites

A solution you can find here.

It is in Dutch, tested PS in 1.1 and in short:

Every carrier has its own unique ID.

Say you use PayPal then you find in the paypal.php:

public function hookPayment($params)
   {
       global $smarty;

       $address = new Address(intval($params['cart']->id_address_invoice));
       $customer = new Customer(intval($params['cart']->id_customer));
       $business = Configuration::get('PAYPAL_BUSINESS');
       $currency = $this->getCurrency(); 



Let say your carrier has ID=5, if you do NOT want this Carrier to be used by PayPal:
Change it to:

public function hookPayment($params)
   {
       global $smarty;

// BO ship2pay tweak      
         if ((intval($params['cart']->id_carrier))==5) return;
// EO ship2pay tweak

       $address = new Address(intval($params['cart']->id_address_invoice));
       $customer = new Customer(intval($params['cart']->id_customer));
       $business = Configuration::get('PAYPAL_BUSINESS');
       $currency = $this->getCurrency(); 



You have to do this for every paymend module.

ONLY TESTED ON PS 1.1!

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...