Guest Posted December 31, 2002 Share Posted December 31, 2002 I have done a search through the Forums here and cannot find what I am looking for completely. Just wondering if there is a way to enable shippig that when the Sub-Total is $75 or less the shipping will cost $7.50 .. and when over $75 the shipping cost is then 10% of the Sub-Total. Link to comment Share on other sites More sharing options...
burt Posted December 31, 2002 Share Posted December 31, 2002 I *think* I have seen something like this in the contributions area. Search for it: downloads > contributions > shipping modules Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2002 Share Posted December 31, 2002 I *think* I have seen something like this in the contributions area. Search for it: downloads > contributions > shipping modules I think I may have something here .. but missing the logic in the coding .. I am getting the following error: Parse error: parse error, expecting `'('' in /var/www/secure/catalog/includes/modules/shipping/percent.php on line 26 Here is what I am trying to do in percent.php: function quote() { global $cart, $shipping_quoted, $shipping_percent_cost, $shipping_percent_method; if $cart >='75.00' $shipping_total = $cart->show_total(); if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_percent'] == '1') ) { $shipping_quoted = 'percent'; $shipping_percent_cost = MODULE_SHIPPING_PERCENT_RATE/100 * $shipping_total; $shipping_percent_method = MODULE_SHIPPING_PERCENT_TEXT_WAY; ) else $shipping_total =7.50; } can anyone see what I missed? Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2002 Share Posted December 31, 2002 Ok I think I have this almost done now. I have gotten the code tweaked from the previous post. But now when going through the shopping cart and trying to purchase something it is not giving me any Shipping Methods? And will not let me complete the check out process. Link to comment Share on other sites More sharing options...
burt Posted December 31, 2002 Share Posted December 31, 2002 <?php function quote() { global $cart, $shipping_quoted, $shipping_percent_cost, $shipping_percent_method; if $cart >= '75.00' { $shipping_total = $cart->show_total(); if ( ($GLOBALS['shipping_quote_all'] == '1') || ($GLOBALS['shipping_quote_percent'] == '1') ) { $shipping_quoted = 'percent'; $shipping_percent_cost = (MODULE_SHIPPING_PERCENT_RATE/100) * $shipping_total; $shipping_percent_method = MODULE_SHIPPING_PERCENT_TEXT_WAY; } } else { $shipping_total = 7.50; } } ?> This snippet makes more sense (to me anyway) than yours. You will still need to populate one of the shipping methods - there is a contribution that looks like it does exactly what you want right off the bat...have you installed it? Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2002 Share Posted December 31, 2002 This snippet makes more sense (to me anyway) than yours. You will still need to populate one of the shipping methods - there is a contribution that looks like it does exactly what you want right off the bat...have you installed it? Actually I think that is what I am working on right now. But it is not allowing me to activate the shipping method. Not sure what I have missed .. but even when I click on Activate through the admin panel it does not Activate. Link to comment Share on other sites More sharing options...
gruessle Posted March 17, 2003 Share Posted March 17, 2003 Hi Burt, Did you get that shipping module to work? I need the same thing and was wondering how you did this? Gruessle > Sub-Total is $75 or less the shipping will cost $7.50 .. and when over $75 the shipping cost is then 10% of the Sub-Total. Gr?ssle Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.