Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Canada Post Module

    Quote Originally Posted by Ajeh View Post
    Then the module needs to be re-written to account for free shipping like the other shipping modules are that come with Zen Cart ...

    Got your coder hat on?
    With all respect Ajeh. I appreciate your assistance. But ...
    I shouldn't need my coder hat on!

    The Canada Post module is flawed.

    You yourself state that it should "account for free shipping like the other shipping modules are that come with Zen Cart".

    In other words ... "the module doesn't work like it should!

    Brian

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Canada Post Module

    in the /includes/modules/shipping/canadapost.php file, around line 142, you have this:
    Code:
     $this->_addItem ($products_array[$i][quantity], $products_array[$i][final_price], $products_array[$i][weight], $products_array[$i][length], $products_array[$i][width], $products_array[$i][height], 'online_product', $products_array[$i][ready_to_ship], $products_array[$i][dim_type], $products_array[$i][weight_type]);
    Insert a new line directly above that one, saying this:
    Code:
    if (zen_get_product_is_always_free_shipping($products_array[$i]['id'] == false)
    Then do a test to see if you're getting the right quotes back.
    In theory this should skip sending any details to Canada Post for any products receiving free shipping.
    Thus, while *you* will have to pay for the shipping on those "free" items, at least the customer will not be charged for them.
    .

    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.

  3. #3
    Join Date
    Mar 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Canada Post Module

    DrByte

    Will have to file this for future consideration ... my customer couldn't wait ... so we decided to do table rate shipping ...

    thank you

    Brian
    Last edited by Briank58; 26 Apr 2007 at 05:36 AM.

 

 

Similar Threads

  1. Canada Post Module (w/Beanstream payment module)
    By sgt_slaughter in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Sep 2009, 07:48 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