| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Free Shipping if over $X, not with a coupon | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#61
|
|||||||||
|
|||||||||
![]() Thanks bugaminute!
I've finally had time to get down to work on this, and whenever I upload myshipper.php, I get: // 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=99; // 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); } } ?> displayed at the top of my cart page! Proof positive that I don't know what the @#*($&^ I'm doing. ![]()
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#62
|
|||||||
|
|||||||
![]() Sorry HWT, I was away for a while...what that means is that you have a bug in your "myshipper/php" somewhere
here is my "myshipper.php' if it helps Code:
__________________
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 |
|||||||
#63
|
|||||||||
|
|||||||||
![]() I like this mod, but can it be disabled and enabled at will? We would like to offer this savings to our customers on special occasions not year around.
Thanks for your help.
__________________
Mil Mascaras Live Xcart Site #1-V- 4.1.8 Live Xcart site # 2-V 4.4.3 CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates! Linux - EWD Host Servers awesome service! AlteredCart One Page Checkout |
|||||||||
#64
|
|||||||||
|
|||||||||
![]() You would not believe the idiodic nature of my issue . . . and it was so obvious.
![]() ![]()
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#65
|
|||||||
|
|||||||
![]() Shipmerchant - Yes it can be enabled and disabled from the "shipping methods" in the management section of the Admin gui.
----- HWT - <?php -- don't feel bad, I have done worse before coffee ![]() ![]()
__________________
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 |
|||||||
#66
|
|||||||
|
|||||||
![]() Quote:
Hi, I'm trying to use this with X-Cart 4.0.17, but is not working. Please can I have the correct code for this version ? I'm using USPS and free shipping over $150 with FedEx Ground. Thanks. Miguel Karroum |
|||||||
#67
|
|||||||
|
|||||||
![]() This was a great mod, thanks to all for the hard work. Another poster asked about the possibility of adding the Free shipping option in the "Select a Carrier" menu instead of the "Delivery Options" menu. Has anyone figured this one out?
Thanks
__________________
X-Cart Pro v4.4.3 |
|||||||
#68
|
|||||||
|
|||||||
![]() Quote:
I am using the UPS module. What's the tweaking you are talking about? I noticed that in order for someone to recieve the free shipping they have to use the dropdown to "other". Does the tweaking fix that?
__________________
X-Cart Gold v. 4.1.9 Apache |
|||||||
#69
|
|||||||
|
|||||||
![]() Thanks for the mod it is working great with 4.0.17
I added a simple else statement to allow me to define a flat shipping rate if the conditions for free shipping are not met. I'd like to eliminate the ability for our wholesale customers to qualify for free shipping - anyone done this already? -Bill Code:
__________________
Bill X-Cart 4.1.9 |
|||||||
#70
|
|||||||
|
|||||||
![]() Ok after reading this thread and the manual, i am having problems setting up free shipping for for orders over $x ( I also use flat rate shipping for store)which according to the first page of this thread -- what i want to accomplish shouldn't require any code changes.
I would like free shipping on USPS priority (national) orders >= $125.00 For US order < $125 I want USPS priority(national) to be $6.95. Then I also have USPS express mail (national) to be $14.95 always. I currently have the following setup ( which is not working): I have 1)USPS priority (national) destination zone set to USA ( which I dsefined as all united states) the only fields i set are: order total is set to $124.99 and flat is set to $6.95 ---------------------------------------------------------- 2) USPS priority (national) destination zone set to USA ( which I dsefined as all united states) the only fields i set is: flat is set to $0 ------------------------------------------------------- 3) USPS express mail (national) destination zone set to USA ( which I dsefined as all united states) the only fields i set is: flat is set to $14.95 ----------------------------------------------------------- When i am signed in all i see in the drop down on the shopping cart page is (no matter what the order total is) is USPS priority $6.95 USPS express $14.95 ------------------------------------------------------------------------- I am not sure what the problem is because what i want to happen is when the order total is $125 or over it to say USPS priority $0.00 USPS express $14.95 ------------------------------------------------------------------------------ Also a second problem i am facing is when not signed in and I add something to the shopping cart (no matter what the total is) there is no drop down by shipping method and it just says "$0.00" -------------------------------------------------------------------- I would really really appreciate if some one could help me with these problems.
__________________
x-cart version 4.0.14 |
|||||||
|
|||
X-Cart forums © 2001-2020
|