Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Need some Help in COD. COD fee depending on order price

    Hi,
    I am new to zencart and need some help from Zencart gurus here. Pls help me.


    I want to take some fees say $5 for COD for orders below 500 and above that COD fees will be free i.e. 0.

    Pls help me in setting it. The COD fee (0 or the value $5) should be reflected in the order / invoice etc if the COD payment mode is used.



    Now before that I need another check as I am planning to make COD available to only few zipcodes in a particular area.
    I have a table with columns Sl,zipcodes, city,area, serviceable. the serviceable contains YES or NO.

    Now I need to check first if the shipping (current address) zipcode is serviceable or not. if not it will just display "COD not available for your zipcode or the zipcode entered is wrong" (if the zipcode is not found in database). Also making the COD option read only. If the zipcode is serviceable the COD option will work normally.

    Thankyou in advance.

  2. #2
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Need some Help in COD. COD fee depending on order price

    pls help me friends

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Need some Help in COD. COD fee depending on order price

    The logic for handling zone validation is in the update_status() function/method of the COD module file.
    You can add your additional logic for your custom zone restrictions and your pricing changes to that section as well.
    .

    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.

  4. #4
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Need some Help in COD. COD fee depending on order price

    its not about the zone.

    I need to look up in the table for the zipcode entered during checkout in the shipping address and show the cod option after checking if the zipcode entered is serviceable or not. Actually, in a zone many zipcodes will not be serviceable.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Need some Help in COD. COD fee depending on order price

    Right. But your specialized logic for certain zip codes is the exact same concept as the builtin broader zone-based restrictions. Thus adding your custom logic to that same section of the code would the logical way to implement it.
    .

    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.

  6. #6
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Need some Help in COD. COD fee depending on order price

    thanks buddy. Actually I am bit novice in programming, pls give me a refrence where I need to change the code. like the file name & code section. will give it a try.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Need some Help in COD. COD fee depending on order price

    Quote Originally Posted by DrByte View Post
    The logic for handling zone validation is in the update_status() function/method of the COD module file.
    You can add your additional logic for your custom zone restrictions and your pricing changes to that section as well.
    /includes/modules/payment/cod.php
    .

    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.

  8. #8
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Need some Help in COD. COD fee depending on order price

    should I edit that code with the zipcode database part

  9. #9
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,826
    Plugin Contributions
    31

    Default Re: Need some Help in COD. COD fee depending on order price

    What I did was consider COD to be a shipping option, since the carriers (Postal Service, Couriers..) have different fee structures for the different shipping services and this is all easily managed by Advanced Shipper (comercial module) which will do the zipcode filtering you want.
    Then, when a COD shipping service is selected, I disable the other payment options on the payment page to stop the idiots paying by another method again.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  10. #10
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: Need some Help in COD. COD fee depending on order price

    @torvista : thanks buddy for the much needed information. it really helped. God Bless

 

 

Similar Threads

  1. v154 Two different COD fee amounts (depending on cart total)
    By tilenk in forum General Questions
    Replies: 6
    Last Post: 28 Apr 2016, 12:28 PM
  2. v139h cod fee not added to total on order confirm page
    By raj3396 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 8 Oct 2012, 07:09 PM
  3. v150 COD depending on address
    By bratsangels in forum Basic Configuration
    Replies: 1
    Last Post: 1 Aug 2012, 03:17 AM
  4. COD fee for Canada help
    By sjgarg in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Jan 2008, 06:25 AM
  5. COD Fee
    By Svanis in forum Basic Configuration
    Replies: 4
    Last Post: 23 Jun 2006, 02:31 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