Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Posts
    68
    Plugin Contributions
    0

    Default Can I get rid of the number_of_uploads parameter on the shopping_cart URL?

    Hello everyone!

    I've noticed that
    - when I add a product (type: general) to the shopping cart and that product has no attributes of any kind defined, the URL of the shopping cart is a straightforward:
    http://www.store.com/shopping_cart

    -however, if the product added to the shopping cart has any kind of attribute defined (not necessarily set, just defined), the URL of the shopping cart is this:
    http://www.store.com/shopping_cart?number_of_uploads=0

    File 'attributes.php' where this happens bears a comment that this functionality was added at a later point:
    // iii 030813 added: support for file fields

    So what?
    The inconvenience of that comes with any web analytics that treats it a separate "page".
    Worse: Conversion tracking (if adding product to a cart is a type of conversion you track) - requires two conversion pages set and treats it as two different conversions. (OK, I know how to work around this one...)
    Much worse: split- or multivariate-testing sees these URLs as 2 separate pages and track only one or another. Messy.
    Even messier when a product with attributes is removed from the cart and the shopping cart all of a sudden changes from "long" one (with the parameter) to the "short" one (without the parameter).

    My Question:
    What is the best way to disable it, if no upload is required for attributes, and make the shopping cart URL a simple: http://www.store.com/shopping_cart ?

    Your input is appreciated!
    Thank you in advance!

  2. #2
    Join Date
    Mar 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Can I get rid of the number_of_uploads parameter on the shopping_cart URL?

    It seems you need to take some coding.
    As far as I know, the number_of_uploads within URL is generated by includes\modules\attributes.php
    If you use Zen Cart 1.3.8a, you may find at the end of the file:
    Code:
    $_GET['number_of_uploads'] = $number_of_uploads;
    The most simple solution to your task might be:
    Code:
    if($number_of_uploads > 0) {
         $_GET['number_of_uploads'] = $number_of_uploads;
         ...
    }

  3. #3
    Join Date
    Apr 2005
    Posts
    68
    Plugin Contributions
    0

    Default Re: Can I get rid of the number_of_uploads parameter on the shopping_cart URL?

    Thank you very much!

    You are likely correct.

    Without testing it's unclear whether this little coding breaks anything or not.
    This functionality was added at a later point with some purpose in mind... who knows, I'll post again if/after I implement this fix.

    Thank you!

 

 

Similar Threads

  1. How can I get rid of links in the footer
    By Marlake in forum Customization from the Admin
    Replies: 6
    Last Post: 29 Apr 2008, 04:49 PM
  2. How can I get rid of the spaces between the banners in the side box?
    By cgardner in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Oct 2007, 03:05 AM
  3. How Can I Get Rid of The Unwanted Search form?
    By jaz1974 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Sep 2006, 06:18 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