+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 24

Thread: Bypassing shipping calculation

  1. #1
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7

    Bypassing shipping calculation

    Edit - 01/31/2006: This post was updated to include instructions for versions 2.0.0 and newer.
    Edit - 12/09/2009: This procedure is not necessary in versions 3 and newer. Squirrelcart automatically skips the shipping step when no shipping rates are available for a given order in version 3.

    If you are selling a product that does not have a shipping charge, you may have added a shipping rule that charges $0 for any order. The cart still thinks it needs to calculate shipping, so during checkout, you will see a page where the shipping amount reads "TBD" and the bottom of the page asks the customer to click "continue" to choose their shipping method. When you click continue, it appears as if nothing has happened, but the shipping method has been updated to indicate $0, and the name you gave your shipping method. This may be confusing to the customer, and is an extra step that is not needed. To eliminate this extra click, do the following:

    In versions prior to v2.0.0:
    In "squirrelcart/functions/show_cart.func":

    Find line number 9, which should be right below the line that starts with "global...".

    Right at line 9, paste this code:

    PHP Code:
    // custom code eliminate extra screen at checkout that calculates shipping method
        
    $SC['order']['shipping']['courier'] = "Service - ";
        
    $SC['order']['shipping']['method'] = "no shipping charges apply";
        
    $SC['order']['shipping']['cost'] = 0;
    // end of custom code ------------------------------------------------------------------------------// 
    Then, save the file.


    In versions v2.0.0 and newer:
    1. Disable all Shipping Couriers in your control panel
    2. Create a new courier, and name it "none". Uncheck the checkbox in the "Services" field and save the record.
    3. Open your storefront page (store.php by default). In the default store.php, you will find this code:
    PHP Code:
                    <?php
                        
    if ($SC['show_home_page']) {
                            include 
    "home.php";
                        } else {
                    
    ?>
                     <table width="100%" border="0">
                        <tr>
                            <td style="padding-bottom: 3; padding-top: 0">
                                <?php include "$cart_isp_root/crumb_navigation.php" ?>
                            </td>
                        </tr>
                        <tr>
                            <td class="content">
                                <?php
                                    
    // Cart Content section
                                    
    include "$cart_isp_root/cart_content.php" ;
                                
    ?>
                            </td>
                        </tr>
                    </table>
                    <?php ?>
    The last line "<?php } ?>" above is at line #51 as of v2.1.3. If you are using versions 2.0.0 - 2.1.4, replace that line with this:
    PHP Code:
    <?php 
        

        
    $SC['order']['shipping']['courier'] = "none";
    ?>
    If you are using version 2.2.0 or newer (not released as of this writing), replace that line with this:
    PHP Code:
    <?php 
        

        
    $SC['bypass_shipping'] = 'not required';
    ?>
    4. Save the file

  2. #2
    Client
    Join Date
    Jan 2003
    Posts
    9
    Squirrelcart version
    not specified!
    This is good, but here's my scenario:

    I have items that do not have a shipping charge and I have items that do. I would like customers to be able to skip this step only if their order does not have shipping charges...

    John

  3. #3
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Hi John,

    That will be coming in a future version. It is a bit too complicated for a quick fix like the one in this post. It is definitely needed.

    Thanks,
    Jamie

  4. #4
    Client LouDog's Avatar
    Join Date
    Jan 2004
    Location
    St. Louis, MO - USA
    Posts
    108
    Squirrelcart version
    v2.6.1

    Flat Shipping Rate

    I use a flat shipping rate and would like to bypass the shipping calculation process also. Here is what I did.


    PHP Code:
    // start custom code
        
    $SC['order']['shipping']['courier'] = "USPS";
        
    $SC['order']['shipping']['method'] = "Standard";
        
    $SC['order']['shipping']['cost'] = 4.95;
    // end custom code -----------------------------// 
    I tried to insert it on the line right after global like the other post from Jamie mentioned, but got an error; so I inserted the code after this line which is the line just below global.


    PHP Code:
    $cart_isp_root,$SC,$Currency_Sym,$show_cart$cart_www_root
    It seems to work fine, but wanted to see if anyone foresees any problems with what I'm trying to do, or where I placed it.

    Thanks,
    Louie
    Last edited by LouDog; July 3rd, 2004 at 09:37 AM.

  5. #5
    Client LouDog's Avatar
    Join Date
    Jan 2004
    Location
    St. Louis, MO - USA
    Posts
    108
    Squirrelcart version
    v2.6.1

    Flat Rate Shipping

    Well, that didn't quite work out. The end result calculates correctly, but not until you press the continue button. So if you just add a product and view the cart, the grand total shows incorrectly.

  6. #6
    Client
    Join Date
    Jan 2005
    Posts
    3
    Squirrelcart version
    not specified!
    I have version 1.5.1 and I updated my "show_cart.func.php" as you stated above. I hope this is the right place to post this question/problem...

    Here's my status:

    * When a returning customer visits our cart (which I've updated into check-out mode as described in post id "233"), he does not see the shipping page. This is correct and the way that I want the system to work.

    * When I delete all SC cookies, and return to my cart as a new customer, I always see the shipping page (with a message that "A default shipping method of Download no shipping charges apply ($0)..."). This message would be the appropriate and correct message if I wanted to show a shipping page, but I don't. I want to disable the shipping page altogether.

    How can someone disable shipping in version 1.5.1?


    thanks,
    TG

    PS -- here's how my code looks:
    <code>
    function show_cart(){

    global

    $cart_isp_root,$SC,$Currency_Sym,$show_cart, $cart_www_root;

    //tg added below code to disable shipping screen
    // custom code eliminate extra screen at checkout that calculates shipping method
    $SC['order']['shipping']['courier'] = "Download ";
    $SC['order']['shipping']['method'] = "no shipping charges apply";
    $SC['order']['shipping']['cost'] = 0;
    ....
    </code>
    Last edited by thg4; January 12th, 2005 at 01:42 AM.

  7. #7
    Client
    Join Date
    Sep 2006
    Posts
    5
    Squirrelcart version
    not specified!

    Changing Step numbers

    Would I be asking for trouble if I eliminated the display of Step 3 and renumbered Steps 4 and 5 to 3 and 4? I'm working with a customer who includes the shipping cost in the price so Step 3 isn't necessary. I have followed the instructions for setting up the cart to skip Step 3 but I think it is still a little confusing to the customer to see "Choose Shipping" as a ticked off step. They may think they have missed something instead of it not being necessary.

  8. #8
    Client
    Join Date
    Sep 2006
    Posts
    5
    Squirrelcart version
    not specified!

    I found another way ...

    I decided a simpler, potentially less messy solution is just to change the wording a little from Choose Shipping to Shipping Information and now I display the shipping method if someone clicks on the Shipping Link

  9. #9
    Client
    Join Date
    Mar 2006
    Posts
    5
    Squirrelcart version
    not specified!

    one price for shipping different quantities

    I have several different sizes of the same product. The shipping cost depends on how much is ordered, but does not graduate in shipping cost per unit ordered.

    Specifically, the product is 13 oz raw canvas 3 ft wide. The price is $7.50 per running yard. The shipping cost is $10 for 1 to 9 yards, $15 for 10 to 19 yards, $18 for 20 to 29 yards, $20 for 30 to 39 yards, and Call For Quote for 40 yards and over.

    I set it up so there are 5 products: 1-9 yards, 10-19 yards and so forth.

    My thinking was this: Say a person wanted 8 yards. That customer would select the product labeled 1-9 yards, then request a quantity of 8, and be charged $60 ($7.50 x 8), plus $10 shipping.

    However, in that scenario, the customer is charged $80 shipping ($10 x 8) instead of $10.

    Perhaps there is a more elegant way for me to set this up. In any case, I don't want the shipping to be multiplied by the quantity.

    I need to do this for eight different types of canvas that each have a similar shipping price structure.

    I'm trying to become familiar with the rules and rule sets, which are probably what I need to use. But I am confused as to how to go about this.

    Can somebody please help?

    Thanks in advance.
    CS

  10. #10
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Please post this in a new thread. This thread is specifically for the subject of "bypassing shipping" and your post does not seem to be related to the ongoing discussion of this topic.

  11. #11
    Client
    Join Date
    Mar 2006
    Posts
    5
    Squirrelcart version
    not specified!

    Talking oop

    Sorry about that. I realized it belonged elsewhere after I posted it. It's on its way to the proper forum now. CS

  12. #12
    Client
    Join Date
    Aug 2005
    Posts
    17
    Squirrelcart version
    v2.0.0

    Bypass Shipping

    This is for Cassandra or whomever can answer. I have made the adjustments and modifications to bypass shipping (I am using version 2.4.5). It is working as advertised except if someone clicks on the "Shipping Information" label (I relabeled it as suggested by Cassandra from "Choose Shipping") they are taken to a basically blank page with no continue button or anything and have to use their browser's back button and not all customers will know to so that. Thoughts?

    Jim

  13. #13
    Client
    Join Date
    Nov 2007
    Posts
    182
    Squirrelcart version
    v3.2.0

    Skip shipping step

    My site is solely for services, there is nothing to ship. How do I skip the shipping step in checkout? I tried all of the above and I get a blank page also with no continue button. I have version 2.4.6

  14. #14
    Client
    Join Date
    Nov 2007
    Posts
    182
    Squirrelcart version
    v3.2.0

    I figured it out!

    Okay, I figured out how to bypass Step 3 to go directly to Step 4, but the Shipping Address box is still there. How do I get rid of it? I noticed it is in other places also, but do not know which files to edit. I edited the order_detail.tpl.php file and removed the entire box, but it still shows up. If I click on Step 2 at the top of the page which goes back to the billing form and then click on Step 4 again, the address box is gone. Can anyone tell me all the files I need to edit to remove this shipping address box? Thanks

  15. #15
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    I believe if you disable all the shipping address fields on your Address Form Settings page of your control panel, the shipping address box in checkout disappears.

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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