Products Fields Archives - Plugin Republic https://pluginrepublic.com/support-categories/products-fields/ WooCommerce Plugins Thu, 26 Oct 2023 16:37:12 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png Products Fields Archives - Plugin Republic https://pluginrepublic.com/support-categories/products-fields/ 32 32 Product add-ons with SKUs https://pluginrepublic.com/documentation/product-add-ons-with-skus/ https://pluginrepublic.com/documentation/product-add-ons-with-skus/#respond Tue, 19 Jan 2021 17:12:14 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=793809 As a rule, product add-ons don’t have SKUs. However, there are times when you want to assign an SKU to an add-on option: for instance, you might want to track the inventory of your add-ons. There are a couple of different ways to assign SKUs to add-on fields. Using the Products field type The best […]

The post Product add-ons with SKUs appeared first on Plugin Republic.

]]>
As a rule, product add-ons don’t have SKUs. However, there are times when you want to assign an SKU to an add-on option: for instance, you might want to track the inventory of your add-ons.

There are a couple of different ways to assign SKUs to add-on fields.

Using the Products field type

The best way to do this is to use the Products field type. This means that you can create your add-on as a standalone product, along with price, weight, inventory and SKU etc.

Then you can use this product as a ‘child product’ to your main product.

Preventing child products from being purchased separately

If you want to prevent your child products being visible or purchasable by the customer unless they’re part of a parent product, then make the child product hidden.

This will hide the product from your shop. However, a customer could still access this if they knew the URL.

To prevent users from accessing hidden products at all, go to WooCommerce > Settings > Product Add-Ons > Products and select the option to ‘Redirect hidden products’.

Creating dynamic SKUs

If you would like to create ‘dynamic’ SKUs, e.g. by adding a letter or number to the product SKU depending on which options the user selects, you can use the method outlined here to set custom parameters for add-ons.

The post Product add-ons with SKUs appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/product-add-ons-with-skus/feed/ 0
Link to child products https://pluginrepublic.com/documentation/link-to-child-products/ https://pluginrepublic.com/documentation/link-to-child-products/#respond Fri, 26 Jun 2020 06:14:18 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=481522 When you list your child products, the link to the original child product page is suppressed. You can re-enable it using this snippet: Here’s how to add a snippet.

The post Link to child products appeared first on Plugin Republic.

]]>
When you list your child products, the link to the original child product page is suppressed. You can re-enable it using this snippet:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Link to child products appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/link-to-child-products/feed/ 0
Products field settings https://pluginrepublic.com/documentation/products-settings/ https://pluginrepublic.com/documentation/products-settings/#respond Thu, 17 Oct 2019 13:53:41 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=138255 You can find settings for child products by going to WooCommerce > Settings > Product Add-Ons > Products. Include variations as child products If you’re using the ‘Products’ field, you might want to include variations as child products, not just simple products. To do so, go to WooCommerce > Settings > Product Add-Ons and select […]

The post Products field settings appeared first on Plugin Republic.

]]>
You can find settings for child products by going to WooCommerce > Settings > Product Add-Ons > Products.

Include variations as child products

If you’re using the ‘Products’ field, you might want to include variations as child products, not just simple products.

To do so, go to WooCommerce > Settings > Product Add-Ons and select the ‘Include variations as child products’ option:

Display variant name without SKU in child product

By default, when using variations as child products, product names include the SKU. If you’d like the name without the SKU, go to WooCommerce > Settings > Product Add-Ons > Products and enable ‘Exclude SKUs from child variants’

Hide child or parent products in the cart, order or email

If you’d like to hide child products in the cart, order page and emails, you can go to WooCommerce > Settings > Product Add-Ons and select the following two options:

  • Hide child products in the cart
  • Hide child products in the order

This will also ensure that the count of products in the mini cart is updated.

Hide parent products in the cart, order and email

If you’d like to hide parent products instead, just check the following options

  • Hide parent products in the cart
  • Hide parent products in the order

Display child products as metadata

If you’d like to link child products to the parent product, you can display the child product IDs in the parent product metadata.

Multiply child product quantities by the product quantity

If you would like to multiply the quantity of child products by the main product quantity:

  • Go to WooCommerce > Settings > Product Add-Ons > Products
  • Set ‘Multiply independent quantities’

Redirect hidden products

You can ensure that child products are not purchasable independently by setting them as ‘Hidden’ then checking the option to ‘Redirect hidden products’.

Display child product information in a lightbox

You can display additional information about child products when a user clicks the child product title. This will display the product title, thumbnail and short description in a lightbox.

To enable this, check the option to ‘Enable QuickView for child products’.

Note that this only works with ‘Checkboxes’, ‘Column’ and ‘Radio’ layouts.

List parent and child items separately in the cart

If you don’t want to organise child products under their parent products, you can use this snippet:

View this code snippet on GitHub.

Edit child product quantities in the cart

By default, the child product quantities can’t be edited in the product page, if you’ve set the product field quantity settings to Independent.

If you’d like users to edit child product quantities in the cart page, then use this snippet:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Products field settings appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/products-settings/feed/ 0
Product and Product Categories fields https://pluginrepublic.com/documentation/product-fields/ https://pluginrepublic.com/documentation/product-fields/#respond Thu, 14 Feb 2019 13:58:20 +0000 http://localhost/pluginrepublic/?post_type=ht_kb&p=39248 Product fields allow you to use other products as add-on fields in your WooCommerce product. Product Categories fields allow you to use all products from the specified categories as add-on fields. Note that Product and Product Categories fields are only available when you purchase the Pro version of the plugin. To add a Products field […]

The post Product and Product Categories fields appeared first on Plugin Republic.

]]>
Product fields allow you to use other products as add-on fields in your WooCommerce product. Product Categories fields allow you to use all products from the specified categories as add-on fields.

Note that Product and Product Categories fields are only available when you purchase the Pro version of the plugin.

To add a Products field

To add a Product field, just choose ‘Products’ from the ‘Field Type’ dropdown list.

To add a Product Categories field

To add a Product Categories field, just choose ‘Product Categories’ from the ‘Field Type’ dropdown list.

Standard parameters

See this article for an overview of the standard parameters available to Product fields.

Product field parameters

Product and Product Categories fields have some parameters that are not shared by all fields:

Product layout

Choose how your child products will be displayed on the front end:

  • Checkboxes Images let you add one or more child products as an addon field. The customer can select multiple child products within the field that will get added to the cart. The field will display the child product thumbnail
  • Checkboxes List – the same as the Checkboxes Images above but without the child product image
  • Radio Images allow you to add one or more child products as an addon field, just like the checkboxes layout, though in the case of radio buttons the customer can only select one child product from the field. The child product image will be displayed
  • Radio List – same as Radio Images above but without the child product image
  • Select lets you add your child products as a dropdown field.
  • Column displays your child products in a single column layout. Note that the ‘Column’ setting also allows you to use variable products as child products.

Product quantities

Choose how to manage the quantities of child products:

  • Independent: when you specify a product addon field’s quantity as independent, the customer will be able to purchase as many of the child product as they wish, regardless of how many of the parent product they’ve chosen
  • Linked: when you specify the quantity as linked, the quantity of the child product added to the cart will always be the same as the quantity of the parent product
  • One-only: when you specify the quantity as one-only, then only one child product can be added to the cart, regardless of how many of the parent product has been added

Number columns

Choose how many columns to display the image swatches in on the front end.

Hide labels

Select this option to hide the text labels and only display the images.

Minimum / Maximum Products

You can specify a minimum and/or maximum number of child products if you are using ‘Checkboxes’ as the ‘Products Layout’ and ‘Independent’ as the ‘Products Quantities’ type. You’ll see two new settings:

If you are specifying a minimum or maximum number of checkboxes, you might need to ensure that ‘Required field’ is checked in order to ensure that users select the required number of checkboxes.

Discounting child products

You can choose to offer a discount on child products. Just enter the value of the discount and the discount type, percentage or fixed.

The price of the child product will be adjusted accordingly.

Hiding child products on the site

If you don’t want users to find your child products on the site, you can set them to ‘Hidden’.

Note that the user could still find hidden products if they have the direct URL. To prevent users from accessing hidden products at all, go to WooCommerce > Settings > Product Add-Ons > Products and select the option to ‘Redirect hidden products’.

Setting a limit on the number of products in Product Categories fields

By default, the Product Categories field will only query 100 products per category. You can change this limit by using this snippet:

View this code snippet on GitHub.

‘How to’ guides

There are several ‘how to’ guides with different ideas for using the Products field, including:

The post Product and Product Categories fields appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/product-fields/feed/ 0