Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2006
    Posts
    68
    Plugin Contributions
    0

    Default Help with finding out what shipping method a customer used...

    OK, I just recently cloned the In-Store pickup shipping module to provide our customers the ability to pick up their purchases from a few of our different locations. I thought everything was working, but now I have an order that leads me to believe otherwise. Here's what is going on... (see shoptomlinsons.com and proceed to checkout if you need further info about what I mean when I say I cloned the shipping modules.)...

    I received an order today and where it normally says if a customer picked UPS shipping or In-Store pickup it now just says "u". For example, on another order that we've received (since the cloning of the modules) it says that the shipping method is "Stadard Shipping - Ground". In another order the shipping method just says "u". I'm pretty sure that the "u" shipping method is for in-store pickup because there are no shipping charges listed on the order. Where do I need to look to find out how this customer wants to ship this item.

    Surely I've made a mistake when cloning one of the in-store pickup modules, but it is also very likely that I made the same mistake on all of them. I can (and will) contact the customer in this case, but what I am really trying to do here is to figure this out so that future orders won't be messed up. Can someone lead me in the right direction for this? Thanks in advance!

    -ajcannon

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help with finding out what shipping method a customer used...

    What are the first 60 lines of your new (cloned) shipping module?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Help with finding out what shipping method a customer used...

    Quote Originally Posted by DrByte View Post
    What are the first 60 lines of your new (cloned) shipping module?
    <?php
    /**
    * @package shippingMethod
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: flopu.php 3308 2006-03-29 08:21:33Z ajeh $
    */
    /**
    * Store-Pickup / Will-Call shipping method
    *
    */
    class flopu extends base {
    /**
    * $code determines the internal 'code' name used to designate "this" payment module
    *
    * @var string
    */
    var $code;
    /**
    * $title is the displayed name for this payment method
    *
    * @var string
    */
    var $title;
    /**
    * $description is a soft name for this payment method
    *
    * @var string
    */
    var $description;
    /**
    * module's icon
    *
    * @var string
    */
    var $icon;
    /**
    * $enabled determines whether this module shows or not... during checkout.
    *
    * @var boolean
    */
    var $enabled;
    /**
    * constructor
    *
    * @return flopu
    */
    function flopu() {
    global $order, $db;

    $this->code = 'flopu';
    $this->title = MODULE_SHIPPING_FLOPU_TEXT_TITLE;
    $this->description = MODULE_SHIPPING_FLOPU_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_SHIPPING_FLOPU_SORT_ORDER;
    $this->icon = '';
    $this->tax_class = MODULE_SHIPPING_FLOPU_TAX_CLASS;
    $this->tax_basis = MODULE_SHIPPING_ITEM_FLOPU_BASIS;
    $this->enabled = ((MODULE_SHIPPING_FLOPU_STATUS == 'True') ? true : false);

    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLOPU_ZONE > 0) ) {


    Those are the first 60 lines. However (this could be my problem I guess) I cloned the module for five seperate stores. In other words, I've got five seperate in store pickup shipping modules installed. They are flopu, wilpu, svpu, sspu, and nmbpu (the lines above are only for flopu, but the rest of them are basically the same). Thanks for your help!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help with finding out what shipping method a customer used...

    'flopu' should show as the shipping method in the Admin->Customers->Orders listing, and whatever you entered as the MODULE_SHIPPING_FLOPU_TEXT_TITLE typically shows up on the actual order as the shipping method text.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Help with finding out what shipping method a customer used...

    Quote Originally Posted by DrByte View Post
    'flopu' should show as the shipping method in the Admin->Customers->Orders listing, and whatever you entered as the MODULE_SHIPPING_FLOPU_TEXT_TITLE typically shows up on the actual order as the shipping method text.
    I'm not sure what's going on here. I just checked over all of the language files and all of them have something like "Florence In-Store Pickup" listed for the MODULE_SHIPPING_FLOPU_TEXT_TITLE. (The other stores would have "Wilmington In-Store Pickup", "Summerville, etc...) The only other shipping module that I have enabled is the Free Shipping module (which shouldn't have even been a choice for this order) and the UPS shipping module which I have modded slightly (though a long time ago and it's been working fince since). So I'm pretty sure this is one of the in-store pickup modules that I have cloned that is causing this...I'll post the code of flopu.php below (the language file). All of the other in-store pickup modules are very similar except where this one says Florence the other ones would say Wilmington, North Myrtle Beach, Surfside, or Summerville.

    Here's the code:

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | license AT zen-cart DOT com so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: flopu.php 1969 2005-09-13 06:57:21Z drbyte $
    //

    define('MODULE_SHIPPING_FLOPU_TEXT_TITLE', 'Florence, SC');
    define('MODULE_SHIPPING_FLOPU_TEXT_DESCRIPTION', 'Florence In-Store Pick-up');
    define('MODULE_SHIPPING_FLOPU_TEXT_WAY', 'Pick-up at Florence Store');
    ?>

  6. #6
    Join Date
    Aug 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Help with finding out what shipping method a customer used...

    OK, I called the customer today and found out that he actually requested Ground shipping. This is weird because I received other orders this weekend and the rest were OK...this is the only one that was a problem. I also (just now) went back and logged into my account and placed the exact same order that this person did and everything was OK when I did it.

    So what could have happened? The strange things is that for some reason his shipping address is not listed on the order page either. It looks like he either didn't fill it out or there was some technical difficulty that I'm not aware of that did not record what he filled in. I did have his billing address (which was actually the same as his shipping address) on file though.

    So does anybody have any clue as to what's going on/what went on? It looks like everything is working fine now, but I want to make sure that this doesn't happen again. Thanks for your answers!

    -ajcannon

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help with finding out what shipping method a customer used...

    What payment method did they use?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Aug 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Help with finding out what shipping method a customer used...

    Quote Originally Posted by DrByte View Post
    What payment method did they use?
    They used credit card which is the only payment method available for them to use. I still can't figure this out...I don't know if this is a possibility or not but I am wondering if there was an error with the database at the same time when the customer was checking out that caused it (the db) not to record everything that they did??? I don't know if that is even possible, but all orders before and after this one have been perfectly fine and normal.

    At this point, it is more about figuring out what happened and why and how to make it not happen again than it is about this particular order. Do you have anything else in mind that might have caused this?

    -ajcannon

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help with finding out what shipping method a customer used...

    If you cannot duplicate the problem and customers are not still experiencing it, then I'm not sure what to say about its cause.

    Best to keep an eye on each order and catch it as early as possible if it happens again, perhaps even calling the customer to ask if anything odd happened while placing their order.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Aug 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Help with finding out what shipping method a customer used...

    Quote Originally Posted by DrByte View Post
    If you cannot duplicate the problem and customers are not still experiencing it, then I'm not sure what to say about its cause.

    Best to keep an eye on each order and catch it as early as possible if it happens again, perhaps even calling the customer to ask if anything odd happened while placing their order.
    I will...and if I ever experience it again then I'll be sure to post again to try to figure out what happened. Thanks anyways!

    -ajcannon

 

 

Similar Threads

  1. Unknown Shipping method used in customer checkout
    By Darkmuncan in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 30 Oct 2009, 09:38 PM
  2. Help with PHP echo Shipping Method
    By limelites in forum General Questions
    Replies: 2
    Last Post: 28 Aug 2009, 05:33 PM
  3. what if an item sells out whilst another customer is checking out?
    By sunnytheonly in forum Managing Customers and Orders
    Replies: 1
    Last Post: 2 Jan 2009, 09:28 PM
  4. Best practice for finding out 'what does what'?
    By budfox in forum General Questions
    Replies: 6
    Last Post: 19 Aug 2007, 07:05 PM
  5. Finding out what top level category a product belongs to?
    By millo_magno in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Feb 2007, 07:39 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