Shortcodes
The 1ShoppingCart.com Plugin for Wordpress uses Wordpress Short Codes to display product list and/or details on pages or posts on your site, for more information on short codes you can look at the documentation.
Below is an explanation of the plugin's shortcodes.
[es1sc_prodlist prd_ids="2723132, 9223971,9209291,9084234"]
What it does: Will display products with product ids 2723132, 9223971,9209291,9084234.
Argument List:
Argument: sort
[es1sc_prodlist prd_ids="2723132,9223971,9209291,9084234" sort="saleprice desc"]
What it does: Will display products with product ids 2723132, 9223971,9209291,9084234 sorted by saleprice in descending price order.
Valid sort values are: productname, productprice, productsku, productid or as listed in the prd_ids attribute.
Example 1:
[es1sc_prodlist prd_ids="2723132,9223971,9209291,9084234" sort="productprice desc"]
Lists the product ids 2723132,9223971,9209291,9084234 by productprice in ascending order.
Example 2:
[es1sc_prodlist prd_ids="2723132,9223971,9209291,9084234" sort="productsku desc"]
Lists the product ids 2723132,9223971,9209291,9084234 by productsku in descending order.
Example 3:[es1sc_prodlist prd_ids="2723132,9223971,9209291,9084234" sort="productname desc"]
Lists the product ids 2723132,9223971,9209291,9084234 by productname in descending order.
Example 4:
[es1sc_prodlist prd_ids="2723132,9223971,9209291,9084234" sort="listed"]
Lists the product ids 2723132,9223971,9209291,9084234 by the order they are listed in the prd_ids argument, i.e. first - 2723132, second - 9223971, third - 9209291, fourth - 9084234.
Argument: link_options
[es1sc_prodlist prd_ids="2723132,9223971,9209291,9084234" link_options="&afid=12345&qa=1"]
What it does: Will display products with product ids 2723132, 9223971, 9209291, 9084234 and append the key value pairs "&afid=12345&qa=1" to the Buy Now url. This example shows how you can add affiliate codes to the Buy Now url and the 1ShoppingCart "quick add" command.
Argument: sale_items_only
[es1sc_prodlist sale_items_only="1"]
What it does: Will display products that have been marked in 1ShoppingCart.com to use the sale price.
Argument: random_sale
[es1sc_prodlist random_sale="2"]
What it does: Will display two (2) randomly selected products that have been marked in 1ShoppingCart.com to use the sale price.
Argument: display_format
[es1sc_prodlist prd_ids="3389334,3389344,607174,9395442,9395453,9395469,607179" display_format="<h3>#ProductName</h3><p>SKU: #ProductSku</p><p>#TBMoreInfo</p>"]
What it does: Will display products with ids 3389334, 3389344, 607174, 9395442, 9395453, 9395469, and 607179 using the format specified as -
<h3>#ProductName</h3><p>SKU: #ProductSku</p><p>#TBMoreInfo</p>
Short code:
[es1sc_pdetails prd_id="2723132"]
What it does: Will display the details of product id 2723132.
Argument List:
Argument: link_options
[es1sc_pdetails prd_id="2723132" link_options="&afid=12345&qa=1"]
What it does: Will display the product details of product id 2723132 and append the key value pairs "&afid=12345&qa=1" to the Buy Now url. This example shows how you can add an affiliate code to the Buy Now url and the 1ShoppingCart "quick add" command.
Shortcode:[es1sc_product_field prd_id='1000014' field='#ProductId']
What it does: Will display the contents of field ProductID for product id 1000014.
Argument List:
Argument: prd_id and field
What it does: Both arguments are required to display the contents of the specified field for the specified product. All of the fields/placeholders that are available. A complete list follows:
[es1sc_product_field prd_id='3389334' field='#ProductId']
[es1sc_product_field prd_id='3389334' field='#VisibleId']
[es1sc_product_field prd_id='3389334' field='#ProductName'][es1sc_product_field prd_id='3389334' field='#ProductPrice']
[es1sc_product_field prd_id='3389334' field='#ProductSku']
[es1sc_product_field prd_id='3389334' field='#ProductImage']
[es1sc_product_field prd_id='3389334' field='#ShortDescription']
[es1sc_product_field prd_id='3389334' field='#LongDescription']
[es1sc_product_field prd_id='3389334' field='#BuyNowURL']
[es1sc_product_field prd_id='3389334' field='#ProductBasedShippingCost']
[es1sc_product_field prd_id='3389334' field='#HasShippingCalculation']
[es1sc_product_field prd_id='3389334' field='#ProductWeight']
[es1sc_product_field prd_id='3389334' field='#IsTaxable']
[es1sc_product_field prd_id='3389334' field='#IsFeaturedProduct']
[es1sc_product_field prd_id='3389334' field='#IsDiscountEnabled']
[es1sc_product_field prd_id='3389334' field='#IsValid']
[es1sc_product_field prd_id='3389334' field='#UseSalePrice']
[es1sc_product_field prd_id='3389334' field='#SalePrice']
[es1sc_product_field prd_id='3389334' field='#IsActive']