Version 1.6.9
Added admin control for attribute selection in bundle products:
Admin Interface (class-abs-product-type.php):
- Added new "Attributes" column in Bundle Products table (after Qty)
- Includes info icon with tooltip: "Allow customers to select product attributes (size, color, etc.) for this item"
- Checkbox is automatically disabled for non-variable products
- Only enabled for variable products (products with size, color variations)
- Saves ask_attributes value ('yes' or 'no') in bundle_items array
Frontend Display (class-abs-frontend.php):
- Updated to check ask_attributes flag from bundle_items
- Only shows attribute dropdowns when checkbox is checked
- Admin must explicitly enable attributes per product
- Prevents unwanted attribute selectors from appearing
How It Works:
Admin (Bundle Products table):
- Product: Bathrobe (Variable)
- Price/Variation: Min price
- Qty: 2
- Attributes: ☑ ← Check to allow customers to select size/color
- Delete: [X]
Frontend (if checked):
Bathrobe #1
Size: [Select ▼] ← Dropdown appears Enter initials: [___]
Bathrobe #2
Size: [Select ▼] ← Dropdown appears Enter initials: [___]
Frontend (if unchecked):
Bathrobe #1
Enter initials: [___] ← No size dropdown
Bathrobe #2
Enter initials: [___] ← No size dropdown
This gives admins full control over which bundle items show attributes.