The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HTML Form - Adding multiple units., HTML Form - Adding multiple units.
JPW
post May 19 2011, 04:31 AM
Post #1





Group: Members
Posts: 3
Joined: 19-May 11
Member No.: 14,572



Hello, my first post smile.gif

I am using a shopping cart on my site, and in order to add an item to the cart, we are provided with the following code.

CODE

<form action="http://####.com/cgi-bin/sc/order.cgi" method="post"><br />
    <input type="hidden" name="storeid" value="#####" />
    <input type="hidden" name="dbname" value="products" />
    <input type="hidden" name="function" value="add" />
    <input type="hidden" name="itemnum" value="2" />
    <input type="image" src="http://####.com/store/shopsite-images/en-US/buttons/sleek/sleek-add.gif" width="83" height= "20" vspace="7" hspace="0" border="0"  align="bottom" alt="Add to Cart" name="Add to Cart" />


This adds one item to the shopping cart, is there a simply way to include an text box or drop down list that allows the user to add say multple units instead of single ones..??

I hope some one can help

Many thanks

Jason
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post May 19 2011, 05:07 AM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



Hello!

There is no simple answer: you have (should have!) a manual for how to use the cart system: that is what determines what you can do. Isn't there another field for "quantity"?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JPW
post May 19 2011, 05:10 AM
Post #3





Group: Members
Posts: 3
Joined: 19-May 11
Member No.: 14,572



I'm afriad not, the cart when used "properly" it has the option, this particular cart allows you to place links to add to the 'check out' screen from other pages of a site. This was I can have complete control of what my product pages look like with it looking like an "off the shelf" store if you know what I mean.

It was only an idea and if it can't be done then I'll have to make so. Thanks for you time.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post May 19 2011, 05:29 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



There's really no such thing as "properly". If it is possible to provide a web page with a form to "Add to cart" including a quantity parameter, then it should be possible to add that parameter to your own page. But you need to give us more information: why is the address ("####.com") secret? It's hard to sell stuff if you hide your shop.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JPW
post May 19 2011, 05:48 AM
Post #5





Group: Members
Posts: 3
Joined: 19-May 11
Member No.: 14,572



No reason at all, the site is Wampler Pedals

The product pages, for example The Brad Paisley Signature Overdrive Pedal has the 'add to cart' link button.

I am setting up a mirror site, for wholesale purposes and wanted to give the option for the dealers to put in how many they want before they go into the shopping cart.

The actually shopping cart/store side of the software doesn't exist really as it's never been set up (it is there, just never needed it), I only use the check out pages and the 'add to cart' code snippets.

This post has been edited by JPW: May 19 2011, 05:49 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 19 2011, 06:18 AM
Post #6


.
********

Group: WDG Moderators
Posts: 9,649
Joined: 10-August 06
Member No.: 7



This isn't about client-side scripting, not sure where it fits best though. Lets try General Web Design...
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 02:58 PM