This Function Has Been Available Since:
(AFCommerce v 2.1, Functions v 1.1)
Prints a product's short listing.
Description
afc_print_product_short_listing (pid, showimage, showprice, showcaption, showaddtocart)
This function prints a product's "short listing" or short description, which allows the visitor to see this product on a page other than the product's main description page. You can set the below options for this function and even create an "add to cart" button, to allow customers to quickly add multiple products on the same page. This function is completely customizable, and is how you would edit the products shown with the AFCommerce afc_print_product_multi_listing and afc_find_most_relevant_products functions.
Parameters
pid (integer) - The product id number of the current product.
showimage (string) - Tells the function whether to display the product's image. Set to 1 if you want to turn this parameter on.
showprice (string) - Tells the function whether to display the product's price. Set to 1 if you want to turn this parameter on.
showcaption (string) - Tells the function whether to display the product's caption. Set to 1 if you want to turn this parameter on.
showaddtocart (string) - Tells the function whether to display the product's "add to cart" button, which allows the customer to add this product to their basket directly from the current page. Set to 1 if you want to turn this parameter on.
Return Values
This function has no return value, it does print a product's name and other information you set as a "short listing" or short description, which allows the visitor to see this product on another product's main description page. You can set the above options for this function and even create an "add to cart" button, to allow customers to quickly add multiple products on the same page.
Open Source: YesPaul's Examples There are currently no examples for this function.
|
Back to Functions List
|