Results 1 to 5 of 5
  1. #1
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Can I stop Money Order showing for Gift Certificate purchase?

    We followed the instructions for setting up the gift certificates located here:
    http://www.zen-cart.com/content.php?...t-certificates

    We thought setting the product to virtual would disable the COD payment module option.

    The gift card product is set as virtual, but it still shows COD as a payment option at checkout. Is there a setting we missed?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Money Order showing for Gift Certificate

    Could you hit reply and answer the questions that come up ...

    On this Virtual Product ... what are the settings for:
    Product is Virtual?
    Always Free Shipping?
    Product Model?
    Product Weight?
    Last edited by Ajeh; 15 Mar 2013 at 01:21 AM.
    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: v1.5.5]
    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!

  3. #3
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Money Order showing for Gift Certificate

    Thank you for your quick response.

    This is not actually for COD, it is for Check or Money Order. Is there a way to not accept check or money order for gift certificates?

    Product is Virtual? Yes, Skip Shipping Address
    Always Free Shipping? No, Normal Shipping Rules
    Product Model? GIFT-D402
    Product Weight? 0
    Last edited by Ajeh; 15 Mar 2013 at 01:21 AM.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Money Order showing for Gift Certificate

    To make the Payment module Money Order moneyorder not work on Orders that are not Physical, you could add the code in RED:
    Code:
    // class methods
        function update_status() {
          global $order, $db;
    
          if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_MONEYORDER_ZONE > 0) ) {
            $check_flag = false;
            $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_MONEYORDER_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
            while (!$check->EOF) {
              if ($check->fields['zone_id'] < 1) {
                $check_flag = true;
                break;
              } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {
                $check_flag = true;
                break;
              }
              $check->MoveNext();
            }
    
            if ($check_flag == false) {
              $this->enabled = false;
            }
          }
    // disable the module if the order only contains virtual products
          if ($this->enabled == true) {
            if ($order->content_type != 'physical') {
              $this->enabled = false;
            }
          }
        }
    This means that it will NOT work for Gift Certificates or Download Products or any other Virtual Product ...
    Last edited by Ajeh; 15 Mar 2013 at 01:21 AM.
    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: v1.5.5]
    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!

  5. #5
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Money Order showing for Gift Certificate

    Thank you! Yes, we did exactly as you suggested, and it works perfectly. The change was made in includes/modules/payment/moneyorder.php. We just pulled that little code snip from the cod.php file.

    Would it be possible for you to change the title of this thread from "COD" to "Money Order", so we can help others who might want to do the same with Money Orders?
    Last edited by Ajeh; 15 Mar 2013 at 01:22 AM.

 

 

Similar Threads

  1. v151 Gift Certificate Purchase
    By Bruce1952 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 22 Nov 2013, 01:46 PM
  2. Gift certificate purchase for out of stock line. Put credit back onto GC ?
    By Muzz in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 1 Sep 2012, 09:08 AM
  3. Replies: 6
    Last Post: 10 Apr 2009, 04:44 PM
  4. coupon for free gift with gift certificate purchase?
    By tkepler in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR