View Categories

Advance Options

L h4y6AVzfi5WwUp9srfPHzP1gOBlLJ AWGiFneKpJHQRAloSyITBI3aCRvhJZEMP j2WJiNv7i9pVheh3AHveT0TxxWiBazP6eJB H67kafheyDd2ooAxXjl9WEyt2HPe9NY1qLujHvPN6g

Deep Dive into “Save on empty cart” and Related Functionalities in Coupons & Add to Cart by URL for WooCommerce Pro #

This section focuses on the “Save on empty cart” functionality and some related features within the Coupons & Add to Cart by URL for WooCommerce Pro plugin.

Understanding “Save on empty cart” #

  • This feature allows you to preserve coupon codes even when a customer’s cart is empty.
  • When enabled, if a customer visits your store with a URL coupon link and their cart is empty, the coupon code will still be registered.
  • Once the customer adds a product to their cart, the previously saved coupon will be automatically reapplied.

Benefits of “Save on empty cart” #

  • Encourages customers to continue shopping: By saving the coupon, you incentivize customers to browse your store and potentially add items to their cart to redeem the discount.
  • Improves customer experience: Customers don’t lose the benefit of the coupon if they accidentally empty their cart before adding products.
  • Remove “add to cart” key: This might be relevant if you’re using the “Redirect URL > No redirect” option. Enabling this removes the “add to cart” key from the URL, potentially making it cleaner for customers.
  • Force coupon redirect: This ensures that after a customer adds a product to their cart and the coupon is applied, they are redirected to a specific page (e.g., cart or checkout).
  • WP Rocket: Disable empty cart caching: If you use the “WP Rocket” plugin and encounter issues with an empty cart after applying a URL coupon, enabling this option can help resolve the conflict.

Additional Considerations #

  • Main hook: This setting determines how the plugin detects and handles coupons via URLs. It’s typically a technical setting that most users won’t need to modify.
  • Data storage type (Session vs. Cookie): This defines how the plugin stores and retrieves data. The recommended option is usually “Cookie” for the “Save on empty cart” functionality to work correctly.

Remember, for “Save on empty cart” to function properly, “Data storage type” should be set to “Cookie” to create the necessary “alg_wc_url_coupons” cookie.

View Categories

Advance Options

ZGAJwiSeiecE6Ugm0JAHLBRoUzIzeggdq0zvmpBd9LgR4AUej1f40EDdxBasqtJ12Pm4I90F0vAmGVcZ bfPv5xJid3qVwlXBvSNjoqbOA7lLy0ro xl8HZuaiGEM0 lUmx2I48 G Z1W PSAFk3PU

Form Method #

  • POST: This is the default option and sends the selected number of products per page as hidden data within the form submission.
  • GET: This option appends a parameter alg_wc_products_per_page to the URL in the format https://example.com/?alg_wc_products_per_page=25. This can be useful for bookmarking specific product views.

Apply in WooCommerce Shortcodes #

  • Enable: When checked, the plugin will apply the product per page selector to WooCommerce shortcodes like [  products  ].

Scopes #

  • These options determine where the product per page selector will be displayed on your website.

You can choose to apply it to various page types like #

  • Product category
  • Product tag
  • Product taxonomy (custom product categories)
  • Shop page
  • Archive pages (e.g., blog archive)
  • Home page
  • Frontpage (if different from Home)
  • Single product page
  • Singular pages (any page that isn’t a blog post)

Require & Exclude #

  • Require: You can use this section to restrict where the product per page selector appears based on the page types listed in the Scopes section. For example, you might only want it to show on product category pages.
  • Exclude: Similar to Require, but allows you to specify where you don’t want the selector to be displayed, even if it’s included in the Scopes.
  • Enable: When checked, the plugin will store the user’s selected number of products per page in a cookie. This allows them to keep their preference even if they navigate away and return later.
  • Cookie expiration time: Set the duration for which the cookie will store the user’s selection.

Save in Session #

  • Enable: When checked, the plugin will store the user’s selected number of products per page in their browser session. This means the preference is temporary and will be lost when the user closes their browser.
  • Force session start: Enable this if you experience compatibility issues when using session storage and want to ensure a session is always started (even for non-logged-in users).

Custom CSS #

  • This section allows you to add custom CSS code to style the product per page selector according to your website’s design.

Reset Settings #

  • Click this button to reset all the advanced options to their default settings.
  • The provided link (https://wpfactory.com/item/products-per-page-woocommerce/) leads to the official product page for the “Products per Page for WooCommerce Pro” plugin. This pro version offers additional features like customizing the dropdown options and enabling the widget functionality.
View Categories

Advance Options

yOHIWokQhVsbhYR9pBFAyaKomz7cJ0HJhztrk5qunnoZo00W6hdw P76R2IhyFGzFqJlr1Roe5Nrwe4j413NNhE1rN9ddVZt f4HGxJgs8VoDxFLNPQjvUDUIGF 0v37AszC5hiDTpZgC GyHiU3oB8

Advanced Options #

The Coupons & Add to Cart by URL for WooCommerce plugin offers a variety of advanced settings to fine-tune its behavior and address specific use cases.

Let’s explore these functionalities #

Save on Empty Cart #

  • Enable: This option allows you to preserve coupons even when a customer empties their cart. The coupons will be reapplied automatically once they add a product, ensuring a seamless experience if they were browsing and considering a purchase later.

Remove “add to cart” Key #

  • Enable: This setting removes the “add-to-cart” key from the URL when the “Redirect URL > No redirect” option is chosen. This can help clean up the aesthetics of your URL structure.

Force Coupon Redirect #

  • Enable: Activate this option to guarantee a redirect to a specific URL after a customer adds a product to their cart and a URL coupon is applied. This can be useful for guiding users through a particular purchase flow.

WP Rocket: Disable Empty Cart Caching #

  • Disable: If you’re using the WP Rocket plugin and encountering issues with empty carts after applying URL coupons, enable this setting. It addresses a caching conflict that might prevent products from being added correctly.

Payment Request Buttons: Apply Coupons on Single Product Pages #

  • This section caters to specific payment gateways like WooCommerce Stripe Gateway and WooCommerce Payments. It potentially allows coupons to be applied even on single product pages where payment request buttons are present.

Javascript Reload #

  • Enable: This option reloads the page using Javascript when a coupon code is detected in the URL. It can be helpful if coupons aren’t being applied automatically, especially for users with empty carts.
  • Ensure “Data storage type” is set to “Cookie” for the alg_wc_url_coupons cookie to be created successfully.

Main Hook #

  • This setting determines the primary hook used by the plugin to detect and manage URL coupons.

Hook #

  • You can choose between “WP Loaded” or “Init” hooks depending on your preference.

Hook Priority #

  • This defines the order in which the plugin’s hook executes relative to other plugins on your site.

Data Management #

  • Data storage type: This setting allows you to specify how coupon data is stored and retrieved. You can choose between “Session” or “Cookie” based on your needs.
  • Set alg_wc_url_coupons cookie: This option creates a cookie named “alg_wc_url_coupons” when a URL coupon is applied.
  • This defines the duration (in seconds) for which the cookie will be stored before expiring.

Reset Settings #

  • A “Reset Settings” button allows you to easily revert all configurations within this section to their default values.

By understanding and customizing these advanced options, you can ensure the Coupons & Add to Cart by URL for WooCommerce plugin integrates seamlessly with your store’s workflow and optimizes the coupon application experience for your customers. https://wpfactory.com/item/url-coupons-woocommerce/

For more details and advanced configuration guidance, refer to the plugin’s official documentation or contact the developer for further assistance.