AShop V User's Guide Page 41

  • Download
  • Add to my manuals
  • Print
  • Page
    / 309
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 40
Installation & Setup 41
AShop Software © Copyright 2002 - 2010
"action=checkout" in the link. The Order-Link (buy link/button) html code that is copied directly from the
AShop admin panel runs the shipping.php script. With shipping.php, when shippable or taxable products
are added to the cart the shipping information form appears (before the View Cart page) so that shipping
and taxes will be included in the View Cart page from the beginning of the shopping session.
basket.php - The basket.php script is used to add products to the cart or to view the cart contents. To
View Cart, link to basket.php without any parameters. For Add to Cart and Buy links, parameters must
be added to specify the products. When a product is added to the cart with a link to basket.php, the
View Cart page opens (without first asking for shipping address first) even if shippable or taxable
products are added. In the View Cart page there will be a link to calculate shipping/taxes. With this
method, it is optional for customers to click the calculate shipping/taxes link in the View Cart page at
any time during the shopping session. If the shipping address is needed and it has not been entered yet,
the shipping address page will open before checkout can be completed. The Order-Link (buy link/button)
html code that is copied directly from the AShop admin panel runs the shipping.php script. To change
the shipping address behavior as described, change the Order-Links so that they link to the basket.php
script instead.
add=1 Parameter
The Order-Link (buy link/button) html code that is copied directly from the AShop admin panel does not
include an add=1 parameter. This must be added in order to allow more than one product to be added to
the cart. If the add=1 parameter is not included, each time a product is added it will replace any
previously added product. See examples below....
checkout.php - If there are shippable or taxable products in the cart, links to checkout.php will open the
shipping information page (shipping.php). When the shipping address is submitted, the checkout will
continue to the payment form page or the payment option selection page (depending on if there is more
than one payment option). If there are not any shippable or taxable products in the cart, a link to
checkout.php will go directly to the payment page or payment options.
How to Create an Add to Cart Order-Link Form
For each product Add to Cart button, add a form and set the product ID accordingly. The product ID is
listed next to each product within the Administration Panel > Edit Products.
Here is an example. The required parameters (for products without attributes) are quantity, product, and
add.
<form method="get" action="http://www.yourdomain.com/ashop/basket.php">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="product" value="1">
<input type="hidden" name="add" value="1">
<input type="submit" name="Submit" value="Add to Cart">
</form>
Note: When a form is inserted inside of a table cell, it may cause unwanted enlargement of the table cell
and distort the intended page design in some browsers. To avoid this problem, put the <form> and </
form> tags between the <tr><td> and the </tr></td> tags.
For example: <tr><form><td> and </tr></form></td>
This is not specifically WC3 compliant, but it works :-)
For quantity selection, substitute a text box in place of the hidden field.
Page view 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 308 309

Comments to this Manuals

Vikijrd 04 Jan 2024 | 13:14:20

urenrjrjkvnm

Evakut 07 Jan 2024 | 16:14:48

Med

BryanBag 08 Apr 2024 | 00:32:20

Hello! Crazy discounts, hurry up! We are Drop Dead Studio and our goal is to help companies achieve impressive sales results through automated marketing. I. We sell fresh databases for GSA Search Engine Ranker. • The databases are updated monthly through 24/7 parsing and by connecting purchased databases from other sources. • You have the option to purchase a one-time fresh database or pay for a lifetime subscription for updates. ATTENTION! 40% discount only until 04/10/2024! When ap