Jump to content

Shipping Help


Guest

Recommended Posts

I have modded my store to allow for free shipping for all totals of more than $100 and $5 for less. You could easily scale this out to as many tiers as you want. If you need the code just reply to this.

Celtic

Link to comment
Share on other sites

Guest vrakas

I am sure i saw a few persons requiring this, so why dont you just post it here and let them search and find this solution you provided? :D

Link to comment
Share on other sites

// calculate shipping when we have reached step4 or over

	

	

  

  $noItems = $cart->noItems();

  $optNo = "";

  $sum = 0;

  

  if($subTotal>=100)

 	 {

 	 $shippingPrice="0.00";}

 	 

 	 

  elseif($subTotal<100)

 	 {

 	 $shippingPrice="5.00";}	

 	 

 	 // add shipping cost if it has already been made

    // add shipping cost if it has not already been made

    

    

  else {

	

  $shippingPrice = $lang['front']['cart']['na'];

	

	}

	

	$shipCost = $shippingPrice;





	$view_cart->assign("LANG_SHIPPING",$lang['front']['cart']['shipping']);

	

	$view_cart->assign("VAL_SHIPPING",$shippingPrice);

	

	$view_cart->assign("LANG_TAX",$lang['front']['cart']['tax']);

You will have to find "$sum = 0;" and make my code look like yours after that. And my code goes until you hit the line "$view_cart->assign("LANG_SHIPPING",$lang['front']['cart']['shipping']);".... Like I said in my original post you could easily make as many shipping values as you want... An example would be:

if($subTotal>=100)

{

$shippingPrice="0.00";}

elseif($subTotal>=200)

{

$shippingPrice="5.00";}

elseif($subTotal>=300)

{

$shippingPrice="15.00";}

elseif($subTotal>=400)

{

$shippingPrice="25.00";}

elseif($subTotal>=500)

{

$shippingPrice="35.00";}

If something doesn't work, just reply here and I will look at it.

Celtic

Link to comment
Share on other sites

  • 3 weeks later...

Hi Celtic,

I have just installed your mod and it works fine, with one minor reservation.

I would like to be able to charge £2.50 for shipping within the U.K. and £3.50 for international shipping (when order value is below a certain price).

I have this setup in admin/view categories/edit but the mod appears to overide this setting.

Can you help please?

Link to comment
Share on other sites

Anyone got any thoughts on this one please?

tomdarton,

I have a plugin shipping mod that does shipping tiers and supports national/international shipping.

Sorry, it's not free. But for $10 you don't even need to touch any code to install it. Just copy the files to your store, even a moded store, and you are ready to use it.

let me know if you would like the mod or just buy it from my store.

Link to comment
Share on other sites

Guest TNABabes.com

Celtic;

Does this go into shipping.php? What file do I edit?

Also, after I edit it, can I control the prices from inside the ADMIN portion of my store, or do I have to edit code each time?

-Chris

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...