Jump to content

Shipping by Price


Guest icedt

Recommended Posts

I am trying to creating shipping rates based on various item prices. For example if the item costs between $0.01 and $49.99, I would like to charge $8.50 shipping. If the item costs between $50.00 and $99.99, I would like to charge $10.50.... etc. etc. Almost every other shopping cart I've dealt with allows you to do this. Does anyone know how this would be accomplished within Cube Cart? I greatly appreciate your help.

Link to comment
Share on other sites

  • 2 weeks later...

  • 2 weeks later...
  • 4 weeks later...
Guest ashsinha

Shipping and fulfillment costs are sometimes difficult to determine, by comparison. One way to handle this problem is to reduce the complexity of shipping and handling to a single spreadsheet that captures everything you need to know.

Link to comment
Share on other sites

  • 5 months later...
Guest westonjeff

Need to configure shipping based on total order cost as follows

$0 - 50 = $5.00

50-100 = $10.00

100-150 = $15.00

Over $150 = Free

Seems simple enough, but the "By Price" module doesn't look to have multiple variables to be configured as detailed above.

Thanks in advance for any help you can provide.

Link to comment
Share on other sites

Shipping By_Price is, in my opinion, not programmed to be what this module implies it to be. I think as it is, it is a combination of Free-Shipping (above a stated amount) and Flat_Rate (+ship/hand/tax). But certainly not by any levels of price.

Here is a short edit that will make By_Price calculate a shipping cost based on SubTotal* bands:

50.00:5.00, 100.00:10.00, 150.00:15.00

This syntax is as follows:

up-to-amount : cost

means that the subtotal* must be less than or equal to the subtotal for a cost value of shipping

comma-separated bands.

The highest band that contains the subtotal* will be used. ($99.95 subtotal* is $10.00 cost.

You must also state the subtotal* level when free shipping kicks in (say, $150.01), and the Handling cost and tax-type that is applied regardless.

Please make this related edit first:

modulesshippingBy_Priceskinadminindex.tpl

lines 4 and 8, change byprice to by_price

In shipping.class.php, change


   	 } else {

			$value = $this->_settings['amount'];

			if ($this->_settings['handling']>0) $value += $this->_settings['handling'];

		}





to



   	 } else { // get shipping cost for band

	   	 $bands = explode(',', str_replace(' ', '', $this->_settings['amount']));

			natsort($bands);

			if (is_array($bands)) {

				foreach($bands as $band) {

					$band_parts = explode(':', str_replace(' ', '', $band));

					/* $band_parts[0] = SubTotal, $band_parts[1] = ShipCost */

					if ($this->_basket['subtotal'] - $this->_basket['discount'] <= $band_parts[0]) {

						$value	= $band_parts[1];

						break;

					}

				}

			}

	   	 if ($this->_settings['handling']>0) $value += $this->_settings['handling'];

		}

*NOTE: subtotal is defined as the sum total of all line items less any discounts applied. So, if the line items add to $500, and the customer uses a discount of $375, there will be a shipping cost calculated for $15.00.

This is an experiment only. I have not yet confirmed this will work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...