Advanced Archives - Plugin Republic https://pluginrepublic.com/support-categories/advanced/ WooCommerce Plugins Fri, 13 Jan 2023 14:06:50 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png Advanced Archives - Plugin Republic https://pluginrepublic.com/support-categories/advanced/ 32 32 How to display add-on fields in Germanized for WooCommerce invoices https://pluginrepublic.com/documentation/how-to-display-add-on-fields-in-germanized-for-woocommerce-invoices/ https://pluginrepublic.com/documentation/how-to-display-add-on-fields-in-germanized-for-woocommerce-invoices/#respond Tue, 18 Oct 2022 14:40:53 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=2497847 First, you’ll need to insert a shortcode into your template. In WooCommerce > Settings > Germanized > Invoices & Packing Slips click the Edit icon next to your invoice template. Add the following shortcode under the line item in your template: [document_item_product data="aou_addons"] Next, you’ll need to add this snippet: https://gist.github.com/plugin-republic/b6c4fae7799531f6897bd37d4fde0cbd. Here’s how to add […]

The post How to display add-on fields in Germanized for WooCommerce invoices appeared first on Plugin Republic.

]]>
First, you’ll need to insert a shortcode into your template. In WooCommerce > Settings > Germanized > Invoices & Packing Slips click the Edit icon next to your invoice template.

Add the following shortcode under the line item in your template:

[document_item_product data="aou_addons"]

Next, you’ll need to add this snippet: https://gist.github.com/plugin-republic/b6c4fae7799531f6897bd37d4fde0cbd.

Here’s how to add a snippet.

The post How to display add-on fields in Germanized for WooCommerce invoices appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/how-to-display-add-on-fields-in-germanized-for-woocommerce-invoices/feed/ 0
Exclude product IDs from global groups https://pluginrepublic.com/documentation/exclude-product-ids-from-global-groups/ https://pluginrepublic.com/documentation/exclude-product-ids-from-global-groups/#respond Mon, 15 Jun 2020 10:39:11 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=458256 You can exclude certain products from global groups using this filter: Here’s how to insert the snippet.

The post Exclude product IDs from global groups appeared first on Plugin Republic.

]]>
You can exclude certain products from global groups using this filter:

View this code snippet on GitHub.

Here’s how to insert the snippet.

The post Exclude product IDs from global groups appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/exclude-product-ids-from-global-groups/feed/ 0
Edit global groups as post types https://pluginrepublic.com/documentation/edit-global-groups-as-post-types/ https://pluginrepublic.com/documentation/edit-global-groups-as-post-types/#respond Mon, 09 Mar 2020 11:47:30 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=286543 By default, global groups are displayed on a single page. However, you can opt to display and edit each global group in the same way that you would any other custom post type. To enable this, go to WooCommerce > Settings > Product Add-Ons and check the ‘Display groups as post type’ option. This is […]

The post Edit global groups as post types appeared first on Plugin Republic.

]]>
By default, global groups are displayed on a single page. However, you can opt to display and edit each global group in the same way that you would any other custom post type.

To enable this, go to WooCommerce > Settings > Product Add-Ons and check the ‘Display groups as post type’ option.

This is a solution to improve page speed and performance if you see an issue on the global add-ons page.

When changing this setting, it’s always worth taking a back-up of your site first – particularly if you have a large number of global groups and fields.

The post Edit global groups as post types appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/edit-global-groups-as-post-types/feed/ 0
Reorder groups https://pluginrepublic.com/documentation/reorder-groups/ https://pluginrepublic.com/documentation/reorder-groups/#respond Wed, 04 Mar 2020 09:52:26 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=279672 By default, global groups get added after product groups. However, you might want to add your global groups first or even mix them up with the product groups. To do this, you’ll need to use this snippet. Replace the list of group IDs in line 14 with your own list of group IDs. These will […]

The post Reorder groups appeared first on Plugin Republic.

]]>
By default, global groups get added after product groups. However, you might want to add your global groups first or even mix them up with the product groups.

To do this, you’ll need to use this snippet. Replace the list of group IDs in line 14 with your own list of group IDs. These will be displayed above any other groups, whether they’re global or product-level.

View this code snippet on GitHub.

This is how to add a snippet to your site.

The post Reorder groups appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/reorder-groups/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
Filter field parameters before saving https://pluginrepublic.com/documentation/filter-field-parameters-before-saving/ https://pluginrepublic.com/documentation/filter-field-parameters-before-saving/#respond Thu, 30 Jan 2020 13:04:54 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=236524 You can filter your field parameters before they’re saved if you wish. In the example below, we’re setting a calculation field to be flat rate:

The post Filter field parameters before saving appeared first on Plugin Republic.

]]>
You can filter your field parameters before they’re saved if you wish. In the example below, we’re setting a calculation field to be flat rate:

View this code snippet on GitHub.

The post Filter field parameters before saving appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/filter-field-parameters-before-saving/feed/ 0
Display hidden fields as disabled https://pluginrepublic.com/documentation/display-hidden-fields-as-disabled/ https://pluginrepublic.com/documentation/display-hidden-fields-as-disabled/#respond Sun, 26 Jan 2020 12:31:01 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=231803 Maybe you want to display fields that would otherwise be hidden (because they’re conditional on another field’s value). This code snippet keeps all fields visible, but disables and greys out fields that are unavailable: Here’s how to add a snippet.

The post Display hidden fields as disabled appeared first on Plugin Republic.

]]>
Maybe you want to display fields that would otherwise be hidden (because they’re conditional on another field’s value). This code snippet keeps all fields visible, but disables and greys out fields that are unavailable:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Display hidden fields as disabled appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/display-hidden-fields-as-disabled/feed/ 0
Change position of add-on fields https://pluginrepublic.com/documentation/change-position-of-add-on-fields/ https://pluginrepublic.com/documentation/change-position-of-add-on-fields/#respond Sun, 12 Jan 2020 11:54:39 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=216323 The add-on fields need to be positioned within the WooCommerce add to cart form on the product page. This is so their values can be captured when a user adds the product to the cart. By default, they’re positioned before the add to cart button. However, you can move them to below the add to […]

The post Change position of add-on fields appeared first on Plugin Republic.

]]>
The add-on fields need to be positioned within the WooCommerce add to cart form on the product page. This is so their values can be captured when a user adds the product to the cart.

By default, they’re positioned before the add to cart button. However, you can move them to below the add to cart button using this snippet:

View this code snippet on GitHub.

You can find out how to add a snippet here.

Moving the fields elsewhere on the page

The add-on fields are part of the WooCommerce cart form on the product page. These means that the data from the fields can be passed to WooCommerce when the user adds the product to the cart.

For this reason, it’s not easily possible to move the fields elsewhere on the product page.

The post Change position of add-on fields appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/change-position-of-add-on-fields/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
Add custom parameters to add-on fields https://pluginrepublic.com/documentation/add-custom-parameters-to-add-on-fields/ https://pluginrepublic.com/documentation/add-custom-parameters-to-add-on-fields/#respond Tue, 07 Jan 2020 09:25:04 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=211078 You can add a custom parameter to your add-on fields, e.g. for SKU, by using the following snippet: Note that you’ll need to update the code, changing your_param_name to the name of your custom parameter. You can see how to add a custom snippet to your code here.

The post Add custom parameters to add-on fields appeared first on Plugin Republic.

]]>
You can add a custom parameter to your add-on fields, e.g. for SKU, by using the following snippet:

View this code snippet on GitHub.

Note that you’ll need to update the code, changing your_param_name to the name of your custom parameter.

You can see how to add a custom snippet to your code here.

The post Add custom parameters to add-on fields appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/add-custom-parameters-to-add-on-fields/feed/ 0