Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop
  644 users online
Forum  >  English Forum  >  General discussion  >  Thread

1 of 3
1
Post Reply
New Topic
Payment and Shippingmodules having major configuration issue!!

offline
Posted: 08 December 2008 10:16 PM   [ Ignore ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

There is a major issue with the payment en shipping modules in PrestaShop.

The problem is that if I set-up my shop with 2 carriers (pickup and deliver) and 2 payment (cash on pickup and bankwire) I cannot force the carrier modules to only have 1 payment module.

Lets say my customer chooses the deliver-carrier option, I want him to only have the Bankwire payment option and not the CasOnPickup.
Same goes for any other set-up I create.

In osCommerce we have Ship2Pay, we need such a thing for PrestaShop a.s.a.p.

Or am I missing the point?

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 16 December 2008 10:17 PM   [ Ignore ]   [ # 1 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

BUMP!

Is there no-one who recognize this problem?

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 22 December 2008 09:30 PM   [ Ignore ]   [ # 2 ]
Regular
RankRank

Messages :

  • total: 87
  • last 7 days: 0
Joined: 2008-08-24

Hi TropischBruin,

My guess is that we have to look in order.php and there combine those two items.
I will give it some attention after the Xmass hollidays.

 
offline
Posted: 22 December 2008 10:48 PM   [ Ignore ]   [ # 3 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

Merchant - 22 December 2008 09:30 PM
Hi TropischBruin,

My guess is that we have to look in order.php and there combine those two items.
I will give it some attention after the Xmass hollidays.

I’m not sure if this is want you want.
I think a better solution is to have options within PS where you can use somethin like a dropdown box in the carrier configuration to choose:

1. when left empty the carrier can be used with any payment module
2. when set to cash-on-pickup it will only allow this payment module and nothing else.

Thans anyway foor your time!

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 29 December 2008 05:07 PM   [ Ignore ]   [ # 4 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 612
  • last 7 days: 2
Joined: 2008-07-26

I don’t think there is room for this in prestashop now (not with a module atleast)
but it should be possible to make some kind of check on the paymentmodule code and see what carrier is selected.

you can get what you want, if you modify the payment module.
$cart->id_carrier should be something you might want to check at

 Signature 

http://www.prestaworks.com Modules and themes for prestashop.
E-butik med prestashop inkl hosting och gratis installation.

 
offline
Posted: 29 December 2008 05:39 PM   [ Ignore ]   [ # 5 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

ruilong - 29 December 2008 05:07 PM
I don’t think there is room for this in prestashop now (not with a module atleast)
but it should be possible to make some kind of check on the paymentmodule code and see what carrier is selected.

you can get what you want, if you modify the payment module.
$cart->id_carrier should be something you might want to check at

OK, so the payment-modules should check on the carriers used.
Hmm, that is not so easy to do (meaning that I’m no php-coder wink ).

Adding a code I can, thinking on what code to use I cannot.

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 29 December 2008 09:14 PM   [ Ignore ]   [ # 6 ]
Regular
RankRank

Messages :

  • total: 87
  • last 7 days: 0
Joined: 2008-08-24

Is it an idea to add the carrier and payment on the product page in the admin panel?
Let’s say you have a product X, a carrier Y and a payment Z.

Now on the catalog> product page you choose the carrier and the payment that you want this product to have.
So you can tell PS that you want product X only uses carrier Y and payment Z, product A can use carrier B and payment C, for example.

 
offline
Posted: 29 December 2008 09:52 PM   [ Ignore ]   [ # 7 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

Merchant - 29 December 2008 09:14 PM
Is it an idea to add the carrier and payment on the product page in the admin panel?
Let’s say you have a product X, a carrier Y and a payment Z.

Now on the catalog> product page you choose the carrier and the payment that you want this product to have.
So you can tell PS that you want product X only uses carrier Y and payment Z, product A can use carrier B and payment C, for example.

That is to much of a hassle.

Best is:

Set: Carrier1 = payment1
Set: Carrier2 = payment2

Of no choice (set) is made then:

carrier 1 = payment1 or payment2

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 29 December 2008 10:04 PM   [ Ignore ]   [ # 8 ]
Regular
RankRank

Messages :

  • total: 87
  • last 7 days: 0
Joined: 2008-08-24

Hhmmm..

Ok, but i have some products like licenses, who can be payed after delivery (in dutch: op rekening)
When the customer does’nt pay the bill, i allways can cancell the license.
However, when a customer buys a solar panel, and he can pay after delivery, and he does’nt pay his bill then it is very difficult to get back my goods. When i can sat that the solar panel can be shipped by TNT and payed by iDeal, i have no risk.

 
offline
Posted: 29 December 2008 10:08 PM   [ Ignore ]   [ # 9 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

This you can do by using the weight (gewicht) of the product.

A license weights nothing compared to a solarscreen LOL

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 30 December 2008 12:24 AM   [ Ignore ]   [ # 10 ]
Regular
RankRank

Messages :

  • total: 87
  • last 7 days: 0
Joined: 2008-08-24

Ok, i did not looked at this possibility yet Thx. red face
And it depends if you’re talking about financial or natural weights. grin

 
offline
Posted: 06 January 2009 01:52 AM   [ Ignore ]   [ # 11 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 781
  • last 7 days: 0
Joined: 2008-08-03

I think this is only possible (currently) by editing the payment modules. In effect you could choose not to display a payment option if a particular carrier has been selected (using a hard-coded carrier_id).

In payment modules there is always a hookPayment() function which displays the payment method. Within this function you would do your test for the carrier.

So, for example if someone has picked a carrier that takes payment on delivery, you don’t want to allow payment by PayPal to be an option. In paypal.php (line 139) there is:

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();

etc.

Lets’s say your cash on delivery carrier has the id of 2, then you could change the above to:

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

        
$cart = new Cart(intval($params['cart']));
        if (
intval($cart->id_carrier==2)) return;

        
$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();

This will disable PayPal for any checkout processes where the customer has selected the carrier with the ID of 2.

A bit messy, but it would provide a quick fix.

Paul

 Signature 

Free Prestashop modules and developer resources

follow me on Twitter for news and updates.

Latest Free Prestashop Module updates:
* GoogleBase 0.6.3.1 Hotfix <- didn’t fix what is was intended to. :(
* The Ultimate Prestashop Module and Theme Development Tool

My French is terrible, so feel free to laugh when I attempt to post en français.

 
offline
Posted: 06 January 2009 05:35 PM   [ Ignore ]   [ # 12 ]
Partner
RankRankRankRankRank
Avatar

Messages :

  • total: 2165
  • last 7 days: 5
Joined: 2008-10-06

Paul C - 06 January 2009 01:52 AM
I think this is only possible (currently) by editing the payment modules. In effect you could choose not to display a payment option if a particular carrier has been selected (using a hard-coded carrier_id).

A bit messy, but it would provide a quick fix.

Paul

Paul, this will do I’ll guess.

I will testrun tonight.

Thanks!

 Signature 

Norman in ‘t VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

Op PrestaForums.nl vindt je Handleidingen, Handigheden en andere nuttige informatie in het Nederlands.

 
offline
Posted: 06 January 2009 10:53 PM   [ Ignore ]   [ # 13 ]
Apprentice
RankRank

Messages :

  • total: 28
  • last 7 days: 0
Joined: 2008-11-20

Hi Paul,

I have tried this little tweak but it seems not to work. Did you actually test it?

Never mind i found it smile

 
offline
Posted: 20 January 2009 10:28 PM   [ Ignore ]   [ # 14 ]
Newcomer
Rank

Messages :

  • total: 2
  • last 7 days: 0
Joined: 2008-12-08

Hi.

I have made a patch that enable Payment restrictions depending on the carrier.

Download it from http://alphaspel.se/prestashop/patches/Payment_Carriers_restrictions.zip there is a README.txt inside. If there is any questions please ask them in this thread.

Best regards Fredrik

 
offline
Posted: 21 January 2009 09:24 AM   [ Ignore ]   [ # 15 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 992
  • last 7 days: 4
Joined: 2008-11-01

sassur - 20 January 2009 10:28 PM
Hi.

I have made a patch that enable Payment restrictions depending on the carrier.

Download it from http://alphaspel.se/prestashop/patches/Payment_Carriers_restrictions.zip there is a README.txt inside. If there is any questions please ask them in this thread.

Best regards Fredrik

Fantastic!! Nice work.

Thanks a lot. Yuppyyyy!!

 Signature 

http://ehinarr.wordpress.com

 
 
1 of 3
1
Fast Reply
New Topic