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

Ckovac

  • Beginner
  • *
  • Posts: 31
    • Airsoft Guy - Discount Airsoft
Shipping costs per product
« 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.
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 11, 2005, 03:14:51 am »
Please?
Chad
http://airsoftguy.com (airsoft guns)
http://aviary.info (parrots - Xoops)

Soeren

  • Administrator
  • Sr. Member
  • *
  • Posts: 3106
  • 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 28, 2005, 04:10:00 am »
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 29, 2005, 03:06:43 am »
 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, 15:48:12 pm »
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, 09: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 13, 2007, 05:32:40 am »
Has anything moved forward on this front?
Don Hays
Gearbox Studios

razor7

  • Jr. Member
  • **
  • Posts: 325
    • MGSCreativa - Professional VM!
Re: Shipping costs per product
« Reply #8 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!
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

Gateux

  • Beginner
  • *
  • Posts: 36
Re: Shipping costs per product
« Reply #9 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

jewel.ost

  • Beginner
  • *
  • Posts: 5
  • Skype Name: ostoprohor
Re: Shipping costs per product
« Reply #10 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