Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default How do I prevent "Cash on Delivery" on dropship products?

    I have some dropship product and regular own stock products in store.

    Is there a way to prevent users to order the drop ship products without "Cash on Delivery" feature, without removing the "Cash on Delivery" feature compleately?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: How to prevent "Cash on Delivery" on dropship products?

    What happens if the customer orders one of each?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: How to prevent "Cash on Delivery" on dropship products?

    Well my preference would be that when user goes to checkout Zen Cart disables "Cash on Delivery" feature only if atleast one Drop Ship product exist in the cart.

    Is that possible?

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: How to prevent "Cash on Delivery" on dropship products?

    Almost anything is possible. You will need some sort of a "flag" on the products that are dropship only and then you need to test the cart for products with that flag. Can you write php?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: How to prevent "Cash on Delivery" on dropship products?

    Ou I know anything is possible well allmost anything.

    I know php wery well.
    I was wondering if ready made solution was existing, befor foing any code change on my own.

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

    Default Re: How do I prevent "Cash on Delivery" on dropship products?

    As Kim suggested, there would need to be some type of flag or indicator that can be checked for concerning the products to know what kinds are in the cart ...

    Do you have a flag already, such as:
    All Products in a specific Category
    Model Number
    Additional Field
    etc. etc. etc.

    With a flag, that can use a function in the shopping_cart.php class to test the cart content to know if 1 or more Products have the "flag" ...
    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!

  7. #7
    Join Date
    Nov 2007
    Posts
    260
    Plugin Contributions
    0

    Default Re: How do I prevent "Cash on Delivery" on dropship products?

    OK I was wondering is sutch feature allready existed and according to your resposes it does not.

    Therefore I will program it my self.

    I installed allready the dropshipping module which flags each product if it is from own stock or a drop ship supplier.

    I must take a closer look at the code how to det the "flag" info.

    Thanks for your comments and especially the reference to shopping_cart.php class was wery helpfull. Now I know where to start.

  8. #8
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: How do I prevent "Cash on Delivery" on dropship products?

    Hi Marksu,

    I am very surprised to hear there is no 'ready' solution for your problem yet. Let me know how you get on with this development - I have a similar situation: when the customer selects shipping method table rate I want to disable payment method cash on delivery. I don't want the mailman to collect the cash.

    Our problem screams for a generic approach that allows admin to set allowed the shipment/payment combinations AND default settings for any combination.

    My PHP skills are limited but let me know if I can help.

    Thanks,
    Ed

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

    Default Re: How do I prevent "Cash on Delivery" on dropship products?

    You could edit the payment module for cod.php and change:
    PHP Code:
            $this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true false); 
    to read:
    PHP Code:
          if ($_SESSION['shipping']['id'] != 'table_table') {
            
    $this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true false);
          } 
    This would stop it from showing COD when Table Rate table has been selected as the shipping method ...
    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!

  10. #10
    Join Date
    Sep 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: How do I prevent "Cash on Delivery" on dropship products?

    Works fine as a quick fix - thanks heaps!!!

    I still believe there is an opportunity for a generic framework controlling allowed payment/shipment options but that is perhaps for another time!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 16 Oct 2011, 12:58 AM
  2. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  3. "Free Shipping Options" AFFECTED "Cash on Delivery"
    By Zebra- in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 11 Jan 2010, 01:32 PM

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