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_navCartItemTotalElement()

Returns the div containing the nav cart subtotal.

Example-get_navCartItemTotalElement()

tpc.page.TpcNavCart.get_navCartItemTotalElement();
Parameters

Returns

jQuery Object

get_navCartButton()

Returns the nav cart button.

Example-get_navCartButton()

tpc.page.TpcNavCart.get_navCartButton();
Parameters

Returns

jQuery Object 

get_navCartDropDownContainer()

Returns the nav cart object, including nav cart buttons.

Example-get_navCartDropDownContainer()

tpc.page.TpcNavCart.get_navCartDropDownContainer();
Parameters

Returns

jQuery Object

get_cartCurrency()

Returns currency symbol.

Example-get_cartCurrency()

tpc.page.TpcNavCart.get_cartCurrency();
Parameters

Returns

String

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.TpcNavCart.get_type();
Parameters

Returns

String

show()

Shows the widget on the page.

Example-show()

tpc.page.TpcNavCart.show();
Parameters

Returns

None

get_navCartItemCountElement()

Returns the nav cart item count span. 

Example-get_navCartItemCountElement()

tpc.page.TpcNavCart.get_navCartItemCountElement();

Parameters

Returns

jQuery Object

toggle()

Toggles the visibility of the widget.

Example-toggle()

tpc.page.TpcNavCart.toggle();
Parameters

Returns

None

get_navCart()

Returns information about cart items.

Example-get_navCart()

tpc.page.TpcNavCart.get_navCart();
Parameters

Returns

Object

get_cartItemsSubTotal()

Returns the cart subtotal.

Example-get_cartItemsSubTotal()

tpc.page.TpcNavCart.get_cartItemsSubTotal();
Parameters

Returns

Number

get_container()

Returns the container element of the widget.

Example-get_container()

tpc.page.TpcNavCart.get_container();
Parameters

Returns

jQuery Object

get_cartDecimalPrecision()

Returns decimal places of cart amount.

Example-get_cartDecimalPrecision()

tpc.page.TpcNavCart.get_cartDecimalPrecision();
Parameters

Returns

Number

get_cartItemsCount()

Returns the number of items in your cart.

Example-get_cartItemsCount()

tpc.page.TpcNavCart.get_cartItemsCount();

Parameters

Returns

Number

hide()

Hides the widget from the page.

Example-hide()

tpc.page.TpcNavCart.hide();
Parameters

Returns

None

get_model()

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

Example-get_model()

tpc.page.TpcNavCart.get_model();
Parameters

Returns

Object