string buyNow(
[string
$text = ""], [boolean
$img = false], [string
$linkAttributes = ""], [string
$imageAttributes = ""])
|
|
Will generate either a link or a form to add the products in the cart to the final Amazon shopping cart.
For US shopping carts, a link will be created. If the
$img
parameter is set to "true", the
more Buy Now image will be used as a link to the purchase URL, otherwise the
$text
parameter will be used as the text for the link. Parameters
$linkAttributes
and
$imageAttributes
can be used to specify additional attributes for the anchor and image tags. If no border is specified in the
$imageAttributes
, amazOOP will set the image's border to 0.
For all other shopping carts, the purchase URL is not available, therefore an "Add to Cart" form is created. In this case, if
$img
is set to "true", the
more Buy Now image will be used as the submit button, otherwise a submit button will be created with the text from the first parameter.
$linkAttributes
and
$imageAttributes
are not used for these carts.
Tags:
Parameters: