Guest Posted July 30, 2005 Share Posted July 30, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted July 30, 2005 Share Posted July 30, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest rhyan Posted July 30, 2005 Share Posted July 30, 2005 I would love to see the code for this... Someone else was also looking for it. Here's the thread: http://www.cubecart.com/site/forums/index.php?showtopic=9364 Thank you, Rhyan Quote Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2005 Share Posted July 30, 2005 // 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2005 Share Posted August 20, 2005 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? Quote Link to comment Share on other sites More sharing options...
Guest Posted August 24, 2005 Share Posted August 24, 2005 Anyone got any thoughts on this one please? Quote Link to comment Share on other sites More sharing options...
goober999 Posted August 24, 2005 Share Posted August 24, 2005 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. Quote Link to comment Share on other sites More sharing options...
Guest TNABabes.com Posted August 25, 2005 Share Posted August 25, 2005 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.