Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Free Shipping if over $X, not with a coupon

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 09-05-2005, 11:21 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

You can enter that code in X-Cart's admin "Patch/Upgrade" section or as an SQL query in phpMyAdmin.

- Mike
__________________
4.1.9
Reply With Quote
  #52  
Old 09-05-2005, 12:14 PM
 
syndicatelabs syndicatelabs is offline
 

Member
  
Join Date: Aug 2005
Posts: 29
 

Default Continued Help With Code

I am at the X-cart patch/upgrade section

what do i enter for
Patch File
or
Patch URL

Do i enter the code into the queries section?

Thanks for your help
__________________
learnxcart
4.1.6
Reply With Quote
  #53  
Old 09-05-2005, 12:28 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Yes.
__________________
4.1.9
Reply With Quote
  #54  
Old 09-05-2005, 01:15 PM
 
syndicatelabs syndicatelabs is offline
 

Member
  
Join Date: Aug 2005
Posts: 29
 

Default Continued Help With Code

Thanks for the helps everhting works great

Is there a way to show the free shipping on the shipping list options i.e. overnight 1 day, 2day, ground instead of making the customer choose from "SELECTING A CARRIER", then having the option for free shipping.

v4.0 xcart
thanks again
__________________
learnxcart
4.1.6
Reply With Quote
  #55  
Old 10-04-2005, 12:35 AM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default Exclude Hawaii & Alaska

I have implemented this but need to exclude it for certain Zones, expecially my Zone which includes Alaska & Hawaii. Any clues how to do this would be appreciated.

Thanks!
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
  #56  
Old 10-04-2005, 02:33 PM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default

Answered my own question. The changes I made in mod_custom.php are

Code:
$tempcart = func_calculate($cart, $products, $login, $current_area); if (($userinfo["s_country"] == $config["General"]["default_country"]) && (($userinfo["s_state"] <> "AK") && ($userinfo["s_state"] <> "HI"))) $dest = "L"; else $dest = "I";


Basically it throw HI and AK into the international classificaton and turns off Free Shipping.

Here is the complete mod_custom.php

Code:
// Edit the file shipping/myshipper.php and under this line // include $xcart_dir."/shipping/mod_ARB.php"; (NPL used myshipper.php instead) // ADD THIS LINE to include this file: // include $xcart_dir."/shipping/mod_CUSTOM.php" // // You can also include other custom shipping files here so that myshipper.php is left alone. // // Edit the amount valid for free shipping below. $freeOverAmount=201; // That's all! if ( !defined('XCART_SESSION_START') ) { header("Location: ../"); die("Access denied"); } global $products, $cart, $userinfo, $current_area, $login; // Make sure this shipping method is available foreach ($allowed_shipping_methods as $key=>$value) if ($value["code"] == "FREEOVERX") $FREEOVERX_FOUND = true; if ($FREEOVERX_FOUND) { $tempcart = func_calculate($cart, $products, $login, $current_area); if (($userinfo["s_country"] == $config["General"]["default_country"]) && (($userinfo["s_state"] <> "AK") && ($userinfo["s_state"] <> "HI"))) $dest = "L"; else $dest = "I"; $row = func_query_first("SELECT shippingid, subcode FROM $sql_tbl[shipping] WHERE code='FREEOVERX' AND active='Y' and destination = '$dest'"); if ($row && ($tempcart["subtotal"] >= $freeOverAmount)) { $rate = 0; $intershipper_rates[] = array("methodid" => $row['subcode'], "rate" => $rate); } } ?>

Now Free Shipping is only in the lower 48!

By the way, this is off topic, but since I dumped UPS due their to stupid anti-competitve restrictions, the site is noticeably faster from add - to cart through to checkout. I switched to Fedex fyi and am now working through the Xcart's partial implementation of Fedex surcharge issues. Keeps me up at night I want to get DHL up also, but I am waiting for future release when this implentation is better.
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
  #57  
Old 10-07-2005, 07:45 AM
 
spacetoast spacetoast is offline
 

Member
  
Join Date: May 2005
Posts: 29
 

Default

I'm bumping my last post.

Hoping someone can help me figure out my situation:

I'd like to set my mod up so that the free shipping applies to the discounted subtotal. However, if a customer does not use a coupon it should apply to the undiscounted subtotal.

One of my customers has figured out she can place an order to get her to the free shipping cutoff, then she uses a coupon which drops the discounted subtotal below the free shipping cutoff, but still gets the free shipping.

Thanks!
__________________
Curtis Durham
4.6.4
www.bathnation.com
Reply With Quote
  #58  
Old 10-25-2005, 09:06 AM
 
tmsweet tmsweet is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 5
 

Default

Quick question - can this mod be configured so a customer only receives one method of shipping for free (ie. - GROUND shipping)? My client is asking for this, and so far I haven't been able to come up with a solution. Thanks in advance for any help.

Todd
__________________
4.0.15
Reply With Quote
  #59  
Old 11-13-2005, 07:03 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default

tmsweet, I've got the same problem. Shipping has been driving me NUTS! I'd simply like to offer free ground shipping to the lower 48 US states, but preserve real time shipping for all other shipping methods. Sometimes it seems that x-cart can do so much that it is impossible to figure out how to do simple things.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #60  
Old 11-14-2005, 05:27 AM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default

HWT -- See my post above. It has Fed Ex shipping and Free Ship in lower forty eight for orders over $200. The 200 part is configurable so you can make all order Free if you want. It works fine for me.

I am not using UPS at the moment because of the licensing issue. When I use UPS it disables other methods. I use Fed Ex and will add DHL later. Fed Ex needs a little tweaking to get it to work. Several int he forum are lobbying X-cart to fix this.
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:16 AM.

   

 
X-Cart forums © 2001-2020