Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Posts
    104
    Plugin Contributions
    0

    Default how can I remove &number_of_uploads=0?

    Could anyone shed some light on why when I add a product to cart the address bar shows main_page=shopping_cart&number_of_uploads=0?

    Can &number_of_uploads=0 be eliminated without breaking the cart?

    Is there an admin switch that I am missing. I do not need to allow any uploads from my customers.

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: how can I remove &number_of_uploads=0

    You didn't mention which version of ZC you're using, but for ZC 1.3.9, you'll need to copy the file /includes/modules/attributes.php to /includes/modules/YOUR_TEMPLATE/attributes.php and make the following change (located right at the end of the file for v1.3.9f):

    Code:
                  // manage filename uploads
     //             $_GET['number_of_uploads'] = $number_of_uploads;
                  //      zen_draw_hidden_field('number_of_uploads', $_GET['number_of_uploads']);
     //             zen_draw_hidden_field('number_of_uploads', $number_of_uploads);

  3. #3
    Join Date
    Dec 2004
    Posts
    104
    Plugin Contributions
    0

    Default Re: how can I remove &number_of_uploads=0

    Thanks, I am running 1.3.9h. I had found another post, but they
    were new users and they made alot more changes, so I was not going to trust that.

    I ran this fix on a test server and all seemed as planned.

    I use products with attributes stock. Is there any reason that it could break anything?

    Thanks for taking the time to tell me what to change?

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

    Default Re: how can I remove &number_of_uploads=0

    If you want uploads from the customer then it will break that on adding Products to the cart ...
    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!

 

 

Similar Threads

  1. v154 Removing **&number_of_uploads=0**
    By kcb410 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 29 Apr 2016, 06:39 PM
  2. number_of_uploads - Remove?
    By bigbadboy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 Jan 2014, 06:35 PM
  3. Replies: 2
    Last Post: 16 Aug 2010, 10:52 AM
  4. Replies: 0
    Last Post: 2 Oct 2008, 01:26 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