Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Maximum shipping charges

Maximum shipping charges

Locked

Views: 907

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 Dec 2008, 10:04 PM
#1
boogy avatar

boogy

New Zenner

Join Date:
Aug 2008
Posts:
12
Plugin Contributions:
0

Maximum shipping charges

Currently, we are set-up to charge a handling fee of $2.00 and $1.25 per item. So if you order 1 item, it will cost you $3.25 total S&H. If you order 2 items, it will cost you $4.50 total. My question is, is it possible for me to set up a max. S&H charge regardless of how many items are ordered. For example, based on how we have it set-up, if one were to order 10 items, it would cost them $14.50. I would actually like to use the calculations that we already have in place but set a max. of say.....$10.00.

14 Dec 2008, 5:47 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Maximum shipping charges

You could customize the Item Rate item shipping module, I recommend cloning it otherwise it will get overwritten in an upgrade ...

Find the code for:

// class methods
    function quote($method = '') {
      global $order, $total_count;

      // adjusted count for free shipping
      $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                     'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING)));

And customize the cost to manage the highest you want to charge ...

14 Jan 2009, 7:15 PM
#3
caveo avatar

caveo

New Zenner

Join Date:
Jan 2009
Posts:
1
Plugin Contributions:
0

Re: Maximum shipping charges

I have the same question as boogy. If I implement this code do I input the dollar values myself? I'm a noob when it comes to this so I guess my question really is will this code perform the function that boogy is looking for? Could you further explain this if you have the time? Thanks in advance.

Ajeh:

You could customize the Item Rate item shipping module, I recommend cloning it otherwise it will get overwritten in an upgrade ...

Find the code for:

// class methods
function quote($method = '') {
global $order, $total_count;

  // adjusted count for free shipping
  $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
  $this->quotes = array('id' => $this->code,
                        'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                        'methods' => array(array('id' => $this->code,
                                                 'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                 'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING)));
> 
> And customize the cost to manage the highest you want to charge ...
*Posted via Mobile Device*
14 Jan 2009, 8:36 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Maximum shipping charges

Just get cost to be the right value ... this is then managed for the currency elsewhere ... :smile: