Download ZIP - Merchant Commerce and Payment Services

Transcript
Page 88 of 153
The onBlur part of this uses a built-in link to the JavaScript recalculate price function
that is simply used to update the price on the product page when options are
selected. You should not include the onBlur part if you use a quantity box on any
page other than actual product pages. Of course, if you wanted to you could use a
select box instead of a text field for the quantity box – the display is up to you as
long as the field is called the correct name, i.e. {product.qtyboxname}
Other In-Built Product Links
The following are other in-built product links that you can use for products in your
store:
<a href="{products.link}" class="middle-links">
This is a link that takes the customer directly to the product’s product page. You
would normally use this where a product is listed – for instance in the random
products section etc.
<a href="{products.wishlist.link}" class="middle-links">
This is a link that lets the customer add the product to their wish list.
Other Special Variables for Product Pages
Product pages also contain other special groups and attributes that can be used.
They are as follows:
•
•
•
•
quantitytable
combinationstable
exclusionstable
reviews
Note: These are only available on a product page and are not available in for
a product in a group.
Quantitytable
The quantitytable group is used to display any quantity discounts you have for an
individual product. The default templates show the discount amount for each
quantity breakdown using the following:
{product.pricing.quantitytable.entries.discount}
Atrtibutes discountExTax, discountIncTax and discountTax are also available.
However, it is possible to show the price after discount by using this instead:
{product.pricing.quantitytable.entries.priceDiscounted}
Attributes priceDiscountedExTax, priceDiscountedIncTax and priceDiscountedTax are
also available. Importantly, however, you should note that this price is calculated
from the main price from the product and any options etc. that a product may have
will not be included in this price. It also does not update as the normal price fields do
on the product page when options are selected that affect a product's price.