Miva HeLp! E-commerce for the rest of us.
E-commerce for the rest of us. 

one.gif (80 bytes)
Click Here for information on the East Coast Miva User Group meetings
one.gif (80 bytes)
one.gif (80 bytes)
Miva HeLp! HomeReady, Set, Go!TutorialsResourcesReviewsContact Us
one.gif (80 bytes)

Search Miva HeLp!

one.gif (80 bytes)
one.gif (80 bytes)

one.gif (80 bytes)

Quick Links

one.gif (80 bytes)

 

         Ordering Multiple Units of a Product From Static Page
   By Bruce Golub from Phosphor Media Copyright 2002
Assuming your product has one Attribute with options for three colors: blue, purple and green. You add the following code to your static HTML page:

<FORM METHOD="post"
ACTION="http://www.yourdomain.com/Merchant2/merchant.mv?">
<INPUT TYPE="hidden" NAME="AttributeCode1" VALUE="option">
<SELECT NAME="AttributeValue1">
<OPTION SELECTED VALUE = "opt_color_code_1">Blue</OPTION>
<OPTION VALUE = "opt_color_code_2">Purple</OPTION>
<OPTION VALUE = "opt_color_code_3">Green</OPTION>
</SELECT>
<INPUT TYPE="hidden" NAME="AttributeCount" VALUE="1">
<INPUT TYPE="hidden" NAME="Action" VALUE="ADPR">
<INPUT TYPE="hidden" NAME="Screen" VALUE="BASK">
<INPUT TYPE="hidden" NAME="Store_Code" VALUE="Your_Store_Code">
<INPUT TYPE="hidden" NAME="Product_Code"VALUE="yogamat">
<INPUT TYPE="text" NAME="Quantity" VALUE="1" SIZE="3">
<INPUT TYPE="submit" VALUE="Add To Basket"> 
</FORM>


This will create the following form element:

 

<FORM METHOD="post"
ACTION="http://www.yourdomain.com/Merchant2/merchant.mv?">

Type the domain of your site followed by the path to Merchant.

<INPUT TYPE="hidden" NAME="AttributeCode1" VALUE="option">
If the product has one Attribute, type the line as shown. If this was the second attribute for the product, change AttributeCode1 to AttributeCode2.

<SELECT NAME="AttributeValue1">
<OPTION SELECTED VALUE = "opt_color_code_1">Blue</OPTION>
<OPTION VALUE = "opt_color_code_2">Purple</OPTION>
<OPTION VALUE = "opt_color_code_3">Green</OPTION>
</SELECT>


For each option of the attribute, create an
<OPTION VALUE = "option_code">Option Name</Option> line. Replace "option_code" with the Option Code of your option.
(Make sure the first Option Value has the SELECTED parameter.)

<INPUT TYPE="hidden" NAME="AttributeCount" VALUE="1">
Enter as shown. If you had two Attributes, and created two sets of <SELECT NAME=> and <OPTION VALUE>s, then you'd changed the VALUE parameter of "1" in this line to "2"

<INPUT TYPE="hidden" NAME="Action" VALUE="ADPR">
This tells Merchant to add the product and selected attribute/option pair to the Merchant basket.

<INPUT TYPE="hidden" NAME="Screen" VALUE="BASK">
This tells Merchant to send the user to the Merchant Basket screen.

<INPUT TYPE="hidden" NAME="Store_Code" VALUE="Your_Store_Code">
Type the store code of your store for the VALUE field.

<INPUT TYPE="hidden" NAME="Product_Code"VALUE="yogamat">
Type the Product Code of your Product.

<INPUT TYPE="text" NAME="Quantity" VALUE="1" SIZE="3">
This allows the customer to enter a quantity value for this product.

<INPUT TYPE="submit" VALUE="Add To Basket">
This creates the submit button. You can change the VALUE setting to anything you like, that text will appear on the face of the button.

  You can add a "Return Button" graphic with the following href:
<Script>
<a href="javascript:history:back(1)"><img src=""> -or- text</a>
</Script>
<NoScript>
Use your browser's back button to return to the product page
</NoScript>


Quick Tips

one.gif (80 bytes)

one.gif (80 bytes)

one.gif (80 bytes)
one.gif (80 bytes)


Fotolia
    

Miva Merchant, and the Miva blades logo are registered trademarks of
Miva Corporation.

Miva HeLp! is not affiliated with Miva Corporation.

 

 

Please e-mail site related issues to webmaster@MivaHelp.com and content corrections to content@MivaHelp.com

Copyright 2001- 2008 Technology Matrix Group Ltd.

Site Design by: A Design Elf Site