Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Freight Calculation in Shipping Module

    Hi there, is there a way or does anyone know how will I make my own calculation for the freight in shipping module? and also where am I going to put that?


    Ive tried this to make my own shipping module by following this link

    http://www.zen-cart.com/wiki/index.p...hipping_Module


    but when I go to the Admin panel >> modules >> shipping, this what had happened

    Name:  screenshot.jpg
Views: 94
Size:  12.0 KB


    I cant see the module that I make, and the actions to be made on other modules were seem missing


    Any help is so much appreciated form you guys


    Cheers

  2. #2
    Join Date
    Oct 2011
    Location
    Seattle,WA
    Posts
    7
    Plugin Contributions
    0

    Default Re: Freight Calculation in Shipping Module

    Not sure if your freight is already fixed but you could use a per unit (perweightunit)shipping module not sure about a calculator though...
    Good luck on your site.

  3. #3
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Freight Calculation in Shipping Module

    thank you for your quick response eclypes2008, when I removed the shipping module that I made, it came back to normal. Currently I have Australia Post and flat rate as my shipping module.

    My freight calculation would depend on the dispatch and destination postcode and the weight.


    Regarding the per unit (perweightunit)shipping module, Ive tried that one, my problem now is the charges per destination postcode..

    I cant seem to find what shipping method best suites for my website, thats why I ended up making my own shipping method by following the steps on the above mentioned link but I didnt find my luck.


    Any suggestions on how can I work this one out?

    Thanks again in advance

  4. #4
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Freight Calculation in Shipping Module

    Hi there, Ive read some threads saying that storepickup.php is technically hardcoded for that module, so cloning it is not advisable. That is the file that I cloned and did not work out. Now I tried to clone the flat.php and perweightunit.php and it works out now. My question is, is it possible for me to put my own calculation there?and how will I do it?

    Initially this is what I did

    I changed this part of code from the perweightunit.php

    PHP Code:
     function quote($method '') {
        global 
    $order$shipping_weight$shipping_num_boxes;

        
    $total_weight_units $shipping_weight;
        
    $this->quotes = array('id' => $this->code,
                              
    'module' => MODULE_SHIPPING_PERWEIGHTUNITCLONE_TEXT_TITLE,
                              
    'methods' => array(array('id' => $this->code,
                                                       
    'title' => MODULE_SHIPPING_PERWEIGHTUNITCLONE_TEXT_WAY,
                                                       
    'cost' => MODULE_SHIPPING_PERWEIGHTUNITCLONE_COST * ($total_weight_units $shipping_num_boxes) +
                                                       (
    MODULE_SHIPPING_PERWEIGHTUNITCLONE_HANDLING_METHOD == 'Box' MODULE_SHIPPING_PERWEIGHTUNITCLONE_HANDLING $shipping_num_boxes MODULE_SHIPPING_PERWEIGHTUNITCLONE_HANDLING) ) )); 

    into this one


    PHP Code:

    $mycalc 
    1//set this to the result of your calculation or whatever you want
    $this->quotes = array('id' => $this->code,
    'module' => MODULE_SHIPPING_MYCOURIER_TEXT_TITLE,
    'methods' => array(array('id' => $this->code,
    'title' => MODULE_SHIPPING_MYCOURIER_TEXT_WAY,
    'cost' => $mycalc))); 

    I just copy the latter code from this link

    http://www.zen-cart.com/wiki/index.p...hipping_Module and havent put my calculations yet..


    Am I on the right track in doing it? I would really appreciate if anyone from you would guide me since this is my first time to handle shipping module.

 

 

Similar Threads

  1. UPS Heavy Freight Module UPS Freight over 150 lbs.
    By Relentless in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 13 Jan 2011, 12:10 AM
  2. Quote freight before shipping module
    By adelante in forum Addon Shipping Modules
    Replies: 0
    Last Post: 29 Mar 2007, 02:15 AM
  3. Freight / LTL / RFQ Shipping Module?
    By ChristaJ in forum Addon Shipping Modules
    Replies: 3
    Last Post: 1 Jul 2006, 05:17 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