imageknitting

Author Topic: Shipping costs per product  (Read 18229 times)

Ckovac

  • Beginner
  • *
  • Posts: 31
    • Airsoft Guy - Discount Airsoft
Shipping costs per product
« on: September 26, 2005, 17:16:56 PM »
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.
Chad
http://airsoftguy.com (airsoft guns)
http://aviary.info (parrots - Xoops)

Ckovac

  • Beginner
  • *
  • Posts: 31
    • Airsoft Guy - Discount Airsoft
Re: Shipping costs per product
« Reply #1 on: October 10, 2005, 19:14:51 PM »
Please?
Chad
http://airsoftguy.com (airsoft guns)
http://aviary.info (parrots - Xoops)

Soeren

  • Administrator
  • Hero Member
  • *
  • Posts: 3104
  • VirtueMart Starter
    • virtuemart.net
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net

Ckovac

  • Beginner
  • *
  • Posts: 31
    • Airsoft Guy - Discount Airsoft
Re: Shipping costs per product
« Reply #3 on: October 27, 2005, 20:10:00 PM »
Sorry Soeren, didn't see it.  And yes, thanks! =D
Chad
http://airsoftguy.com (airsoft guns)
http://aviary.info (parrots - Xoops)

keepsmiling

  • Beginner
  • *
  • Posts: 1
Re: Shipping costs per product
« Reply #4 on: October 28, 2005, 19:06:43 PM »
 I got the same problems, can anyone here help me out ?

rbegga

  • Beginner
  • *
  • Posts: 3
Re: Shipping costs per product
« Reply #5 on: January 10, 2006, 08:48:12 AM »
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.

vector

  • Beginner
  • *
  • Posts: 40
Re: Shipping costs per product
« Reply #6 on: April 20, 2006, 01:51:27 AM »
The site is down...
any news about this hack?


Don Hays

  • Jr. Member
  • **
  • Posts: 102
    • Gearbox Studios
Re: Shipping costs per product
« Reply #7 on: November 12, 2007, 22:32:40 PM »
Has anything moved forward on this front?
Don Hays
Gearbox Studios

razor7

  • Full Member
  • ***
  • Posts: 257
    • MGSCreativa - Professional VM!
Re: Shipping costs per product
« Reply #8 on: April 22, 2009, 17:35:49 PM »
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!
Take a look at our downloads section
http://www.mgscreativa.com/contenidos/index.php?option=com_docman&Itemid=214

MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Gateux

  • Beginner
  • *
  • Posts: 36
Re: Shipping costs per product
« Reply #9 on: July 31, 2010, 03: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

VirtueMart Forum

Re: Shipping costs per product
« Reply #9 on: July 31, 2010, 03:36:09 AM »