Drupal 5.1 - ecommerce 1.3
Many thanks to the ecommerce developers. This is the second site I've used this module on. The first a relatively easy, straight forward, one type of product without variations, except for member discounts.
The new project has many different types of products. And as I can add products, get them to different views (which is unbelievably fantastic), it's the sub products I'm scratching my head at. I started on this using a beta version 3.0+ and upgraded to the the most recent 3.0
DO I have it right that the "Apparel" module is the ONLY module that uses sub-products?
I have a book product, it needs to have different prices for different amounts. I set up variations and attributes using "Product variations" module, and they appear in the "sub product"
example:
book - base price $5.00
5 books - 20.00
10 books - 85.00
etc.
Easy, I add a book, attach the sub product pricing.
Is there another way to do this?
Now I have postcards. Same set up as the book.
Add Product variations for postcards (using Apparel module).
Attache postcard variations to the different postcards BUT even though I'm not adding any of the BOOK product variations, the heading as well as the empty drop down box shows up on each postcard product. AND now the postcard heading and empty drop down box shows up under the Book product.
ALL the while this is creating MANY products.
OK, how hard, I say to myself, would it be to make a custom module based on the "Apparel" one. Edit/rename all uses of the word "Apparel" in files and directory and save all with "Book".
Upload the new module, make active, Whala! I have a new "Book in" "Product variations" next to "Apparel", in the menu, everywhere! BUT all the "Apparel" variations already made, show up under the new Product variations for "Book" too....
I can add variations to "BOOK" and attributes to them, but don't see 'em. I can use 'em when I've used the new "BOOK" module to add products and sub products BUT then the errors to the ec_roles module start appearing....
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/site/public_html/store/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 126.
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/site/public_html/store/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 130.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/site/public_html/store/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 137.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/site/public_html/store/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 138.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/site/public_html/store/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 139.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/site/public_html/store/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 140.- Besides not seeing the actual new sub products under the "Product variations"
- seeing the ones ONLY created with the "Apparel" module
- getting the errors above.
Are the only road blocks I notice for not being able to make custom product modules.
I'm I making this harder then it is? What am I missing?
Thanks for any help, and if I've missed anything from the forums, I apologize. I think I've gone over them all... a few times....
Peace
Richard
Comments
I don't know if this is helpful or not but...
This is how I handled custom / variable products and ecommerce cart. It does take a little programming but I had NO experience prior to this project.
Check out what I did here.
"Labels and Stickers"
"Labels and Stickers"
thanks, but I was hoping for
thanks, but I was hoping for drupal ecommerce solution.
there's the generic product module, it's activated, but doesn't show up in sub product view...
Everything is there.. It's just that all the sub product variations show up even when you don't have any of the attributes loaded... or is that the other way around :)
www.KCServers.com
more simply, how do you not
more simply, how do you not show ALL variations of the apparel product module.
attributes don't show when not asked to, but the variation does.
thanks
richard
www.KCServers.com
I am having same problem - Drupal 5.5, Ecommerce 5.x-3.4
I have drupal running perfectly (as far as I can tell) except for some problems arising from the ecommerce module I have installed (which was ecommerce-5.x-3.4)…
Running:
Drupal 5.5
Configuration file Protected
Cron maintenance tasks Last run 4 min 48 sec ago
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.45
PHP 5.1.4
Unicode library PHP Mbstring Extension
Web server Apache
Problems with attempt #1:
• I created 2 variations with several attributes each. Then I (successfully) created new “parent” Apparel Product, went to subproducts tab and it (successfully listed all variations/attributes available for generation). I selected all and clicked “review options.”
o It (successfully) displayed all subproducts with these options to generate. I clicked generate and got many of these similar errors (apparently one for reach subproduct that was supposedly being generated):
warning: array_filter() [function.array-filter]: The first argument should be an array in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 126.
warning: array_filter() [function.array-filter]: The first argument should be an array in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 130.
warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 137.
warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 138.
o Went back to subproducts tab for same apparel product. I clicked add (next to list) and clicked review options, then generate and got only ONE error:
warning: Invalid argument supplied for foreach() in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/subproducts/subproducts.inc on line 297.
o Going to the Subproduct Attributes tab for that product reveals “there is no variations or attributes for this product.
• Custom Subproduct module does not seem to exist anywhere however it is explicitly mentioned here: http://drupal.org/node/52743
• Log messages:
o Type: php, Date: Friday, January 11, 2008 - 08:16, User: administrator , Location: http://www.padutchfurniture.com/?q=node/159/subproducts/generate, Referrer: http://www.padutchfurniture.com/?q=node/159/subproducts/generate, Message: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 140, Severity: error
o Type: php, Date: Friday, January 11, 2008 - 08:16, User: administrator, Location: http://www.padutchfurniture.com/?q=node/159/subproducts/generate, Referrer: http://www.padutchfurniture.com/?q=node/159/subproducts/generate, Message: array_filter() [function.array-filter]: The first argument should be an array in /home/content/p/a/d/padutch/html/sites/all/modules/ecommerce/contrib/ec_roles/ec_roles.module on line 126.