VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Feature requests => Shipping Modules => Topic started by: Ckovac on September 27, 2005, 01:16:56 am

Title: Shipping costs per product
Post by: Ckovac on September 27, 2005, 01:16:56 am
Well I think what is really needed is the ability to add a shipping override amount to any given item.

Say I have 3 products.  On product 3 I have a shipping override value of $5.  Normally I charge shipping at $1 per item.  If a customer orders items 1 and 2 they are charged $1 per item or $2 shipping.  Then if they add item 3 I want them charged the original $2 shipping + $5 for item 3 because item 3 is heavy or bulky or for some other reason just costs more.  Total shipping should be $7 then.

I can't figure out how to get this to do this without just offering FREE shipping and including the shipping costs in the product price.
Title: Re: Shipping costs per product
Post by: Ckovac on October 11, 2005, 03:14:51 am
Please?
Title: Re: Shipping costs per product
Post by: Soeren on October 11, 2005, 14:09:51 pm
Thanks!

http://virtuemart.net/index.php?option=com_flyspray&Itemid=83&do=details&id=31
Title: Re: Shipping costs per product
Post by: Ckovac on October 28, 2005, 04:10:00 am
Sorry Soeren, didn't see it.  And yes, thanks! =D
Title: Re: Shipping costs per product
Post by: keepsmiling on October 29, 2005, 03:06:43 am
 I got the same problems, can anyone here help me out ?
Title: Re: Shipping costs per product
Post by: rbegga on January 10, 2006, 15:48:12 pm
I have written a module that does exactly this.  You can download it at www.compdat.com (http://www.compdat.com).  Please note that the taxation functionality mentioned within it is not yet ready.  I will have that function complete in the next couple of days.
Title: Re: Shipping costs per product
Post by: vector on April 20, 2006, 09:51:27 am
The site is down...
any news about this hack?

Title: Re: Shipping costs per product
Post by: Don Hays on November 13, 2007, 05:32:40 am
Has anything moved forward on this front?
Title: Re: Shipping costs per product
Post by: razor7 on April 23, 2009, 01:35:49 am
Quote
I have written a module that does exactly this.  You can download it at www.compdat.com.  Please note that the taxation functionality mentioned within it is not yet ready.  I will have that function complete in the next couple of days.

Please consider add it to the extensions directory!

Thanks a lot!
Title: Re: Shipping costs per product
Post by: Gateux on July 31, 2010, 11:36:09 am
Hello all, I have found a solution to have shipping priced at per item and its free.

Quote
Summary:
This solution uses VM's Standard Shipping Module. You only need to add "one" additional line of code to standard_shipping.php then use the standard VM "Shipping / Create a Shipping Rate" to create multiple "flat rate + additional cost" or multiple flat rate shipping policies or multiple location based free shipping.

Edit the file:
/your_site_root/administrator/components/com_virtuemart/classes/shipping/standard_shipping.php

Locate the following section:
$total_shipping_handling = $dbr->f( "shipping_rate_value" ) + $dbr->f( "shipping_rate_package_fee" ) ;
$total_shipping_handling = $GLOBALS['CURRENCY']->convert( $total_shipping_handling ) ;
$total_shipping_handling *= $taxrate ;
$show_shipping_handling = $CURRENCY_DISPLAY->getFullValue( $total_shipping_handling ) ;

Add/Insert the following line indicated in red:
$total_shipping_handling = $dbr->f( "shipping_rate_value" ) + $dbr->f( "shipping_rate_package_fee" ) ;
$total_shipping_handling = $GLOBALS['CURRENCY']->convert( $total_shipping_handling ) ;
$total_shipping_handling *= $taxrate ;
$total_shipping_handling = $d["zone_qty"] * $dbr->f( "shipping_rate_value" ) + $dbr->f( "shipping_rate_package_fee" ) ;
$show_shipping_handling = $CURRENCY_DISPLAY->getFullValue( $total_shipping_handling ) ;

Quote
How you configure it in VM:
1) Enable Standard Shipping under "Admin / Configuration / Shipping" make sure that the Standard Shipping Module is checked.

2) Create a shipping rate under "Shipping / Create a Shipping Rate"

This work around solution changes the definition or purpose of the fields "Fee:" and "Your package fee:". "Fee:" is now the multiplier to "items in cart" and "Your package fee:" is now the added fixed base amount.

The above formula is now: ((items in cart * Fee:) + Your package fee:)

CREDITS TO: http://forum.virtuemart.net/index.php?topic=57350.0

If you want to set a fixed pricing for all items which means the first item and additional items to be the same price, see the example below.

First Item: $0.80
Additional Item: $0.80

Set Fee to $0.60 and Package Fee to $0.80

NOTE: If you leave your Fee & Package Fee at $0.80, when you check out, lets say you have 4 items, the total shipping price will be $4.00, hence you do this tweaking and your price will be back normal which is $0.80 x 4 items = $3.20
Title: Re: Shipping costs per product
Post by: jewel.ost on February 05, 2014, 06:27:01 am
How do i have to make shipping rate like,
 for single product purchase rate $10
 for 2 products purchase rate $15
 for 3 products purchase rate $ 20
....... increasing rate is $5