Options & Attributes Weight 2.1 for CE Phoenix 1.1.0.0+
Tested with Phoenix 1.1.0.1
by @raiwa 
raiwa@phoenixcartaddons.com
www.phoenixcartaddons.com

----------------------------------------------------
Support:
https://phoenixcart.org/forum/addons/
----------------------------------------------------

How it works:
It allows to add option/attributes weight which can be optional shown on the Product page in the options/attributes drop down menu.
Alternative pi and content modules are included. 
The option/attribute weight will be added to the product weight in the shopping cart class and take into consideration for weight based shipping modules.

There are 2 ways to add option/atributes weight:
1. Add weight to an option value:
Example: Box Size 12 -> 0.20 
         Box Size 24 -> 0.40
The extra weight will apply for all products using The Box size Option. 
Useful for same accesories which are added to different products, but have always the same extra weight.

2. Add weight to an attribute:
Example: Shiny Red Apples Box Size 12 -> 0.20 
         Shiny Red Apples Box Size 24 -> 0.40
         Lemons Box Size 12 -> 0.10 
         Lemons Box Size 24 -> 0.20
Useful when the same Option Value adds different weight to different products.

NOTE: Entering a product specific extra weight (Example 2) to an attribute will overwrite the generic option value weight (Example 1)

Support for this is available in the Ajax Attribute Manager 3.5.0 Addon:
https://phoenixcart.org/forum/app.php/addons/free_addon/ajax_attribute_manager

--------------------------------------------------------------------------------------------------------
Install Manual
----------------------------------------------------

1.)
Backup your Data and Database before installation.

2.) 
Transfer the new files over. No core files will be overwritten.

The following file may already be present if you are using one of my other addons which adds columns to the options/attributes table:
includes/hooks/shop/system/_09_loadAttributesRaiwa.php

It is identical to the system hook packed with the addons:
Ajax Attributes Manager 4.0+
Options images 2.1+
QtPro 5.0+
Option Types 2.1+
Wholesale Lite 5.1+
Wholesale Pro 5.1+


3.)
Open the Admin Products Attributes Page:
Admin: Catalog: Product Attributes
This will execute the database installation script.

You can now start to enter weight values.

3.) Optional to show the attributes weight in the options Attributes Drop Down:
Uninstall the core pi module "Options & Attributes"
Admin: Content Modules[Product Info]: Options & Attributes: Remove Module
Install the pi module "Options & Attributes Weight"
Admin: Content Modules[Product Info]: Install Module: Options & Attributes Weight

OR

Uninstall the core content module "Options & Attributes"
Admin: Layout Modules: Product Info:  Options & Attributes: Remove Module
Install the content module "Options & Attributes Weight"
Admin: Layout Modules: Product Info: Install Module: Options & Attributes Weight

NOTE: The weight unit is just a value which shows up together whith the weight in the attributes drop down. 
It should match the unit you are using in your store in other places.

--------------------------------------------------------------------------------------------------------
Uninstall Manual
----------------------------------------------------

1. Delete the Admin hook:
includes/hooks/admin/products_attributes/optWeight.php

2. In the Options & Attributes Weight Module you are using:
In the pi module "Options & Attributes Weight" set "Uninstall Removes Database entries" to "True"
Uninstall the pi module "Options & Attributes Weight"
Install the core pi module "Options & Attributes"

OR

In the content module "Options & Attributes Weight" set "Uninstall Removes Database entries" to "True"
Unnstall the content module "Options & Attributes Weight"
Install the core content module "Options & Attributes"

If you didn't use any of these modules, install one of them and do the above described Uninstall procedure.
******************************************************************************
THAT'S IT!
******************************************************************************

Change log:

2.1

- replaced overridden product_loader class by system hook
- added siteWide hook to add required options attributes entries

Update 2.0 to 2.1

1. Upload and replace all files
The following file may already be present if you are using one of my other addons which adds columns to the options/attributes table:
includes/hooks/shop/system/_09_loadAttributesRaiwa.php

It is identical to the system hook packed with the addons:
Ajax Attributes Manager 4.0+
Options images 2.1+
QtPro 5.0+
Option Types 2.1+
Wholesale Lite 5.1+
Wholesale Pro 5.1+


******************************************************************************

2.0:
- Updated for Phoenix 1.1.0.0 and Bootstrap 5
- Added Spanish and German language files

Update 1.1 to 2.0

1. Upload and replace all files

******************************************************************************

1.1:
- Updated template width class of the modules to match Phoenix 1.0.9.4 core

Update 1.0 to 1.1

1. Uninstall the option weight module you are using 
(content product info or layout product_info)

2. Upload and replace all files

3. Install the option weight module you are using 
(content product info or layout product_info)