Forums / Bug Reports / COD not showing as Payment Option

COD not showing as Payment Option

Locked

Views: 2,981

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
13 Jun 2006, 12:12 AM
#1
robwat avatar

robwat

New Zenner

Join Date:
Jun 2006
Posts:
4
Plugin Contributions:
0

COD not showing as Payment Option

I have an issue with zencart 1.3.0 where the "Cash on Delivery" Option does not show if a Customer has a "Gift Vouchure" (which is virtual) in their shopping Basket combined with "Non Virtual" items.

If I delete the "Gift Vouchure" from the Shopping Basket and goto Checket all is OK and the "Cash on Delivery" option is there.

"Gift Vouchures" are the Only Virtual Items I have on my site. All other Items are physical items and need to be delivered. But if a customer adds a Gift Vouchure in the same Order as other items the COD payment option wont show up..

13 Jun 2006, 12:50 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: COD not showing as Payment Option

You cannot buy a Gift Certificate with COD as COD goes to the customer's door to ring the door bell and the Gift Certificate arrives in the email ... :smile:

This is built into Zen Cart ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Jun 2006, 8:14 AM
#3
drakky avatar

drakky

New Zenner

Join Date:
Jul 2005
Posts:
30
Plugin Contributions:
0

Re: COD not showing as Payment Option

yes there seems to be a fair bit of fault built into the cod module, the design is the flaw, it wasn't thought about enough in the first place

30 Jun 2006, 8:11 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: COD not showing as Payment Option

drakky:

yes there seems to be a fair bit of fault built into the cod module, the design is the flaw, it wasn't thought about enough in the first place
Care to offer some more detail on this thought?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jul 2006, 1:14 AM
#5
drakky avatar

drakky

New Zenner

Join Date:
Jul 2005
Posts:
30
Plugin Contributions:
0

Re: COD not showing as Payment Option

sure, an example is Robwat's post , you should be able to have mixed physical and virtual items in your cart , the cod settings should only be applied to the physical items though , not just automatically completely disable the COD module if a virtual product is in the cart.
Perhaps Virtual and Physical products could be split on the checkout confirmation page and separate shipping listed? only 1 total at the bottom would be needed.

The cod fee message on the checkout payment page could be a custom message set in Order Totals Page in admin (note if a no is selected in the Admin/Order Totals for the selected shipping method , then the COD option is not displayed on the checkout payment page at all)

I also think that instead of having all those things in Order Total Modules the cod module could read the installed shipping modules from the database and allow you to change settings for them , making it easy to disable COD on the payment page for shipping methods that cannot use it, so that the customer is not given the option of Cod for any particular shipping method if it's not set in the admin panel.
This to me is a more universal approach and saves people having to find or make edits to cod.php or their shipping modules if they are ones that aren't in the standard installation package.
I'm not sure if I've explained it properly so perhaps something like this (the pic is hopefully easier to understand )

18 Apr 2009, 10:01 PM
#6
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: COD not showing as Payment Option

 
// disable the module if the order only contains virtual products
      if ($this->enabled == true) {
        if ($order->content_type != 'physical') {
          $this->enabled = false;
        }
      }
 

somewhere is /includes/modules/payment/cod.php

change
$this->enabled = false;
to
$this->enabled = true;

18 Apr 2009, 10:55 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: COD not showing as Payment Option

Be aware that if you have Gift Certificates ... those are Virtual Products ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!