Table of Contents
The Free Shipping Bar #
The shortcodes are categorized into Free and Pro versions, offering various ways to display and customize the amount left for free shipping on your WooCommerce store.
Free Version Shortcodes #
- [alg_wc_left_to_free_shipping]
- Description: Displays the amount left to reach free shipping in the customer’s cart. This shortcode is highly customizable and allows you to show messages and progress bars in various locations across your WooCommerce store.
- Parameters:
- min_cart_amount: Minimum cart amount required to qualify for free shipping.
- free_delivery_text: Custom text to display when free shipping is achieved.
- progress_bar: Displays a progress bar representing how close the customer is to achieving free shipping.
- Example Usage:
[alg_wc_left_to_free_shipping min_cart_amount="100" free_delivery_text="You qualify for free shipping!" progress_bar="true"]
- Use Case: Place this shortcode on the cart or checkout page to encourage customers to add more products to qualify for free shipping.
- [alg_wc_left_to_free_shipping_translate]
- Description: Used to translate the free shipping messages into different languages, which is especially useful for stores with multilingual setups.
- Parameters:
- lang: Language code (e.g., en for English, fr for French).
- Example Usage:
[alg_wc_left_to_free_shipping_translate lang="fr"] Il reste %amount_left% pour obtenir la livraison gratuite.
- Use Case: Display free shipping messages in the appropriate language based on the user’s preference.
Pro Version Shortcodes #
- [alg_wc_left_to_free_shipping_pro]
- Description: Provides additional customization options for displaying the amount left for free shipping, including conditional displays based on user roles, product categories, and more.
- Parameters:
- user_role: Limits the display of the message based on the user’s role.
- category: Shows the amount left for free shipping only for specific product categories.
- ajax_enabled: Enables real-time updates using AJAX.
- Example Usage:
[alg_wc_left_to_free_shipping_pro user_role="wholesale_customer" category="electronics" ajax_enabled="true"]
- Use Case: Display targeted free shipping messages to specific user roles or categories, encouraging more strategic upselling.
- [alg_wc_left_to_free_shipping_by_shipping_method]
- Description: Displays the amount left for free shipping based on the selected shipping method. This allows for more precise messaging depending on the shipping options available to the customer.
- Parameters:
shipping_method
: Specifies the shipping method to base the calculation on.operator
: Defines the operation used to compare the cart amount with the required amount (e.g.,>=
,<=
).
- Example Usage:
[alg_wc_left_to_free_shipping_by_shipping_method shipping_method="flat_rate" operator=">="]
- Use Case: Customize the free shipping messages based on different shipping methods, providing more relevant information to customers.
- [alg_wc_left_to_free_shipping_ajax_progress]
- Description: Displays a real-time progress bar showing how close the customer is to reaching the free shipping threshold, updated dynamically using AJAX.
- Parameters:
- color: Defines the color of the progress bar.
- height: Specifies the height of the progress bar.
- Example Usage:
[alg_wc_left_to_free_shipping_ajax_progress color="#FF5733" height="20px"]
- Use Case: Enhance the visual appeal of the free shipping bar by displaying a dynamic, real-time progress indicator.
These shortcodes offer powerful tools to enhance your WooCommerce store’s functionality, providing real-time feedback and customizable messaging to encourage customers to increase their cart value. By utilizing these shortcodes, you can strategically place free shipping messages and progress bars throughout your store, driving higher sales and customer satisfaction. The Pro version further expands these capabilities with advanced customization options tailored to specific user roles, product categories, and more.