ebay_upsell
Loads the upsell products for a SKU with compatibility for eBay linking to other listings
Example
[%ebay_upsell sku:'[@sku@]' ebay_store_id:'[@ebay_store_id@]' show_all:'1'%]
[%param *header%]
<h2>Recommended Products</h2>
[%/param%]
[%param *body%]
<a href="[@ebay_upsell_url@]" title="[@ebay_upsell_title@]" target="_blank">
<p>
<img src="[@upsell_thumb@]" alt="[@ebay_upsell_title@]"/><br>
[%format type:'text' maxlength:'40' rmhtml:'1'%][@ebay_upsell_title@][%/format%]<br>
[%format type:'currency'%][@upsell_current_price@][%/format%]
</p>
</a>
[%/param%]
[%param footer%]
<hr>
[%/param%]
[%/ebay_upsell%]
Usage
The ebay upsell tag will load all the products assigned to the selected SKU as a upsell onto the page, but unlike the upsell tag, generates products and links based on ebay rules such as if the crosssell sku exists and has an active listing.
ebay_upsell Parameters
Name | Options | Description |
---|---|---|
sku:'' | String | The SKU of the item you'd like to query for the cross sell results |
ebay_store_id:'' | Ebay store ID | The ID of your ebay store, often best to use the [@ebay_store_id@] tag. |
limit:'' | Integer | Used to determine the max number of results |
template:'' | Name of template (without the "template.html") | Used to determine the HTML template to use from the related thumbnails folder (eg: thumbs/product/demo.template.html). If left blank, the default template (template.html) file is called |
show_all:'' | 1 /0 |
When true, it shows all items regardless of stock levels |
header | HTML & b@se tags | Renders a single usable space above the body |
body* | HTML & b@se tags | Runs an array for each result |
footer | HTML & b@se tags | Renders a single usable space below the body |
ifempty:'' | HTML & b@se tags | If the upsell returns no results, it will load this block instead |
ebay_upsell Data Tags
Name | Description |
---|---|
[@count@] |
Counts for every time the body param is run as a whole number integer |
[@custom_label@] |
The custom label for the product |
[@ebay_upsell_title@] |
The name of the product on eBay |
[@ebay_upsell_url@] |
URL to the product on eBay |
[@upsell_best_offer@] |
If the product allows best offer (y /n ) |
[@upsell_current_price@] |
The price of the product on eBay |
[@upsell_start_price@] |
The starting price of the product on eBay |
[@upsell_thumb@] |
URL to the product's eBay image |