help center

Search
Close this search box.
On this page

Custom Add To Cart widget

Last Update: January 14, 2024

Custom Add To Cart (Pro)

Add an add to cart button, linked dynamically to a specific product, anywhere on your site by dragging the Custom Add to Cart widget wherever you need it.

Content

Product

Add To Cart 1 Custom Add To Cart widget 1
  1. Product: Select the product to be added to the cart
  2. Show Quantity: Set to Yes to allow the user to change the quantity
    1. Quantity: If Show Quantity is set to No, this option becomes available so that you can pre-determine the number of items to add to the cart.

Button

add to cart 2 Custom Add To Cart widget 3
  1. Type: Select the type of button to use, choosing from Default, Info, Success, Warning, and Danger
  2. Text: Enter the text to be displayed on the button
  3. Alignment: Align the [widget] to the left, right, center, or justified
  4. Size: Select the preset button sizes, from Extra Small to Extra Large
  5. Icon: Select a Font Awesome icon to display on the button
  6. Icon Position: Choose to display the Icon Before or After the button text
  7. Icon Spacing: Set the amount of space between the Icon and the button text
  8. Button ID: (Optional) Assign a unique button ID to use for situations such as Google Analytics events

Layout

add to cart 3 Custom Add To Cart widget 5

From the dropdown selector, choose your desired layout. The default layout is Inline (flex); however, this may need to be adjusted for integration. Stacked layout is ideal for online stores that allow Apple Pay. Auto layout will adjust the button to the other components available in the widget. The responsive control options can be adjusted by breakpoint by ticking on the breakpoint icon.

Style

Button

Typography Options

Typography: From the pencil icon, click to open the font option panel to choose the family, weight, transform, style, decoration, line height, and letter spacing options

These options may be set independently for both the normal and hover states.

  1. Text Color: Choose the color of the button text
  2. Background Color: Choose the background color of the button
  3. Hover Animation: Choose an animation effect when hovering over the icon, such as Grow, Pulse, Skew, etc.

Borders

  1. Border Type: Select the type of border, choosing from none, solid, double, dotted, dashed, or grooved
  2. Border Radius: Control border roundness of the button
  3. Box Shadow: Adjust box shadow options

Padding

  1. Padding: Set the padding within the button

Troubleshooting

Note: The “Enable AJAX add to basket buttons on archives” must be enabled in WooCommerce Settings > Products in order for this feature to properly function.

add to cart 4 Custom Add To Cart widget 7

Have more questions? We’re more than happy to assist.

Link is copied to clipboard!
On this page

Is this article helpful?

Share this article

Platinum popup banner