Please
note that knowledge of Macromedia Flash is required.
1.
Import the picture of your product, CTRL+R ( if you have
one ). Name this layer "Pic"
2.
Insert a new layer ( Insert > Layer ) and name this layer "Button"
3.
Insert a new symbol, CTRL+ F8 ( this will be your button
) and name it button then select the button behavior. Now you can
import an existing button image, or you can draw a new button.
4.
Go back to Scene 1 ( top left tab ). Drag the button image
you just created out of the Library window
( CTRL+L ) onto the "Button" layer.
5.
Right click on that button image and select Action. Your product
information can be passed in two different ways-by a form or by
URL. Click on the arrow on the top right of the action window and
select Expert Mode. Copy one of the below codes and paste
it into the action window.
Form
based:
URL
Based:
NOTE: Customer's will not be able to choose
quantity if passing information through URL
5.1.
Besides the required information, a product can pass several different
information. It can be NonTaxable, ShipFree, InsuranceFee, have
UnitOfMeasure and a ShipWeight.
A product
using all available options will look like this if passed as a form:
on (release) {
submit = "Add To Cart";
MerchantID = "RET00093"
Action = "Add";
ProductID = "ILoveNY-wht";
Price = "10.99";
Description = "Buy these shirts to support our NY friends."
NonTaxable = 1
ShipFree = 1
ShippingFee = 1.00
InsuranceFee = 2.00
UnitOfMeasure = lb
ShipWeight = 1
getURL ("http://www.ares-server.com/Ares/Ares.asp?", "",
"POST");
}
A product
using all available options would look like this in the URL AND
must be in this order ( no matter if it's not passing all non required
information ):
6.
If you are going to use the URL method, you can stop now and press F12 to test your add to cart button out. But, if you are
using the Form method and want the customer to be able to select
a quantity, continue below.
7.
Select the button layer. Then select the type tool.
8.
Now draw a box with that text tool and type in the number 1-Draw
on the same layer the button layer is on. Make sure your
text options is set to Input Type and single line.
Name your variable Quantity and max characters should be 2. You
should also check your Border/Bg so people can see where to type
in the quantity.