Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    help question Shipping based on quantity per category

    I am new to ZenCart - in fact, I haven't even installed it yet. I am doing research to see if it meets my needs before I install it.

    I am specifically concerned about shipping.

    On my website, I sell sheet music and CDs.

    My sheet music is sold as a digital download - no shipping required.

    My CDs are sold such that if you buy 1 CD, the shipping cost is $2.50, but for each additional CD, the shipping should increase by $0.50.

    For example, if your order is:

    qty 2 of CD1

    then your shipping should be $3.00.

    But, if your order is:

    qty 1 of CD1
    qty 1 of CD2
    qty 1 of CD3

    then your shipping should be $3.50 -- $2.50 for the first CD & $0.50 for eah additional CD.

    Is it possible to do this within ZenCart? If not, is there an add-on module that will do this?

    I need a shopping cart solution that will allow me to do this. If ZenCart can't, is there one that will??

    Thanks in advance!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    Set up the Per Item shipping module. Set $2.00 handling and $.50 per item - the sheet music will have a special set up as a download and not be included in the shipping. (see the FAQ section for downloadables setup)
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    Thanks, Kim!

    Question: I'm looking through the FAQs and don't see anything that's immediately obvious as "downloadables setup".

    In fact, if I search the FAQ for "downloadables" it comes back empty.

    Where specifically should I look?

    Thanks!

  4. #4
    Join Date
    Nov 2007
    Location
    Burney, CA. USA
    Posts
    131
    Plugin Contributions
    4

    Default Re: Shipping based on quantity per category

    Quote Originally Posted by ladysun1969 View Post
    Thanks, Kim!

    Question: I'm looking through the FAQs and don't see anything that's immediately obvious as "downloadables setup".

    In fact, if I search the FAQ for "downloadables" it comes back empty.

    Where specifically should I look?

    Thanks!
    I would do a search for "Downloadable Attribute Settings" it will populate with several threads that are well worth reading... with this one http://www.zen-cart.com/....t=35776 providing a fairly easy to understand method of how to set up an attribute that allows your customer to download (after paying for) your sheet music (or any other file you wish to allow them to download).

  5. #5
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    Thanks DWells!

    BTW, I ordered the book, too.

  6. #6
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    Quote Originally Posted by Kim View Post
    Set up the Per Item shipping module. Set $2.00 handling and $.50 per item
    hi.. i'm doing almost the same thing here, but i have more than one item type. i understand the process of cloning (a little).. is that what i would need to do in order to have 2 different products, each with their own shiping rates? i also need to add rates based on shipping zone. basically my setup is the following logic (with fake products):

    if item is 'rock', $15 for the first one and $3 each additional
    + if zone is canada, add $5 shipping for first and $1 additional
    + if zone is any other country, add $8 shipping for first and $1 additional

    if item is 'wood' $3 for the first one and $1 each additional
    + if zone is canada, add $1 shipping for first and $0.50 additional
    + if zone is any other country, add $2 shipping for first and $0.75 additional

    is that kind of setup possible??

    thank you!

  7. #7
    Join Date
    Jan 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    I also need an answer to this problem. My situation is the same as the one above me, but I don't have different zones: just 3 types of items that I need separate per item shipping modules for. Is this possible? If so, how do I assign the modules (once I have cloned them) to the specific items?

    Help is MUCH appreciated. This is one of my last steps to going live: www.theartistoflife.com/catalogue

  8. #8
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    Hi kelly.. i've come up with a working though slightly flawed solution.. I did end up cloning the item module. I followed the instructions here to do that:

    http://www.zen-cart.com/forum/showth...216#post149531

    I called my new module "myitem" so when i did the search and replace, i replaced with the text "myitem" and "MYITEM" accordingly... it showed up in the admin, so i uninstalled the old item and then installed my new item, then did my custom coding and tested... it works great.

    but it created a new problem.. when i went to the admin, the right side pane where you can edit the module settings, went missing! the only way i found to fix it was to rename the files item.php in each folder to item.php.sav, so that module would not be parsed by the admin interface... now i don't know what caused this, bc i don't have time to debug it. but note that if you follow the instructions on that page, you might run into the same issues and have to do what i did.

    i would love to get some idea why this might happen though.

    i'll post my code in a follow up post so as not to clutter this one up.

  9. #9
    Join Date
    Jan 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    here is my code. you may need to hire a specialist to redo this, or you could try to work it out on your own:

    Code:
    function quote($method = '') {
    	global $order, $total_count;
    
    	// i ignore free shipping items..  all items are priced not matter what.
    	//$total_count = $total_count - $_SESSION['cart']->free_shipping_items();
    
    	// each array item is another array consisting of the product name, it's base shipping cost,
    	// the price of each extra unit shipped, and the IDs of each product in that price category.
    	$product_chart = array(
    		'hoops' => array(
    			'base' => 15,
    			'extra' => 3,
    			'ids' => array(6, 7, 8, 10, 11)
    		),
    		'videos' => array(
    			 'base' => 3,
    			 'extra' => 1,
    			 'ids' => array(3, 12)
    		),
    		'tickets' => array(
    			'base' => 0,
    			'extra' => 0,
    			'ids' => array(9)
    		)
    	);
    
    	$cost = 0;
    
    	// calculate the cost based on quantity
    	foreach ($order->products as $product) {
    		foreach ($product_chart as $product_type => $product_details) {
    			if (in_array($product['id'], $product_details['ids'])) {
    				$qty = $product['qty'];
    				$cost += $product_details['base'] + $product_details['extra'] * ($qty - 1);
    			}
    		}
    	}
    
    	$this->quotes = array(
    		'id' => $this->code,
    		'module' => 'Shipping',
    		'methods' => array(
    			array(
    				'id' => $this->code,
    				'title' => MODULE_SHIPPING_MY_ITEM_TEXT_WAY,
    				'cost' => $cost
    			)
    		)
    	);
    
    	if ($this->tax_class > 0) {
    		$this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
    	}
    
    	if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title);
    
    	return $this->quotes;
    }

  10. #10
    Join Date
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Shipping based on quantity per category

    Quote Originally Posted by Kim View Post
    Set up the Per Item shipping module. Set $2.00 handling and $.50 per item - the sheet music will have a special set up as a download and not be included in the shipping. (see the FAQ section for downloadables setup)

    Hi,
    I'm new, and lost. Where do I find the "Per Item shipping module"?

    "Downloadables" in https://www.zen-cart.com/tutorials/index.php here? Maybe my eyes are too tired tonight.

    Basically I want to use the table method, but have different tables for different items, or something plausible along that idea.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v139h Per unit/per category/per location shipping rates
    By jsavoie in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 4 Nov 2012, 06:19 PM
  2. Shipping Cost Based On Item Category With Discount Per Multiple Items In Category
    By CFen in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Nov 2011, 07:05 PM
  3. Shipping Quantity rate based shipping by category
    By arbocmata in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 Jan 2009, 07:11 PM
  4. shipping based on quantity
    By mohnish2008 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 21 Jan 2008, 09:24 AM
  5. Minimum quantity per category
    By Calstamps in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 5 Dec 2006, 05:48 AM

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