Enhanced AJAX Add to Cart for WooCommerce
Use the block or shortcode to display a lightweight, smart, and flexible Add to Cart button inline with any content, on any page you desire. This extension for WooCommerce allows you to render a non-redirect button with an associated quantity field. Create effective and functional buttons to use for your or your customers convenience anywhere on your site you want! Find the newly released Pro version here! Premium now has a GROUP shortcode! [a2c_group_buttons product={1,2,3,4…} order={“title,quantity,separator,price,description”} // any order you want, also accepts first letters as arguments “q,s,t,p,d” for example. class={STRING} button_text={STRING} title={none|attribute} quantity={INTEGER}… /] Breaking Changes in 2.0 found here Lightweight We consider our product and its displaying components to be lightweight. The Add to Cart interaction is one of the key moments prior to the decision of a customer finishing their checkout. Understanding that, we are trying to deliver the smallest payload possible when it comes to html and assets. Keeping our html lightweight already, if objects are not displayed (e.g. title or price) then the html is never generated, rather than relying on css. Smart Keeping with the theme of lightweight and optimized, assets, which are separated by their uses, will only be loaded when they are used! Not only that, but the button will become disabled (by default) if the associated product is now out of stock (toggled in the settings). Flexible Through the block interface, you can change entirely the order of all parts of the product info & button. Toggling fields on and off, you can make the area fit the way you dream it! Many plugins we have used in the past feel overbearing when it comes to styling, sometimes making it hard to apply styles to help the plugin fit your theme. We left the themeing to you, using some base classes on elements like the buttons and quantity fields that we found let most themes do base styling to the elements. Block Documentation New “AJAX Add to Cart Block”! and New “Group AJAX Add to Cart Block”! New and improved interface to create flexible components on any page of your website that has the block editor enabled! Easily toggle displays and drag-and-drop to move around objects to change the appearance of the add to cart component on the front end. The major difference between the blocks is the Group AJAX add to cart block allows the selection of multiple products. The selected display settings and styling will be applied to all products the same in that block. Not only does the block have all the features the shortcode does, but expands further upon that allowing you to change the display order of each individual component using a visual editor! The block also has a product select tool so you no longer have to remember individual product or variation IDs Block fields available: – Title – Separator – Price – Quantity – Button – Image (premium setting) – Custom text field (premium setting) – Short Description (premium setting) Shortcode Documentation New Shorter Shortcode: [a2c_button /] and [ajax_add_to_cart /] are now options for the original [enh_ajax_add_to_cart_button /] The required field for every button is the product, with six optional fields: – variation (used for variable products) – title (to reflect the label before the button) – quantity (sets the default quantity AND hides the quantity checkbox) – show_quantity (if quantity is specified, re-enables the checkbox) – show_price – button_text – class – order (overrides show_quantity, show_price) Original single button shortcode: [a2c_button product={pid} variation={vid} class={STRING} order={"title,quantity,separator,price,description"} // any order you want, also accepts first letters as arguments "q,s,t,p,d" for example. show_price={beginning|b|after|a|rear|r} button_text={STRING} title={none|attributes|att|attribute} quantity={INTEGER} show_quantity={yes} /] Documentation notes: – The curly brackets “{ }” denote a list of options separated by a pipe ” | ” – With the exception of “pid” and “vid” options, the lower case “options” within the curly braces are to represent different settings available for the front end display order. These will soon be deprecated for a new property “order” – “pid” represents a product id, INTEGER value. – “vid” represents a variation id, INTEGER value. – STRING and INTEGER are to represent types. – INTEGER expects a whole number, and decimals are not fully supported yet. – STRING can have spaces in it if enclosed in quotes (“This is a string.”) otherwise it will take 1 word. Legacy shortcodes will remain working and will always take the options above: [enh_ajax_add_to_cart_button product={pid} variation={vid} /] [ajax_add_to_cart product={pid} variation={vid} /] SIMPLE PRODUCT: Use only the required parameters to make a quantity box and add to cart button for a simple product with the title to the left: [a2c_button product=42 ] Refer to screenshot 1 below to see the output VARIABLE PRODUCT: Use the product and variation parameters to make a quantity box and add to cart button for a specific variation of a variable product, with the fully qualified name: [a2c_button product=3312 variation=3313 ] Refer to screenshot 2 below to see the output Use the product and variation parameters to make a quantity box and add to cart button for a specific variation of a variable product, with only the variation attributes listed separated with a space as the name: [a2c_button product=3312 variation=3313 title=attributes ] Refer to screenshot 3 below to see the output Use the product and variation parameters to make a quantity box and add to cart button for a specific variation of a variable product, with no name listed: [a2c_button product=3312 variation=3313 title=none ] Refer to screenshot 4 below to see the output Use the button_text parameter to change the text on the Add to Cart button! (Strips out HTML tags) Use double quotes ( “like this” ) to get a phrase with spaces [ajax_add_to_cart product=3312 variation=3313 button_text="Add this to cart!" ] Use the show_price parameter to make a price field appear, with the options being before the title, after the title but before the quantity/add to cart button, or at the very rear of the line! Beginning [ajax_add_to_cart product=3312 variation=3313 show_price=b ] After Title [ajax_add_to_cart product=3312 variation=3313 show_price=a ] Rear (After Button) [ajax_add_to_cart product=3312 variation=3313 show_price=r ]
Top keywords
- button28×2.58%
- product28×2.58%
- add21×1.94%
- cart21×1.94%
- add to cart20×1.85%
- variation20×1.85%
- quantity19×1.75%
- title13×1.20%
- price12×1.11%
- ajax11×1.01%
- ajax add11×1.01%
- block11×1.01%
Increase average cart value with Cross-Sell – Splendid Sales Booster for WooCommerce
Check out the Splendid Sales Booster plugin, with which you can create cross-selling promotions in WooCommerce. Increase the shopping value of the cart in the store! The plugin allows you to select products promoted in the cross-selling section. That is, recommending complementary goods to it at a convenient point in the purchase process. In the section, we can specify any number of complementary products. 🎮 Try the demo Want to see how the plugin works before installing it? Try the free version demo Try the PRO version demo The demo lets you quickly check how the cross-selling section works on the product page and in the slide-out drawer. 🎁 We have included a small discount code there for demo visitors. How to set up cross-selling for products? You can set up cross-sells for products in the Splendid Sales Booster section on the specific product page. Choosing where to display cross-sell products You can display the cross-selling section in two modes: in a slide-out drawer or statically on the product page. The location selection is located in the WooCommerce > Settings > Products > Splendid Sales Booster > Display cross-sells section menu. Main settings The plugin configuration is located in the WooCommerce > Settings > Products > Splendid Sales Booster menu. A link to this page is also on the list of installed plugins. Need more cross-selling options? Upgrade to PRO The free version gives you the core cross-selling functionality. If you need more flexibility, the PRO version unlocks additional features for scaling your setup and increasing conversions. 🚀 PRO features Bulk setup panel for applying cross-sells to all products, selected categories, or selected tags Percentage or fixed discounts for products displayed in the cross-selling section Display cross-sells in both modes at once: on the product page and in the slide-out drawer Want to see it in action? Try the PRO version demo Visit splendidplugins.com to explore PRO pricing, features, and details. Displaying the Splendid Sales Booster cross-sells section The place where the Splendid Sales Booster cross-sells section will be displayed. “In a drawer” – On any page, in the form of a slide-out drawer as a confirmation of adding a product to the cart. “On the product page” – On the product page, just above the Add to Cart button. In the drawer, after adding a product to the cart The Splendid Sales Booster cross-sells section is displayed on any subpage in the form of a slide-out drawer immediately after adding the product to the cart. The module appears as a notification about adding a product to the cart. Therefore, it will be displayed on any subpage, e.g., on the homepage, product page, store page, cart page, post page. If no products are configured in the Splendid Sales Booster cross-sells section for the added product to the cart, the drawer will display only a notification of adding this product to the cart, without recommending additional products. The REST API module must be enabled for the module to work correctly, which is enabled by default in WooCommerce. On the product page, before adding to the cart The Splendid Sales Booster cross-sells section is displayed on the product page, just above the Add to Cart button. Default title of the Splendid Sales Booster cross-sells section The function allows you to set a common title for the section for all products in which the Splendid Sales Booster cross-sells section is active. Moreover, from each of the products, you can choose an individual title, overwriting this default value. If you leave this field blank, the section title will not be displayed on any product (unless specified for a specific product). Product images Depending on the needs and layout of elements on the page, we can enable or disable the visibility of product images in the Splendid Sales Booster section. This option will be applied globally, for all products. Cross-selling settings on the product editing page Selecting promoted products To add a complementary product to the Splendid Sales Booster cross-sells section, go to the settings for that product. The Splendid Sales Booster cross-sells section configuration on the product page is located in the Product data panel, in the Linked Products tab. We start the configuration by clicking the Add product button. The Product field is configured as a search engine. You must enter at least three characters of the searched product. Note! Only simple products, variable products, specific variable product variations, subscriptions or specific variable subscription variations can be selected for the section. Managing the order of displayed products We can manage the order of products by changing their position using the Drag & Drop method. To do this, hover over the product title bar, then click and drag the product card up or down. The order selected on the product edit page reflects the order in which they are displayed, which the customer sees on the product page. In addition, when hovering over the product title bar, a button to remove that product from the Splendid Sales Booster cross-sells section is displayed. Product Call-to-Action – subtitle for a product added to the Splendid Sales Booster cross-sells section For each of the attached products, an additional title – call-to-action – can be set. This helps to strengthen the marketing message or explain why it is worth buying this product as well. For example, a store selling contact lenses also proposes to add lens solution to the order. Above the solution, the CTA title e.g. “67% of customers choose lens solution when purchasing contact lenses” will appear. Supported product types The Splendid Sales Booster cross-sells section can only be added to products of the following types: Simple, Variable, Subscription, Variable Subscription. In the Splendid Sales Booster cross-sells section, only the following products can be promoted: Simple, Variable, Specific Variation of the Variable Product, Subscription, Specific Variation of the Variable Subscription