Closed (fixed)
Project:
e-Commerce
Version:
5.x-4.0-alpha6
Component:
subproducts
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2007 at 17:25 UTC
Updated:
13 Dec 2007 at 17:00 UTC
Hi,
I`m trying lto create subproducts.
I can`t understand the terms and different types of products.
For example I want to sell a meal in a restaurant that includes a main dish and desert.
The user will have to choose burger or salad for the main dish
and ice- cream or cake for the desert.
I also wants burger, salad, ice-cream and cake to be real products that I can use elsewhere.
What kind of product is the meal?
What are burger, salad, ice-cream and cake? attributes? variations?
How do I define each?
Do I need to test it on the dev version?
Do I need the live-subproduct or is it included in e-commerce V4?
Thanks
Comments
Comment #1
brmassa commenteddolittle,
its all possible. eC4 (which is still in alpha yet) have a completly rewritten Subproducts module, based on eC Live subproducts for eC3.
You should create two variatons: "main meal" and "desert" and then create the burger/icecream nodes.
The burger and ice cream should be a product type that have "Product Attribute" feature enabled. It will allow you to sell them separated if you want to.
Then, you should create the MEAL node. it shuold containg the "Subproducts" feature. it will allow you to select which variations and attributes it will contain. Assign all previous meal options.
Voi la! you now can sell customized meals.
review:
1* create the variations
2* create the attributes
3* create the subproduct and assign all wanted attributes.
regards,
massa
so...
Comment #2
esadot commentedBruno/Gordon et al, first and foremost thanks for your contribution and the hard work.
I thought of taking the sub-product for a test drive (EC 5.x-4.x-dev: October 20, 2007 - 20:01), so I started with a simple and common scheme - shirts in different sizes and color.
I followed above instructions and:
1. I created Color and Size Variation/Attribute. First thing I noticed is that the admin/store/attributes suggest more attributes per a variant (i.e. Price Variation, Stock and SKU), but I fail to find where it's being added.
2. I added Product Attribute feature to Tangible Subproduct.
3. I've created two Tangible products:
a. Product 1 (should the node name be colors?)
b. Product 2 (should the node name be sizes?)
Two immediate issues (which are also roadblocks) pop up:
a. Subproduct attribute tab of both new nodes (product 1 and 2) offers "There is no variations or attributes", however admin/store/attributes hold Color and size Variation/Attribute.
2. I can't locate the "Subproducts" feature you suggested in your note.
Please advise
Comment #3
dolittle commentedmassa,
Thank you for your reply.
I tried to follow your directions but just can`t do it.
after creating two variations when I`m going to: http://localhost/drupal/?q=admin/store/attributes
I get: "warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\drupal\sites\default\modules\ecommerce\subproducts\subproducts.admin.inc on line 29."
once for each variation.
This is what I was trying to do:
1. I`ve a fresh drupal 5.3 installation with token 1.9 and ec 4 alpha5.
2. Enabled token.
3. Enabled store.
4. Enabled paypal (just to avoid warnings) and choose currency.
5. Enabled subproducts module.
6. Created "main meal" and "desert" variations at http://localhost/drupal/?q=admin/content/taxonomy/1
7. Created new product type = "testProduct" with only the "attribute" feature checked and "node is always a product" set to always.
8. Tying to create burger "testProduct". The first field is "attribute" and is required. I`ve tried many combination but I`m not sure what should I write there. No matter what I`m trying it says "You should choose a variation."
Help :)
Thanks
Comment #4
devman commentedHi,
I got the same message:
warning: Variable passed to each() is not an array or object in P:\Program Files\Apache\htdocs\modules\ecommerce\subproducts\subproducts.admin.inc on line 29.
I deleted the variations I created and tried to start again. However when looking in the sub product tables there seemed to still be leftover values from previous attempts. I deleted all the left overs from each of the subproduct tables manually and tried again.
I am just not getting the relationship between Product, Variation, and Attribute as it applies here. The explanation above seems straight forward, but is not working for me. I tried creating a few more.
I got past the error message, but the products just don't look right. I am trying a simple example using a T-Shirt with Size and Color.
Under Administer>e-Commerce>Subproduct Attributes I want to add something so I click on "Create Variations". I create Size and Color and get the above listed error when I return to this page.
I then go to Content>Create content>Product and select Tangible Subproduct. The form that appears wants me to enter an Attribute in the first field (even though it says Submit Product at the top). I enter the Attribute "Yellow". There are 3 -"Subproducts:Product Variation:" fields. The first has no values in the drop down. The second has Size and Color. The third has no values to select. I select Color in the second field.
There are three more fields for "Subproducts: Attribute Tags:". I don't understand what to enter here since I already entered the Attribute in the first field. I submit the form.
My Subproduct page no longer gives the error, but it just shows a list in the first column of 7 entries: Color, Yellow, Green, Red, Size, Red, Large (I entered other combinations). Color and Size do not have dollor amounts next to them but the others have $0.00. (None of the items in the first column are formatted as "Variation/Attribute" as the title suggests")
On the Administer>Content management page I have 4 products: Large, Red, Green and Yellow. Huh? Why are attributes showing as products?
I don't see any relationship between product and sub-product. I tried creating a Shippable Product called T-Shirt, but the Subproducts fields do not have any values to select (2 Subproducts fields appear on this type of product).
It seems like one should be able to create a number of Variations with associated Attributes and apply them to a Product. What am I missing???
Comment #5
dolittle commentedsubproducts not working in alpha6.
1. created 2 variations.
2. created a new product type with attribute feature enabled (after enableing the subproduct module).
3. when trying to create a new attribute product it ask me to choose variation but I can`t see where and how to choose it.
Thanks
Comment #6
duntuk commentedyeah, i'm having all sorts of problems (and errors) too with alpha6... understandably since it's alpha...
Comment #7
spino commentedI know the answer is "soon", but what is the ETA of a workable subproducts module?
Thanks
David
Comment #8
enxox commented+1, i need it too...
Comment #9
stella commentedsubscribing
Comment #10
drupalok commentedsame problems here...
some information if this is issues is gonna be worked on within some days/weeks would be nice... otherwise i think i have to switch to another cms.
thanks for contributing to drupal!
Comment #11
brmassa commentedGuys,
i think i managed to fixed all bugs listed here on eC4 CVS. I know there is about 3 bugs yet, but the next few days im gonna track them down.
cheers,
massa
Comment #12
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.