Cart Archives - Plugin Republic https://pluginrepublic.com/support-categories/cart/ WooCommerce Plugins Thu, 20 Jul 2023 13:26:46 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png Cart Archives - Plugin Republic https://pluginrepublic.com/support-categories/cart/ 32 32 Add/show currency symbol on calculation fields in the cart https://pluginrepublic.com/documentation/add-show-currency-symbol-on-calculation-fields-in-the-cart/ https://pluginrepublic.com/documentation/add-show-currency-symbol-on-calculation-fields-in-the-cart/#respond Thu, 20 Jul 2023 13:26:43 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=3477784 By default, the calculation, and number field values don’t have a currency symbol in the cart/cart page. If you’d like the values to have your set currency symbol, then here’s a snippet you can use: Here’s how to add your snippet: How to add a code snippet to your site

The post Add/show currency symbol on calculation fields in the cart appeared first on Plugin Republic.

]]>
By default, the calculation, and number field values don’t have a currency symbol in the cart/cart page. If you’d like the values to have your set currency symbol, then here’s a snippet you can use:

View this code snippet on GitHub.

Here’s how to add your snippet: How to add a code snippet to your site

The post Add/show currency symbol on calculation fields in the cart appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/add-show-currency-symbol-on-calculation-fields-in-the-cart/feed/ 0
Add-on fields not added to cart / fields fail validation https://pluginrepublic.com/documentation/required-add-on-fields-not-added-to-cart/ https://pluginrepublic.com/documentation/required-add-on-fields-not-added-to-cart/#respond Tue, 20 Oct 2020 11:05:30 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=655567 If your add-on fields are not getting added to the cart or you find that required fields can be left empty, then please check the following: You are using an AJAX add to cart button on the product page This is a common reason for add-on fields not being added to the cart. By default, […]

The post Add-on fields not added to cart / fields fail validation appeared first on Plugin Republic.

]]>
If your add-on fields are not getting added to the cart or you find that required fields can be left empty, then please check the following:

You are using an AJAX add to cart button on the product page

This is a common reason for add-on fields not being added to the cart. By default, WooCommerce reloads the product page and runs some filters when the user adds a product to their cart.

AJAX add to cart buttons stop the page from reloading in order to provide a more seamless experience from the user. However, not all methods of creating AJAX add to cart buttons use the necessary WooCommerce filters.

This means that the Add-Ons plugin, and many other plugins, can’t add extra data to the product in the cart.

To test this, please disable the AJAX add to cart button and re-test. You might need to contact your theme developer to find out how to do this.

It’s important to note that AJAX on add to cart buttons is usually enabled by your theme or another plugin. It’s not the same as the WooCommerce setting ‘Enable AJAX add to cart buttons on archives’. Disabling this option will not fix your problem.

Disabling AJAX Add to Cart in the Woodmart theme

If you’re using the Woodmart theme, you can disable the AJAX Add to Cart button using the following steps:

  • Go to Theme Settings > Single Product > Add to cart options
  • Set ‘AJAX Add to cart’ to ‘Off’
  • Save your settings

You are using another add-ons plugin

It’s possible that you’re using another plugin which doesn’t filter WooCommerce cart metadata correctly. Please try disabling other WooCommerce plugins (except WooCommerce) and re-testing.

You are using an instant payment button, e.g. Stripe Buy Now or PayPal Buy Now

Ensure you aren’t running a plugin or extension that allows your customer to add a product to their cart and check out immediately. As with the AJAX button issue above, some instant payment buttons don’t use the standard WooCommerce filters that are required to add metadata to the cart object.

You are using a Buy Now button

As with the above, if you have a ‘Buy Now’ button that instantly directs you to the checkout, this might bypass the standard WooCommerce filters that Add-Ons Ultimate needs.

The post Add-on fields not added to cart / fields fail validation appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/required-add-on-fields-not-added-to-cart/feed/ 0
Enable editing of add-ons from the cart https://pluginrepublic.com/documentation/enable-editing-of-add-ons-from-the-cart/ https://pluginrepublic.com/documentation/enable-editing-of-add-ons-from-the-cart/#respond Wed, 19 Feb 2020 16:57:09 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=261241 You can let the user edit the add-ons in products they’ve added to the cart: Go to WooCommerce > Settings > Product Add-Ons Check the ‘Enable editing’ option When this option is enabled, a link to ‘Edit Options’ will appear after the product name in the cart. The user can click the link to return […]

The post Enable editing of add-ons from the cart appeared first on Plugin Republic.

]]>
You can let the user edit the add-ons in products they’ve added to the cart:

  • Go to WooCommerce > Settings > Product Add-Ons
  • Check the ‘Enable editing’ option

When this option is enabled, a link to ‘Edit Options’ will appear after the product name in the cart. The user can click the link to return to the product page with their chosen options selected. If the user makes any changes to their options, they can click the ‘Update Product’ button.

You can filter the ‘Edit Options’ text using this snippet:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Enable editing of add-ons from the cart appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/enable-editing-of-add-ons-from-the-cart/feed/ 0
Hide field types in cart and checkout https://pluginrepublic.com/documentation/hide-field-types-in-cart-and-checkout/ https://pluginrepublic.com/documentation/hide-field-types-in-cart-and-checkout/#respond Fri, 10 Jan 2020 10:51:21 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=214320 You can keep certain field types hidden in the cart and the checkout if you wish: You can see how to add this snippet here. You can also see how to hide field types in order data here.

The post Hide field types in cart and checkout appeared first on Plugin Republic.

]]>
You can keep certain field types hidden in the cart and the checkout if you wish:

View this code snippet on GitHub.

You can see how to add this snippet here.

You can also see how to hide field types in order data here.

The post Hide field types in cart and checkout appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/hide-field-types-in-cart-and-checkout/feed/ 0
Don’t remove parent products from cart https://pluginrepublic.com/documentation/dont-remove-parent-products-from-cart/ https://pluginrepublic.com/documentation/dont-remove-parent-products-from-cart/#respond Wed, 03 Jul 2019 14:39:05 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=83351 If you don’t want your parent products to be removed from the cart when child products are deleted, add this filter to your functions.php or snippets file:

The post Don’t remove parent products from cart appeared first on Plugin Republic.

]]>
If you don’t want your parent products to be removed from the cart when child products are deleted, add this filter to your functions.php or snippets file:

View this code snippet on GitHub.

The post Don’t remove parent products from cart appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/dont-remove-parent-products-from-cart/feed/ 0
Filter prices for add-ons in the cart https://pluginrepublic.com/documentation/filter-prices-for-extras-in-the-cart/ https://pluginrepublic.com/documentation/filter-prices-for-extras-in-the-cart/#respond Thu, 14 Feb 2019 16:24:07 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=45767 If you just want to add the prices for extra items in the cart, just target the pewc-cart-item-price class in CSS. However, you can also filter the price using: $price = apply_filters( 'pewc_filter_cart_item_price', $price, $item );

The post Filter prices for add-ons in the cart appeared first on Plugin Republic.

]]>
If you just want to add the prices for extra items in the cart, just target the pewc-cart-item-price class in CSS. However, you can also filter the price using:

$price = apply_filters( 'pewc_filter_cart_item_price', $price, $item );

The post Filter prices for add-ons in the cart appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/filter-prices-for-extras-in-the-cart/feed/ 0