Post by evan01 » Mon Aug 30, 2010 4:48 pm

Hello everyone,
I would appreciate your help since I'm new to OC. What I'm trying to do is not allow the payment method "COD" to be available when the costumer selects "Pick up from store" as a shipping method.

For the guest checkout, I think it's easier, since both shipping and payment options are in the same page, so it can be done with javascript. But for the registered user who goes from /checkout/shipping -> /checkout/payment, I must pass the variable. I initially tried to check if the $_POST['shipping_method'] from the form reaches payment.tpl but it failed. Then I tried to pass the $this->session->data['shipping_method'] from the catalog/controller/checkout/shipping.php to a $_SESSION var but it failed. Help please! It's possible that there is an easier way to it but I dont know it.

Thanks.

Newbie

Posts

Joined
Thu Aug 26, 2010 9:08 pm

Post by i2Paq » Mon Aug 30, 2010 11:36 pm

This is called "ship 2 pay".

I've discussed this some time back: Ship 2 Pay(?).

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by evan01 » Tue Aug 31, 2010 4:11 am

Thanks alot!

Newbie

Posts

Joined
Thu Aug 26, 2010 9:08 pm
Who is online

Users browsing this forum: No registered users and 49 guests