RECOMMENDATION: If you are using a version of The Portal Connector higher than 4.0, we strongly recommend utilizing the MVC based widgets and components to create your site. This documentation is for legacy purposes only and will soon be deprecated.

get_container()

Returns the container element of the widget.

Example-get_container()

tpc.page.TpcShoppingCart.get_container();
Parameters

Returns

jQuery Object

show()

Shows the widget on the page.

Example-show()

tpc.page.TpcShoppingCart.show();
Parameters

Returns

None

toggle()

Toggles the visibility of the widget.

Example-toggle()

tpc.page.TpcShoppingCart.toggle();
Parameters

Returns

None

get_cartItemsSubTotal()

Returns the cart subtotal.

Example-get_cartItemsSubTotal()

tpc.page.TpcShoppingCart.get_cartItemsSubTotal();
Parameters

None

Returns

Number

get_type()

Returns the type of widget it is. Can be used in conjunction with findAll() e.g., tpc.findAll()[0].get_type().

Example-get_type()

tpc.page.TpcShoppingCart.get_type();
Parameters

None

Returns

String     

hide()

Hides the widget from the page.

Example-hide()

tpc.page.TpcShoppingCart.hide();
Parameters

Returns

None

get_shoppingCart()

Returns information about cart items.

Example-get_shoppingCart()

tpc.page.TpcShoppingCart.get_shoppingCart();
Parameters

None

Returns

Object     

get_cartItemsCount()

Returns the number of items in your cart.

Example-get_cartItemsCount()

tpc.page.TpcShoppingCart.get_cartItemsCount();

Parameters

 None

Returns

Number

get_cartCurrency()

Returns currency symbol. 

Example-get_cartCurrency()

tpc.page.TpcShoppingCart.get_cartCurrency();

Parameters

  None

Returns

String

get_shoppingCartInfoContainer()

Returns div of shopping cart subtotal.

Example-get_shoppingCartInfoContainer()

tpc.page.TpcShoppingCart.get_shoppingCartInfoContainer();
Parameters

None

Returns

jQuery Object     

get_element()

Returns the div of the cart items list view.

Example-get_element()

tpc.page.TpcShoppingCart.get_element();
Parameters

None

Returns

jQuery Object     

get_shoppingCartEmptyContainer()

Returns the div of empty cart.

Example-get_shoppingCartEmptyContainer()

tpc.page.TpcShoppingCart.get_shoppingCartEmptyContainer();
Parameters

None

Returns

jQuery Object     

get_model()

Returns the model configuration object of the widget, which contains several useful properties related to the widget.

Example-get_model()

tpc.page.TpcShoppingCart.get_model();
Parameters

Returns

Object

get_cartDecimalPrecision()

Returns decimal places of cart amount.

Example-get_cartDecimalPrecision()

tpc.page.TpcShoppingCart.get_cartDecimalPrecision();

Parameters

 None

Returns

Number