Cart Tag

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

Cart Tag

Name: {exp:foxee:cart}

The cart tag allows you to easily display a dynamic cart in your templates. The cart will automatically update when users, members, or guests, shop in your store. It is dynamically powered using JSON.

{exp:foxee:cart remove_link_label="x"}
Total
{foxee_total_price} Total Weight{foxee_total_weight} Items{foxee_product_count}
{foxee_products}
{foxee_product_name} 
{foxee_product_price}x{foxee_product_quantity} {foxee_product_price_each} each {foxee_remove_link}
{
/foxee_products}
{foxee_coupons}
{foxee_coupon}
{
/foxee_coupons}
{
/exp:foxee:cart} 

Parameters

remove_link_label="clear cart" 

Description: This will change the output of the remove_link link that is used to clear the cart. You can easily change it to the text of your choice.

Required: No

Default: x

Possible values:

hide_cart_on_empty="yes" 

Description: This will hide the cart when there are zero items in it. Hides the cart when empty

Required: No

Default: No

Possible Values: Yes | No

Variable Pairs

Several of the variables require that they be inside variable pairs. They are outlined below.

{foxee_products} 

Description: This will be where the loop occurs to display all the product's information in the FoxyCart.

Required: yes, to display certain variables

Default:

Example
{foxee_products}
{foxee_product_name} 
{foxee_product_price}x{foxee_product_quantity} {foxee_product_price_each} each {foxee_remove_link}
{
/foxee_products} 

{foxee_coupons} 

Description: Display the coupons in the cart.

Required: yes, to display coupon variables

Default:

Example
{foxee_coupons}
{foxee_coupon}
{
/foxee_coupons} 

Variables

{foxee_remove_link} 

Description: Displays a link to remove items from the user's cart.

Required: * must be inside the foxee_products variable pair

{foxee_product_id} 

Description: Displays the product ID in FoxyCart.

Required: * must be inside the foxee_products variable pair

{foxee_product_name} 

Description: Displays the name of the product.

Required: * must be inside the foxee_products variable pair

{foxee_product_code} 

Description: Displays the product code of the product.

Required: * must be inside the foxee_products variable pair

{foxee_product_quantity} 

Description: Displays the quantity of the product in the cart.

Required: * must be inside the foxee_products variable pair

{foxee_product_price_each} 

Description: Displays the price per product.

Required: * must be inside the foxee_products variable pair

{foxee_product_price} 

Description: Displays the price of all quantities of the product in the FoxyCart

Required: * must be inside the foxee_products variable pair

{foxee_product_shipto} 

Description: Displays the shipto name

Required: * must be inside the foxee_products variable pair

{foxee_product_category} 

Description: Displays the FoxyCart category of the product

Required: * must be inside the foxee_products variable pair

{foxee_product_weight} 

Description: Displays weight of the quantities of the product

Required: * must be inside the foxee_products variable pair

{foxee_product_weight_each} 

Description: Displays the weight of each product

Required: * must be inside the foxee_products variable pair

{foxee_product_count} 

Description: Displays the number of products currently in the cart

Required:

{foxee_total_price} 

Description: Displays the total price of all the products currently in the cart

Required:

{foxee_total_weight} 

Description: Displays the total weight of all the products currently in the cart

Required:

{foxee_coupon} 

Description: Displays the FoxyCart coupon in the cart

Required: * must be inside the foxee_coupons variable pair



Join our Mailing List