Widget Type:
Page Widgets
TPC Version:
  • 6.2
shopping-cart

The Shopping Cart page displays all the items a user has in the cart. The view is similar to that of a Nav Cart except it is in a dedicated page. In this page, users can modify the quantity of an item, remove an item, or navigate to the Shopping page or Checkout. 

  Graphical user interface, text, application, email Description automatically generated

Configuration

Basic

After dragging and dropping the widget, click edit to open the designer. Here you can configure the redirects to the Checkout Page and the Product List Page.

Widget Properties

Basic Properties

Advanced Properties

Advanced properties provide additional functionality. They can be accessed by clicking on the "Advanced" Button in the bottom right corner of the widget designer.

API

get_container()

Returns the container element of the widget.

Returns

jQuery Object

show()

Shows the widget on the page.

Returns

None

toggle()

Toggles the visibility of the widget.

Returns

None

get_cartItemsSubTotal()

Returns the cart subtotal.

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

Returns

String     

hide()

Hides the widget from the page.

Returns

None

get_shoppingCart()

Returns information about cart items.

Returns

Object     

get_cartItemsCount()

Returns the number of items in your cart.

Returns

Number

get_cartCurrency()

Returns currency symbol. 

Returns

String

get_shoppingCartInfoContainer()

Returns div of shopping cart subtotal.

Returns

jQuery Object     

get_element()

Returns the div of the cart items list view.

Returns

jQuery Object     

get_shoppingCartEmptyContainer()

Returns the div of empty cart.

Returns

jQuery Object     

get_model()

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

Returns

Object

get_cartDecimalPrecision()

Returns decimal places of cart amount.

Returns

Number