Hi,
I am trying to figure out the best way to setup a shipping method and want to know if anyone has any ideas?
Currently I would like the first item be 7 dollars and any addition items is 3.50 each
Not sure how to configure that.
Thanks!
Hi,
I am trying to figure out the best way to setup a shipping method and want to know if anyone has any ideas?
Currently I would like the first item be 7 dollars and any addition items is 3.50 each
Not sure how to configure that.
Thanks!
You could adapt the Item Rate item shipping module for this ...
I believe you could set the Item Rate item setting for how much per Item to 3.50 ...
Then customize the code:
/include/modules/shipping/item.php
Code:if($item_total_count <= 7) { $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' => (7.00) + MODULE_SHIPPING_ITEM_HANDLING))); } else { $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 - 7)) + 7.00 + MODULE_SHIPPING_ITEM_HANDLING))); }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Do I just add the code?
Where would I put it?
Would usps module work?
Have the first item at usps rate and any addition item is 3.50?
Last edited by chal2les; 9 Apr 2010 at 09:52 PM.
The difficulty in trying to do this on the USPS shipping module is knowing which 7 items are the 1st 7 items for the weight for the quote from USPS as the weight is calculated in the shipping.php class where the total weight is prepared and is the per quantity per product time its weight ...
Suddenly, you want to take all of the weight calculated and subtract out the weight beyond 7 Products ...
Which 7 Products?
What happens when there are 2 Products at quantity 3 and 1 at quantity 4 etc. etc.
Now you could use USPS when the Item Count is less than or equal to 7 (7 being total item count regardless if this is 7 Products or quantity 2, 2, 3 on 3 Products) for USPS ... and then at Item Count 8 or more items turn off USPS and use something else ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks