midrik Posted May 22, 2009 Share Posted May 22, 2009 HelloI have three shipping methods:1) Pickup in storePayment 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 creditcard3) Delivered by mailPayment methods are:-- 1) Paid when delivered to your house by mail-- 2) pay with creditcard online-- 3) Bank wireFor 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 More sharing options...
Tine Chem Posted August 13, 2009 Share Posted August 13, 2009 HelloI have three shipping methods:1) Pickup in storePayment 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 creditcard3) Delivered by mailPayment methods are:-- 1) Paid when delivered to your house by mail-- 2) pay with creditcard online-- 3) Bank wireFor 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 More sharing options...
TropischBruin Posted August 13, 2009 Share Posted August 13, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now