Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Shipping Estimator problem?

    Hi,

    Hope the title of this post is not too racy!

    The definition of '**edited**' is to 'utter abruptly; to blurt out'. And that is exactly what my shipping estimator is doing. It is telling my visitors a shipping rate before they put in their delivery particulars.

    I am only using Table Rates. But I like people putting in their country/state/zip BEFORE my estimator blurts out the shipping price. Let me see if I can attach a screenshot.



    I want the visitor to put in some information BEFORE the shipping price gets blurted out. Psychologically, waiting for the customer to put in info feels more personalized and i think it will be better received.

    Should I tell my website to think about baseball or a really complex Angry Birds level?

    Any help will be great appreciated!

    ~Mike
    Last edited by Kim; 20 Oct 2011 at 06:40 PM.

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

    Default Re: Shipping Estimator

    On the file:
    /includes/templates/templates_default/templates/tpl_modules_shipping_estimator.php

    using your templates and overrides ...

    You could try surrounding the FOR loop with an IF such as:
    Code:
    if ((isset($_POST['zip_code']) && isset($_POST['zone_id'])) || $_SESSION['customer_id']) {
          for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    but you need to test that well ...

    Also, you might want to make it more clear to hit Update for current shipping quotes, as not hitting the update will break this ...

    NOTE: add the closing IF bracket below the closing FOR bracket ...

    NOTE: even one data is added for the address, this requires the UPDATE to be hit on guests ...

    If you want it to work on the remembered settings for guests not logged in, you could try using:
    Code:
    if (($zip_code && $state_zone_id) || $_SESSION['customer_id']) {
          for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    Last edited by Kim; 20 Oct 2011 at 06:39 PM.
    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!

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Shipping Estimator problem?

    Moderator's note: Title of this thread has been edited because we do not want search engines and others targeting this site with cures for that particular problem.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Apr 2010
    Posts
    900
    Plugin Contributions
    0

    Default Re: Shipping Estimator problem?

    Yahoo Ajeh!

    Thank you for that very thoughtful answer, I wish I had seen it days ago. I'm just catching it at the end of the day on a Friday.

    I will give your suggestions a go on Monday and post the results. Thanks again, I really do appreciate you looking into this!

    +++

    Kim,

    Sorry about that! I was in a bit of a whacky mood. I recognized that the description was off color and I came back later but was unable to figure out how to edit the comment myself.

    Sorry!

 

 

Similar Threads

  1. Shipping Estimator Problem
    By pieman in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 23 Aug 2011, 09:52 PM
  2. Shipping Estimator Problem
    By CoolCarPartsOnline in forum General Questions
    Replies: 2
    Last Post: 23 Jan 2010, 04:27 PM
  3. Problem with Shipping Estimator
    By Nick1973 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 16 Nov 2009, 01:09 PM
  4. Shipping Estimator W/Login Problem
    By Slash74 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 21 Mar 2007, 04:35 AM
  5. Shipping Estimator Problem 1.3.0.1
    By Redcinamn in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Jan 2007, 05:48 PM

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