Forums / General Questions / how can I remove &number_of_uploads=0?

how can I remove &number_of_uploads=0?

Locked

Views: 799

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Dec 2010, 7:49 PM
#1
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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

5 Dec 2010, 8:03 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

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):

              // 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);
5 Dec 2010, 8:47 PM
#3
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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?

6 Dec 2010, 7:47 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!