Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    90
    Plugin Contributions
    0

    Default shipping method based on payment method?

    Hi, is there a way to relate the shipping methods available to the payment method?
    I want it so that when COD is chosen for payment then only COD is available to select as the delivery method, but when any other payment method is used then all other shipping options are shown but not COD.
    I keep getting customers choosing COD shipping when they have payed via CC or choosing express post when they have chosen COD for payment

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: shipping method based on payment method?

    Quote Originally Posted by psr racing View Post
    Hi, is there a way to relate the shipping methods available to the payment method?
    Not easily on account of the fact that the shipping costs are calculated before the payment methods are considered.

    To do what you require would involve significant changes to the code logic.
    The payment method would need to be determined before the shipping methods are provided, and then the payment amount calculated based on the shipping method chosen and this amount then needs to be applied back to the payment method.

    Normal logic dictates that the all costs be calculated first and the payment methods offered/supplied when these costs are known. On this basis your best solution would be to limit the payment options if COD is selected as a shipping method.

    Quote Originally Posted by psr racing View Post
    I want it so that when COD is chosen for payment then only COD is available to select as the delivery method,
    It would need to work the 'other way'.. When COD is selected as a delivery method then only COD should be offered as a payment method.

    Quote Originally Posted by psr racing View Post
    but when any other payment method is used then all other shipping options are shown but not COD.
    Again, the shipping methods/costs are needed to be 'known' before the payment methods can be offered. To alter this behavior will require a significant bit of code changing.

    Quote Originally Posted by psr racing View Post
    I keep getting customers choosing COD shipping when they have payed via CC
    Not sure why they would want to do this.... COD is usually one of the more expensive shipping methods, and the act of paying by CC and being willing to pay COD as well is nothing short of an act of stupidity.
    If these people really do wish to double their payments to you why not let them? <grin>

    Quote Originally Posted by psr racing View Post
    or choosing express post when they have chosen COD for payment
    Now this is something that will make sense to a lot, perhaps even most people. After all, an express shipment paid COD is a very appealing method to many, and a number of these people won't even realise that it is an impossible ask.

    Alas, there is no easy solution (that I know of) to circumvent the issue.

    A part of the problem is that COD is both a shipping AND a payment method, but zencart handles shipping and payments as two independent entities/functions.

    Sorry that I don't have the answer you would like, but perhaps you now have a better idea as to hiow/why the problem occurs.

    Cheers
    Rod

  3. #3
    Join Date
    Jul 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: shipping method based on payment method?

    I have an idea about this COD issue.

    But I don't know the first thing about making mods for ZenCart but I wish I did :).

    But perhaps someone who is capable of creating a mods is able to create a COD shipping mod by cloing the Store Pickup option built into ZenCart?

    Basically what happens is. It works just like the Store Pickup option as in no shipping charge is applied to the order. So that when you proceed to the payment page it will list COD as the shipping method much like Store Pickup is listed in the total.

    From there the customer just selects COD as the payment method as per normal.

    That way this mod gives the customers the option of selecting COD as the shipping method rather than selecting a paid shipping option so that they can proceed onto the payment page.

    So my next question is. Is it easy or would it be easy for someone like myself with no experience in regards to creating mods for ZenCart to duplicate the Store Pick up option that's built into ZenCart so that a COD shipping option mod can be made this way? As I would be willing to give it a go if I could be giving some tips and pointers as to how to proceed with this.

    As I think it is a worthwhile addition and something many people would use.

    Thanks.

 

 

Similar Threads

  1. v151 Disable a payment method for a chosen shipping method?
    By chowyungunz in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 12 Jun 2015, 12:56 PM
  2. Payment method based on shipping type?
    By celticwebsolutions in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Dec 2010, 11:25 AM
  3. Shipping based on payment method
    By Prorad in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Oct 2009, 01:43 PM
  4. Payment based on shipping method?
    By Jeff G in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Nov 2008, 10:48 PM
  5. Only show payment method when UPS shipping method chosen?
    By helen610 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Aug 2008, 03:04 AM

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