[VQMOD] Auto Update Product Quantity From Product Options

[VQMOD] Auto Update Product Quantity From Product Options
Auto Update Product Quantity From Product Options
---------------------------------------------------
This extension adds functionality to the admin system so that when you amend the quantity of product options, the main product quantity is automatically updated.

If a product doesn't have any options, or doesn't have any with quantities (e.g. text fields) the main quantity field does not get altered.

If a product has options with quantities (checkbox, select, radio) the total quantity for each option is calculated, and the lowest overall option quantity is then used as the main product quantity. e.g. if you have an option "Size" with a total quantity of 100, and an option "Colour" with a total quantity of 75, the main product quantity will be set at 75, and a warning displayed on the "Data" tab, next to the quantity.

Example
=======
You are selling a shirt which has the following options:

Colour:
Red -> quantity = 9
Blue -> quantity = 11
Green -> quantity = 5
-----------------------
Total = 25

Size:
Small -> quantity = 5
Medium -> quantity = 8
Large -> quantity = 12
-----------------------
Total = 25

When you edit the product, the main product quantity (on the data tab) will be set to 25.

This extension assumes that all option quantities should add up to the same amount for a given product, e.g. if you have 25 shirts in stock, the option quantity for colour should total 25, and the option quantity for size should also total 25.

If for some reason your shop contains options with different totals within the same product (e.g. colour total = 25, size total = 20) then you should be aware that this extension will use the LOWEST option total as the main product quantity.

Product option quantities will not be altered by this extension, only the main product quantity.


Finally
========
If you have any questions or concerns about the extension, you can email me at ocextender [AT] hotmail.co.uk - Please be sure to tell me which version of OpenCart you are using and whether you are using any bespoke modifications on your site (including VQMods). Please also tell me any error messages that are relevant to this module, or attach the error logs to your email.

Please don't forget to give a star rating for this module :)

Please have a look at my other extensions - you can find them here: http://www.opencart.com/index.php?route=extension/extension&filter_username=ocextender



KNOWN CONFLICTS
===================
It has been mentioned that this extension will conflict with the "Dependent Options" module (http://www.opencart.com/index.php?route=extension/extension/info&extension_id=5214&filter_search=Dependent%20Options&filter_download_id=28&page=1). Thanks to thepaladin for mentioning this.




Buy
Price
$20.00

  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
1.5.4, 1.5.4.1, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4

Last Update
19 Sep 2014

Created
8 Aug 2012
96 Sales
42 Comments
ocextender
ocextender
Member since: 22 Dec 2010

View all extensions Get Support