Skip to main content

Documentation Portal

Basket / Mini Basket

Here are the most common basket selectors. We have many more, but these are the most common. Let us know if any price in the basket is not covered, including discounts, subtotals, product savings… anything at all… and we will look up the appropriate attribute for you.

Name

Attribute

Explanation

Example

Add to Cart Button

[data-ge-add-to-cart]

Place this attribute on any button on PDP that adds the item to the cart. This attribute can also be applied to any clickable element (a, input, div, span, etc.), not limited to buttons.

Basket SubTotal

[data-ge-basket-subtotals]

Total List Price for the Basket/Mini Basket.

Basket Total

[data-ge-basket-totals]

Total Sale Price for the Basket/Mini Basket.

Basket Total Discount

[data-ge-basket-discounts]

Total Discounts for the Basket/Mini Baskets (Basket SubTotal - Basket Total).

<table>
<tbody>
<tr data-ge-basket-cartitemid="SHOE_2024">
<td>Future Shoe</td>
<td>x5</td>
<td data-ge-basket-productsaleprice>
$10
</td>
</tr>
<tr data-ge-basket-cartitemid="LKYHAT843">
<td>Lucky Sports Hat</td>
<td>x1</td>
<td data-ge-basket-productsaleprice>
$50
</td>
</tr>
</tbody>
<tfoot>
<tr><td>
<span>Total: </span>
<span data-ge-basket-totals>$100</span>
</td></tr>
</tfoot>
</table>

Product CartItemId

[data-ge-basket-cartitemid="{CartItemId}"]

Place this on the product "row" in the Basket/Mini Basket. The {CartItemId} should be the SKU of the product.

Product ListPrice

[data-ge-basket-productlistprice]

The original list price of the product.

Product SalePrice

[data-ge-basket-productsaleprice]

The discounted sale price of the product.

Product SubTotal

[data-ge-basket-productsubtotalprice]

The total list price of the product (List Price * Quantity).

Product Total

[data-ge-basket-producttotalprice]

The total sale price of the product (Sale Price * Quantity).

Product Total Discount

[data-ge-basket-productdiscountsprice]

The total discount for this product (Total List Price - Total Sale Price).