Shopping Cart

The Shopping Cart widget provides a customizable cart icon and optional subtotal display, which can either link to the cart page or open an interactive sidebar cart. You can configure the toggle appearance, items indicator, sidebar content (including products, summary, and buttons), and style every element extensively.

Content tab

Configure the cart's appearance, behavior, and content.

Shopping Cart widget Content tab - Cart

Shopping Cart

Skin

Choose the overall style and behavior: 'Classic' (standard link/display) or 'Sidebar' (opens a side panel).

Toggle

Subtotal

Toggle the visibility of the cart subtotal next to the toggle icon/button.

Alignment

Align the toggle button and subtotal horizontally (Left, Center, Right).

Size

Adjust the overall size of the toggle button using predefined options (XS to XL).

Icon

Select an icon to represent the shopping cart.

Icon Position

Position the icon Before or After the subtotal text (if shown).

Icon Spacing

Control the space between the icon and the subtotal text (if shown).

Icon Size

Adjust the size of the toggle icon.

Items Indicator

Choose how to display the number of items in the cart: None or Bubble.

Hide Empty

Enable to hide the items indicator when the cart is empty.

Add to Cart Action

Show Modal

Enable to display the standard PrestaShop 'Added to Cart' confirmation modal after adding a product.

Open Shopping Cart (Sidebar Skin)

Enable to automatically open the cart sidebar after adding a product.

Shopping Cart widget Content tab - Sidebar

Options apply only when 'Skin' is set to 'Sidebar'.

Sidebar Content

Title

Enter a title to display at the top of the cart sidebar.

Title Display

Adjust the predefined size display for the sidebar title (Small, Medium, Large, etc.).

Title HTML Tag

Select the appropriate HTML tag for the sidebar title.

Empty Message

Set the message displayed in the sidebar when the cart is empty.

Remove Item Icon

Choose an icon used to remove items from the cart within the sidebar.

Shipping cost

Toggle the visibility of the shipping cost line in the cart summary.

Buttons

View Cart Button
View Cart

Toggle the visibility of the 'View Cart' button within the sidebar.

Type

Select a predefined style theme (Default, Primary, Secondary) for the 'View Cart' button.

Text

Customize the text displayed on the 'View Cart' button.

Size

Adjust the size of the 'View Cart' button (XS to XL).

Checkout Button
Type

Select a predefined style theme (Default, Primary, Secondary) for the 'Checkout' button.

Text

Customize the text displayed on the 'Checkout' button.

Size

Adjust the size of the 'Checkout' button (XS to XL).

Style tab

Customize the appearance of the toggle button, sidebar, products, summary, and buttons.

Shopping Cart widget Style tab - Toggle

Toggle Button

Typography

Control the font settings for the text (subtotal) next to the toggle icon.

Text Shadow

Apply a shadow effect to the toggle button text.

Text Color (Normal & Hover)

Set the color of the subtotal text in normal and hover states.

Icon Color (Normal & Hover)

Set the color of the toggle icon in normal and hover states.

Background Color (Normal & Hover)

Set the background color of the toggle button in normal and hover states.

Border Color (Normal & Hover)

Set the border color of the toggle button in normal and hover states.

Border Width

Control the thickness of the border around the toggle button.

Border Radius

Adjust the roundness of the corners for the toggle button.

Box Shadow

Apply a shadow effect to the toggle button.

Padding

Define the inner spacing within the toggle button.

Items Indicator

Styles apply when 'Items Indicator' in the Content tab is not 'None'.

Text Color

Set the color of the item count number.

Background Color (Bubble)

Set the background color of the bubble indicator.

Top Distance (Bubble)

Adjust the vertical offset of the bubble indicator relative to the icon.

Right Distance (Bubble)

Adjust the horizontal offset of the bubble indicator relative to the icon.

Shopping Cart widget Style tab - Sidebar

Styles apply only when 'Skin' is set to 'Sidebar'.

Sidebar Container

Background

Set the background color or gradient for the sidebar panel.

Overlay Color

Set the color and transparency of the overlay behind the sidebar.

UI Color

Set the color for UI elements like the close button and remove item icons.

UI Hover Color

Set the hover color for UI elements like the close button and remove item icons.

Title

Color

Set the text color for the sidebar title.

Typography

Control the font settings for the sidebar title.

Empty Message

Color

Set the text color for the empty cart message.

Typography

Control the font settings for the empty cart message.

Divider

Style

Choose the style for the divider lines within the sidebar (e.g., Solid, Dotted, None).

Color

Set the color of the divider lines.

Weight

Control the thickness of the divider lines.

Spacing

Adjust the vertical padding above and below the dividers and product items.

Shopping Cart widget Style tab - Products

Styles apply to the product listings within the sidebar.

Product Image

Border

Define the border type, width, and color for product images.

Border Radius

Adjust the roundness of the corners for product images.

Box Shadow

Apply a shadow effect to product images.

Product Title

Color

Set the text color for product titles.

Typography

Control the font settings for product titles.

Product Attributes

Color

Set the text color for product attributes (e.g., Size, Color).

Typography

Control the font settings for product attributes.

Product Price

Color

Set the text color for the product price (including quantity).

Typography

Control the font settings for the product price display.

Remove Item Icon

Color

Set the color of the remove item icon.

Size

Adjust the size of the remove item icon.

Shopping Cart widget Style tab - Summary

Styles apply to the summary section (subtotal, shipping, total) within the sidebar.

Subtotal & Shipping

Color

Set the text color for the subtotal and shipping labels and values.

Typography

Control the font settings for the subtotal and shipping lines.

Total

Color

Set the text color for the total label and value.

Typography

Control the font settings specifically for the total line.

Shopping Cart widget Style tab - Buttons

Styles apply to the 'View Cart' and 'Checkout' buttons within the sidebar.

General

Layout

Choose how the buttons are arranged: Inline (side-by-side) or Stacked (one above the other).

Space Between

Adjust the space between the View Cart and Checkout buttons.

Border Radius

Adjust the roundness of the corners for both buttons.

Typography

Control the font settings for the text on both buttons.

View Cart Button

Border

Define the border type, width, and color for the View Cart button.

Text Color (Normal & Hover)

Set the text color for the View Cart button in normal and hover states.

Background Color (Normal & Hover)

Set the background color for the View Cart button in normal and hover states.

Border Color (Hover)

Set the border color for the View Cart button specifically on hover.

Checkout Button

Border

Define the border type, width, and color for the Checkout button.

Text Color (Normal & Hover)

Set the text color for the Checkout button in normal and hover states.

Background Color (Normal & Hover)

Set the background color for the Checkout button in normal and hover states.

Border Color (Hover)

Set the border color for the Checkout button specifically on hover.

Advanced tab

Access advanced layout, motion, and custom CSS options.

Advanced Tab Layout
Margin

Define the external space around the widget for separation from adjacent elements.

Padding

Set the internal spacing within the widget to control the arrangement of its content.

Width

Specify the widget's width behavior: Full Width, Inline, Custom, or Calculate.

Full width
  • Vertical align: Set the vertical alignment to start, center, end, or stretch.
  • Size: Define the size as none, grow, or custom to determine widget dimensions.
Inline
  • Vertical align: Set the vertical alignment to start, center, end, or stretch.
  • Size: Define the size as none, grow, or custom to determine widget dimensions.
Custom
  • Custom Width: Set the width in pixels, percentage, or viewport width (vw).
  • Vertical align: Set the vertical alignment to start, center, end, or stretch.
  • Size: Define the size as none, grow, or custom to determine widget dimensions.
Calculate
  • Calc: Use calculations like 100% - 20px to dynamically define the width.
  • Min Width: Set a minimum width in pixels, percentage, or viewport width (vw).
  • Vertical align: Set the vertical alignment to start, center, end, or stretch.
  • Size: Define the size as none, grow, or custom to determine widget dimensions.
Order

Control the widget's order using start, end, or custom values.

Position

Choose default, absolute or fixed positioning for the widget.

Absolute
  • Horizontal Orientation: Determines the element's horizontal alignment within its nearest positioned ancestor.
  • Offset: Specifies the distance between the element and the left or right edge of its containing block.
  • Vertical Orientation: Sets the element's vertical alignment within its nearest positioned ancestor.
  • Offset: Defines the space between the element and the top or bottom edge of its containing block.
Fixed
  • Horizontal Orientation: Controls the element's horizontal alignment relative to the browser window.
  • Offset: Adjusts the distance between the element and the left or right edge of the viewport.
  • Vertical Orientation: Manages the element's vertical alignment relative to the browser window.
  • Offset: Defines the space between the element and the top or bottom edge of the viewport.
Z-index

Set the stacking order of the widget relative to other elements.

CSS ID

Assign a unique CSS ID for custom styling or interaction.

CSS Classes

Add custom CSS classes for targeted styling via external stylesheets.

Element Cache

Improves loading times by storing a static version of this element.

Advanced Tab Motion Effects
Scrolling Effects

Enhance elements with various dynamic effects triggered by the user's scrolling behavior.

  • Vertical Scroll: Configure the scroll direction, speed, and viewport range for vertical scrolling effects.
  • Horizontal Scroll: Set the scroll direction, speed, and viewport range for horizontal scrolling effects.
  • Transparency: Adjust the transparency based on the direction, level, and viewport range.
  • Blur: Apply a blur effect with customizable direction, level, and viewport range.
  • Rotate: Rotate the element using direction, speed, and viewport settings.
  • Scale: Scale the element with direction, speed, and viewport controls.
  • Apply Effects on: Choose whether to apply scrolling effects on desktop, tablet, or mobile devices.
  • Effects Relative to: Define whether the effects are relative to the default container, the viewport, or the entire page.
Mouse Effects

Enable mouse based effects for added interactivity.

  • Mouse Track: Adjust the direction and speed of the effect as the user moves the mouse across the page.
  • 3D Tilt: Enable 3D tilt effects with controllable direction and speed for a more immersive experience.
Sticky Effects

Fix elements at the top or bottom of the viewport as the user scrolls for persistent visibility.

  • Sticky on: Apply sticky effects on desktop, tablet, or mobile devices.
  • Offset: Set the offset in pixels to trigger the sticky effect after scrolling.
  • Dynamic Offset: Use a CSS selector to dynamically set the offset based on other elements on the page.
  • Effects Offset: Configure the pixel offset to control when additional effects apply.
  • Stay in Column: Choose whether the sticky element remains within its column during scrolling (yes or no).
  • Hide on Scroll: Set the offset and transition duration for hiding the sticky element when scrolling down.
Entrance Animation

Apply predefined animations to elements when they appear on screen.

  • Fading: Elements gradually fade in or out of view.
  • Revealing: Create smooth reveal effects as elements come into view.
  • Sliding & Revealing: Combine sliding motion with reveal effects.
  • Scaling & Revealing: Adjust the size of elements as they are revealed.
  • Zooming: Apply zoom in or out effects during element appearance.
  • Bouncing: Elements enter with a bouncing motion for attention-grabbing effects.
  • Sliding: Elements slide into view from different directions.
  • Rotating: Apply rotation effects as elements enter or leave the viewport.
  • Attention Seekers: Highlight elements with exaggerated, noticeable animations.
  • Specials: Unique animations for elements that require special effects.
Advanced Tab Transform
Opacity

Adjust the transparency level of the element to create fade effects during normal or hover states.

Rotate

Rotate the element along the X, Y, or Z axes for dynamic visual effects. Use deg (degrees) values or apply 3D rotation.

Offset

Shift the position of the element horizontally (X-axis) or vertically (Y-axis) to control its exact placement within the layout.

Scale

Resize the element, with the option to keep proportions (yes or no) and adjust the scale factor to enlarge or shrink the element.

Skew

Skew the element along the X and Y axes to tilt its appearance.

Flip Horizontal/Vertical

Flip the element horizontally or vertically by selecting the anchor points (X: left, center, right; Y: top, center, bottom) for precise control over the flip transformation.

Trigger by (On hover)

Choose whether the hover transformation is triggered by interaction with the widget, column, or section.

Transition Duration (On hover)

Set the time duration in milliseconds that the hover transition effect takes to complete.

Transition Delay (On hover)

Specify a delay in milliseconds before the hover transition effect begins.

Advanced Tab Background
Background Type

Select the background type: None, Classic, or Gradient.

Classic
Color
Set a solid background color to provide a consistent base for your design.
Image
Upload an image to use as the background. Additional settings include:
  • Loading: Choose whether to load the background image lazily or immediately.
  • Position: Define the image's position within the background (e.g., center, top-left).
  • Attachment: Set the background image to scroll with the page or remain fixed.
  • Repeat: Determine if the image repeats or stays single across the background area.
  • Size: Control the size of the background image, such as cover, contain, or custom dimensions.
Backdrop Filters
Apply visual filters to the background, such as blur, brightness, or contrast, enhancing its appearance.
Transition Duration (On hover)
Set the time duration in milliseconds that the hover transition effect takes to complete.
Gradient
Color
Select the primary color for the gradient background.
Location
Define the starting position of the primary color in the gradient effect.
Second Color
Select the secondary color to blend into the gradient.
Location
Set the starting point of the secondary color within the gradient.
Angle
Adjust the angle at which the gradient flows (e.g., horizontal, vertical, diagonal).
Backdrop Filters
Apply visual filters to the gradient background for added depth and effects.
Transition Duration (On hover)
Set the time duration in milliseconds that the hover transition effect takes to complete.

Advanced Tab Border
Border Type

Define the border style of the element.

Border Width

Set the thickness of the element's border.

Border Color

Define the color of the element's border.

Border Radius

Adjust the corner roundness of the element.

Box Shadow

Apply shadow effects to add depth to the element.

Advanced Tab Visibility
Responsive Visibility

Control the display of elements across different devices by selectively hiding them on desktop, tablet, or mobile.

Scheduled Visibility

Set the section's visibility based on specific schedules.

Customer Group Visibility

Control section visibility based on customer groups.

Advanced Tab Custom CSS
Custom CSS

Apply custom CSS to style the widget beyond the default settings.

Note: This requires CSS knowledge—use carefully, as incorrect syntax can impact other areas of the site.

/* For main element */
selector { 
  color: red; 
}

/* For child element */
selector .child-element { 
  margin: 10px; 
}

/* Or use any custom selector */
.my-class { 
  text-align: center; 
}

If you want to learn the basics of CSS, W3Schools is a great resource for that.

© WebshopWorks - Professional PrestaShop Addons