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.