Product Options 1.0.0  Mar 2 2021


This plugin adds selectable options to WooCommerce products.
So customer can select size, color and specify custom text before adding a product into the shopping cart.
The store administrator can create product options on the edit product page.
He can set price for each option value and make options required "mandatory" for selection.
So the customer will not be able to add the product the shopping cart without selecting the required options.




Index:


Installation

1) Wordpress admin panel -> Plugins -> Add New
Click the "Upload Plugin" button (screenshot)
Select the product-options-for-woocommerce.zip file and click the "Install Now" button (screenshot)

Also you can install it manually.
Unzip the product-options-for-woocommerce.zip archive and upload 19 new files into "wp-content/plugins" directory of WordPress:

wp-content/plugins/product-options-for-woocommerce/Block/Adminhtml/Product/Edit/Tab/CustomOptions.php
wp-content/plugins/product-options-for-woocommerce/Block/Adminhtml/Product/Edit/Tab/CustomOptions/Options.php
wp-content/plugins/product-options-for-woocommerce/Block/Product/Options.php
wp-content/plugins/product-options-for-woocommerce/Controller/Product.php
wp-content/plugins/product-options-for-woocommerce/Model/Observer.php
wp-content/plugins/product-options-for-woocommerce/Model/Option.php
wp-content/plugins/product-options-for-woocommerce/Model/Option/Value.php
wp-content/plugins/product-options-for-woocommerce/product-options-for-woocommerce.php
wp-content/plugins/product-options-for-woocommerce/readme.txt
wp-content/plugins/product-options-for-woocommerce/Setup/Install.php
wp-content/plugins/product-options-for-woocommerce/uninstall.php
wp-content/plugins/product-options-for-woocommerce/view/adminhtml/templates/product/edit/tab/customoptions.php
wp-content/plugins/product-options-for-woocommerce/view/adminhtml/templates/product/edit/tab/customoptions/options.php
wp-content/plugins/product-options-for-woocommerce/view/adminhtml/web/product/edit/main.css
wp-content/plugins/product-options-for-woocommerce/view/adminhtml/web/product/edit/main.js
wp-content/plugins/product-options-for-woocommerce/view/adminhtml/web/product/edit/styles-old.css
wp-content/plugins/product-options-for-woocommerce/view/frontend/templates/product/options.php
wp-content/plugins/product-options-for-woocommerce/view/frontend/web/product/main.css
wp-content/plugins/product-options-for-woocommerce/view/frontend/web/product/main.js


2) Activate PartFinder plugin in:
Wordpress admin panel -> Plugins
(screenshot)


Back to the index


An example of how to use it

1) Open any Simple product in: Wordpress admin panel -> Products (screenshot)
2) Open the Custom Option section. (screenshot)
3) Click the Add Option button to add a new option. (screenshot)
4) Select option type Drop-down. (screenshot)
5) Click the Add New Row button to add a new option value. (screenshot)
6) Fill the option title and option value titles fields. (screenshot)
7) Click the Update button to save the product. (screenshot)
8) Check the result on front-end product view page. (screenshot)


Back to the index


Limitations

The current version of this extension supports only Simple products:
(screenshot)

Also it uses JavaScript to change product price so it is very dependent on theme's HTML

If this plugin cannot find and update the price on the frontend product view page when you select a product option you should adjust the line:
    this.priceDiv = $('#product-'+ this.productId +' .summary .woocommerce-Price-amount');

in the file:
wp-content/plugins/product-options-for-woocommerce/view/frontend/web/product/main.js


Back to the index


Troubleshooting



Back to the index