Template Tags

Use our Forums to find examples and answers to your questions. If you have advanced requirements for your project, contact us and our staff can help you find a solution.

hccdevelopment

Global Parameters

- foxee_site - Set the site foxee uses. This is the site short name (ie. default_site)

headers
usage: {exp:foxee:headers include_jquery=“yes” fb_height=“400” fb_width=“800”}
description: place in <head> section of ExpressionEngine templates using any FoxEE functions
parameters:
- include_jquery - Optional. Include jQuery 1.2.6.
- fb_height - The height of the FoxyBox.
- fb_width - The width of the FoxyBox.

minicart
usage: {exp:foxee:minicart}
description: displays dynamic quantity and cart total.
parameters: none

cart
FoxyCart 0.40 is required.
usage: {exp:foxee:cart remove_link_label=“remove”} description: displays products in the cart. This method provides a template for the javascript functions to update the cart with.
parameters:
- remove_link_label - The text for the remove link
variables:
{foxee_product_count} - number of products in the cart
{foxee_total_price} - total of product prices.

variable pairs:
{foxee_products}
{foxee_product_id} - id of product
{foxee_product_name} - name of product
{foxee_product_code} - code of product
{foxee_product_quantity} - quantity of product
{foxee_product_price_each} - price for 1 product
{foxee_product_price} - total for price*quantity
{foxee_product_shipto} - shipto address
{foxee_product_category} - Foxy category of the product
{foxee_remove_link} - link to remove product from cart
{/foxee_products}
examples:

<ul>
    <
li style="list-style-type:none;">{exp:foxee:cart remove_link_label="remove"}</li>
    <
li style="list-style-type:none;">{foxee_product_count}<br>
    
{foxee_total_price}<br>

    
{foxee_products}<br>
    <
ul>
    <
li style="list-style-type:none;">
    
{foxee_product_id}<br>
    
{foxee_product_name}<br>
    
{foxee_product_code}<br>
    
{foxee_product_quantity}<br>

    
{foxee_product_price_each}<br>
    
{foxee_product_price}<br>
    
{foxee_product_shipto}<br>
    
{foxee_product_category}<br>
    
{foxee_remove_link}<br>
    </
li>

    </
ul>
    
{/foxee_products}<br>
    </
li>
    <
li style="list-style-type:none;">{/exp:foxee:cart}</li>
    </
ul

livequantity
usage: {exp:foxee:livequantity}
description: displays dynamic quantity for creation of your own mini cart.
parameters: none

livetotal
usage: {exp:foxee:livetotal}
description: displays dynamic total for creation of your own mini cart.
parameters: none

showcart
usage: {exp:foxee:showcart label=“Show Cart” image=”/image/showcart.jpg”}
description: creates link for showing shopping cart.
parameters:
- label - to override text to determine what link to display
- image - to use an image instead of a text link (note: label would be the image alt tag)

checkout
usage: {exp:foxee:checkout label=“Show Cart” image=”/image/showcart.jpg”}
description: creates link for checkout.
parameters:
- label - to override text to determine what link to display
- image - to use an image instead of a text link (note: label would be the image alt tag

addtocart_url
usage: {exp:foxee:addtocart_url}
description: creates href for foxycart add to cart

addtocart
usage: {exp:foxee:addtocart id=“7” coupon_code=“coupon_code”}
description: creates a form for adding an item to the shopping cart. Items are setup in FoxEE control panel.
required parameters:
- id:  id number of the item

optional parameters:
- coupon_code: apply a coupon from FoxyCart. FoxyCart 0.40 required.
- label: to override text to determine what link to display
- image: to use an image instead of a text link (note: label will be the image alt tag)
- method: method=“link” generates a URL add to cart link, default method=“form”.  Form is more flexible when allowing to choose custom fields such as S,M,L or Red,Green,Blue parameters

examples:

{exp:weblog:entries weblog="products"}<br />
{exp:foxee:addtocart id="{entry_id}" method="form"}<br />
{/exp:weblog:entries}
</code><br />
This will automatically display your custom fields and the submit button inside your template. <br />
<
br />
You can hard code the entry ID<br />
{exp:foxee:addtocart id="7"}<br />
or 
pass labels<br />
{exp:foxee:addtocart id="7" label="buy it now before it is gone"}<br /> 



Join our Mailing List