Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    Nov 2006
    Posts
    91
    Plugin Contributions
    0

    Default $XX.XX remaining until free shipping, continued


    $free_ship_on = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING;

    if ($free_ship_on == 'false') {
    $free_limit = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER;
    if ($_SESSION['cart']->count_contents() > 0) {
    $_SESSION['cart']->get_products();
    $basket_total = $_SESSION['cart']->show_total();
    if ($basket_total < $free_limit) {
    $diff_to_free = ($free_limit - $basket_total);
    $content .= '<span class="alert">' . 'Add '. $currencies->format($diff_to_free) .' to your order to qualify for Free Shipping!' . '</span>';
    } else {
    $content .= '<span class="alert">' . 'Your order qualifies for Free Shipping!' . '</span>';
    }
    } else {
    $content .= '<span class="alert">' . 'Free Shipping for orders of ' . $currencies->format($free_limit) . ' or more.' . '</span>';
    }
    }

    into the line 51 in the includes/templates/template_default/sideboxes/tpl_shopping_cart.php.
    Use ($free_ship_on == 'false') on the 4th line of code above if you intend to use free shipping option. The($free_ship_on == 'true') - did not work for me. Maybe it will work with the freeshipper enabled.
    I added this wonderful code that Glock started and Vaicekal improved but i'm having a hard time getting this to work. I installed it as it says and when the cart is empty, it will say what it should but as soon as someone adds something to the cart, this text goes away.

    Maybe someone knows what I've done wrong. I have the shipoptions mod installed with what i use for the free shipping threshold, should I also have the other shipping mod installed. Maybe I need to increase the size of the sidebox perhaps. Thank you for any help you can give.

    Robert
    Arcane Sanctuary

  2. #2
    Join Date
    Nov 2006
    Posts
    91
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    bump please :)

  3. #3
    Join Date
    Nov 2006
    Posts
    91
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    Bingo, got it.




    Brilliant*


    *As said by those cool dudes in the Guiness commercials.

  4. #4
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    How does this work. I downloaded the contribution from the downloads section. Is consists of a single file with no instructions or information on how to actually use it.
    If anyone has this working and can offer a little insight, I would appreciate it.

    Thanks,
    Kelly

  5. #5
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    70
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    Hi!
    I haven't gotten it to work exactly how I want it too, but you will need to change the file name to tpl_shopping_cart.php and upload it to includes/template/custom_template/sideboxes.
    I've been trying to get it to show up something besides $50 as the limit. I have it set as $300 in the free shipping options shipping module but it just shows $50.

    Does anyone know how to get this to change? See my test site at http://www.oddbodkin.com/shop

    Thanks!

    Devlyn


    Quote Originally Posted by sleepless View Post
    How does this work. I downloaded the contribution from the downloads section. Is consists of a single file with no instructions or information on how to actually use it.
    If anyone has this working and can offer a little insight, I would appreciate it.

    Thanks,
    Kelly
    Odd Bodkin Renaissance Shop (1.3.9h shop)
    http://www.oddbodkin.com

  6. #6
    Join Date
    Feb 2005
    Location
    New Jersey
    Posts
    646
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    Thanks. I'll try it...hopefully I can get it to work.

    Thanks again,
    Kelly

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: $XX.XX remaining until free shipping, continued

    devlyn ... your Free Shipping Option freeoptions appears to work on orders of $300 or more ...

    Were you able to fix this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    70
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    The freeshipping option works just fine by itself. It recognizes that free shipping should only be used for orders over $300.

    The problem is getting the "add $?.00" more for free shipping to recognize that I want people to buy $300 worth of stuff, not $50.

    Please excuse me if my language is wrong, but I think the problem lies here:


    The code keeps calling for a "$free_limit" but when I did a search on that in the admin/developers toolkit, nothing showed up (except for the php file referenced above).

    I'm guessing here, obviously, because I'm really an html gal, not php or sql or whatever ;)
    The limit "label" that determines whether the shopping cart recognizes the free shipping or not might be useful. Maybe I could replace that label for the "$free_limit" thing label and get it working. Please let me know if I'm way off base.

    If that is what I'm looking for, I have no idea where to find it.


    btw, this is the mod we are talking about: http://www.zen-cart.com/index.php?ma...roducts_id=394

    Devlyn
    Odd Bodkin Renaissance Shop (1.3.9h shop)
    http://www.oddbodkin.com

  9. #9
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: $XX.XX remaining until free shipping, continued

    Quote Originally Posted by devlyn View Post
    The code keeps calling for a "$free_limit" but when I did a search on that in the admin/developers toolkit, nothing showed up (except for the php file referenced above).
    Not sure if I understand the problem, but the code says $free_limit = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER. And MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER is an ot_shipping setting, defined in admin/modules.php?set=ordertotal .

    Free Shipping For Orders Over
    Provide free shipping for orders over the set amount.

  10. #10
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    70
    Plugin Contributions
    0

    Default Re: $XX.XX remaining until free shipping, continued

    OMG Paul that did it!!!! I don't know how many times I looked in all the modules looking for a switch. Thank you thank you!!!

    Ok, it appears to be working now, and here is what I did:

    1. changed the file name from tmp_shopping_cart.php to tpl_shopping_cart.php and placed it in my includes/template/custom_template/sideboxes folder.

    2. In admin/modules/shipping I enabled the Free Shipping Options - freeshipper mod, set shipping cost to 0 and Total >= to the number I wanted to ship for free at. In my case, $250.

    3. In admin/modules/ordertotal I set my preferences in the Shipping - ot_shipping mod. Make sure that this also reflects free shipping at $250 (or whatever you set in the Free Shipping Options.)

    It now appears to be working correctly. It informs the customer that they can qualify for free shipping if they spend $XX, lets them know how much they need to add to their order to get free shipping, and once they hit that amount, the freeshipper takes over and adds the option to checkout and this mod tells them that they qualify for freeshipping.

    I hope this helps someone out. It's a cool mod and is available here:

    http://www.zen-cart.com/index.php?ma...roducts_id=394

    Devlyn





    Quote Originally Posted by paulm View Post
    Not sure if I understand the problem, but the code says $free_limit = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER. And MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER is an ot_shipping setting, defined in admin/modules.php?set=ordertotal .
    Odd Bodkin Renaissance Shop (1.3.9h shop)
    http://www.oddbodkin.com

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 12 Jan 2015, 10:45 PM
  2. Items remaining til free shipping
    By 00Goat in forum Basic Configuration
    Replies: 0
    Last Post: 10 Mar 2009, 04:06 PM
  3. PayPal Free CC Transaction Processing Until 1/31/2008
    By jnetmcp in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 16 Feb 2008, 07:23 PM
  4. $XX.XX remaining until free shipping
    By glock in forum Basic Configuration
    Replies: 7
    Last Post: 6 Jan 2007, 12:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg