Difference between revisions of "X-Cart:Using as a simple "Add to cart" button"

From X-Cart 4 Classic
Jump to: navigation, search
(Inserting "Checkout" button)
(Inserting "Checkout" button)
Line 28: Line 28:
Make sure you replace {xcart_http_location} by your site HTTP URL address.
Make sure you replace {xcart_http_location} by HTTP location, where X-Cart is running.
[[Category:X-Cart user manual]]
[[Category:X-Cart user manual]]

Revision as of 16:06, 15 November 2010

When you do not need X-Cart product catalog

If you have already created a website containing pages where your products are listed and advertised to your visitors, then you might want not to use the X-Cart's ability to generate Product catalog and Product pages. Instead you may want to insert Add to cart and Checkout buttons into your existing pages.

Inserting "Add to cart" buttons into your web site pages

On demand X-Cart can generate HTML code which can be integrated into HTML pages to create links to products.

To get X-Cart to generate an HTML link for a product:

  1. Open the Catalog-> Search for products section. Find the product for which you want to add an "Add to cart" button.
  2. In the 'Search results' dialog box, select the check box next to the title of this product.
  3. Click the Generate HTML links button at the bottom of the 'Search results' dialog box.

After you click on Generate HTML links, X-Cart generates HTML links for the selected product. Now you can copy the HTML code for the desired link(s) and paste it into any web page.

Add to cart.gif

You can also use links to product thumbnails or advanced HTML links with selectable quantity and product options support. Read this section for more information.

Inserting "Checkout" button

To add a Checkout button to your site you can use the following HTML code:

<table cellspacing="0" class="SimpleButton"><tr><td><a class="simple-button simple-arrow-button"

Make sure you replace {xcart_http_location} by HTTP location, where X-Cart is running.