News:

Support the VirtueMart project and become a member

Main Menu

Shipping costs per product

Started by Ckovac, September 27, 2005, 01:16:56 AM

Previous topic - Next topic

Ckovac

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
[url="http://airsoftguy.com"]http://airsoftguy.com[/url] (airsoft guns)
[url="http://aviary.info"]http://aviary.info[/url] (parrots - Xoops)

Ckovac

Chad
[url="http://airsoftguy.com"]http://airsoftguy.com[/url] (airsoft guns)
[url="http://aviary.info"]http://aviary.info[/url] (parrots - Xoops)

Soeren

The future of eCommerce: VirtueMart & Joomla!
[url="http://virtuemart.net"]http://virtuemart.net[/url]

Ckovac

Chad
[url="http://airsoftguy.com"]http://airsoftguy.com[/url] (airsoft guns)
[url="http://aviary.info"]http://aviary.info[/url] (parrots - Xoops)


rbegga

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.


Don Hays

Don Hays
Gearbox Studios

razor7

#8
QuoteI 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
[url="http://www.mgscreativa.com"]http://www.mgscreativa.com[/url]

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

Gateux

Hello all, I have found a solution to have shipping priced at per item and its free.

QuoteSummary:
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 ) ;

QuoteHow 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

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


Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
6+9-8:
Shortcuts: ALT+S post or ALT+P preview