Post by evilfx » Fri Mar 23, 2012 8:37 am

Hi, i'm new to opencart.

For the orders that people select as shipping method pickup from store, i want to enable only a few payment methods ( paypment at the store and/or payment on delivery ). For this shipping method i want to exclude VISA/paypal and everything else i eventually enable.

How do i do this ?

Thanks

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Fri Mar 23, 2012 10:39 am

I have a Restrict Payment Methods extension that allows you to disable payment methods based on a variety of criteria, including the shipping method selected.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by evilfx » Fri Mar 23, 2012 11:02 am

i see you haven't updated your plugin to the latest opencart version, can you guarantee it will work ?

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Fri Mar 23, 2012 9:20 pm

Ah, you didn't mention you were running 1.5.2. I haven't yet updated it for compatibility, but it should be done within a few days.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by evilfx » Sun Mar 25, 2012 2:34 am

let me know when it's available

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Sun Mar 25, 2012 9:25 pm

It's now been updated for 1.5.2 compatibility. You can check out the latest version here:

www.getclearthinking.com/restrict-payment-methods

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by evilfx » Mon Mar 26, 2012 6:11 pm

Hi Johnathan,

Thanks for the update.
Just to make sure, what i need is:

If a client selects Pickup from Store as shipment method, i want the available payment methods to be restricted to Cash on Delivery.
Also, i need the Cash on Delivery payment method to be restricted to the Pickup from Store shipment method.

I was looking at your demo and i don't see how this is possible with your plugin. Are you sure it can do this ?

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Mon Mar 26, 2012 9:26 pm

So you need "Cash on Delivery" to be available if and only if "Pickup From Store" is selected? Yes, this is possible.

Just create a restriction, select "Cash on Delivery", and in the Shipping Methods section select only "Pickup From Store". This means it will be available only when "Pickup From Store" is selected.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by evilfx » Mon Mar 26, 2012 10:02 pm

i need it to work both ways.

i need pickup from store to only have 1 payment method available: cash on delivery
i need cash on delivery to be available to only 1 shipping method: pickup from store.

it does both things, correct ?

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Tue Mar 27, 2012 6:32 am

Yes, it does. Shipping methods are always selected first in OpenCart, so if you restrict "Cash on Delivery" to only be available when "Pickup From Store" is selected, it won't be displayed if any other shipping methods are selected.

Feel free to try it out on the demo.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by evilfx » Wed Mar 28, 2012 7:07 am

i just bought, tested it, and it's not working, i sent you an email with my settings.

please check it.

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Wed Mar 28, 2012 7:11 am

Are you sure you got my e-mail address right? I don't think I have any e-mail from you in my inbox.

You can also contact me with your info at www.getclearthinking.com/contact

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by evilfx » Wed Mar 28, 2012 7:20 am

yes, i used that contact form.

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by evilfx » Wed Mar 28, 2012 7:21 am

here's what i wrote:

Hi, i just bought your plugin, i'm trying to do what i explained you here: http://forum.opencart.com/viewtopic.php ... 13#p266101

but it doesn't do what it is supposed to.

here are my settings:

http://prntscr.com/7h2kx

i tried several combinations, without luck.

also, on the instructions file i assumed you haven't updated it yet so i also performed this change:
FOR v1.5.0.x - 1.5.1.x
------------------------------------------------------------------------------
IN:
/catalog/controller/checkout/payment.php

REPLACE:
if (!isset($this->session->data['payment_methods'])) {

WITH:
if (true) {
it's supposed to, right ?

meanwhile, i changed that back to:
if (!isset($this->session->data['payment_methods'])) {
no success

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Johnathan » Thu Mar 29, 2012 8:15 pm

1. I just did an upgrade to my site, and my contact form wasn't working, which is why I didn't receive your e-mail. (Thanks for helping me figure this out.) You can try it now if you want to correspond over e-mail. My direct e-mail address is also listed in the files for the extension.

2. I've sent you a PM requesting your store admin info, which if you send me I can take a look.

3. That file edit is only relevant for 1.5.0 and 1.5.1. There is no payment.php file in 1.5.2, and the file that replaced it does not have that line.

4. Are you sure you've made the manual edit properly or uploaded the vQmod file? If so, are you sure you've restricted the other payment methods so they are disabled when "Pickup from Store" is selected?

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by sprabhat2005 » Mon Apr 09, 2012 5:23 am

Hi Jonathan

How are you? Recently I buy payment method restrictions plugin but its not working at all.
I am using opencart V 1.5.1.3.1.

I want IF a customer select Cash on delivery method in delivery method than in payment method ONLY Cash on delivery should be visible not others like visa or cash before delivery.

If you want I can send you screen shot also, pls share your mail Id.
Pls help me i must need asap.

Thanx

Prabhat Saini :(

Newbie

Posts

Joined
Mon Apr 09, 2012 5:10 am

Post by sprabhat2005 » Sun Apr 15, 2012 5:56 am

Thanx Jhonathan. Problem Solved.

Newbie

Posts

Joined
Mon Apr 09, 2012 5:10 am
Who is online

Users browsing this forum: No registered users and 22 guests