I'm trying to set up a small store on a client site using the e-commerce module, and having serious problems.

First of all - subproducts! I created two variations for apparel products, style and size, and edited the one apparel produc the store has (T-shirts) to include those (I clicked "generate subproducts" with all options checked -- that should do it, right?), but I can't figure out how to get them to show up on the page! When I go to the T-shirt page, I see no menus for varations, or any other way of choosing them - nor do any show up when I click "add to cart", or even "check out". At no point in the process does it show a customer the subproducts. Am I missing something?

Also, the product list view is horribly broken. When I try to view any sort of product list, I get an error message saying:

warning: Missing argument 3 for theme_ecviews_product_list() in
/[path to my web directory]/modules/ecommerce/contrib/ecviews/ecviews.module on line 285.

I checked line 285 of that module, and its the first line defining the function theme_ecviews_product_list, so I did a search for any occurrences of the function throughout the ecommerce directory to see where it was being called and what arguments it was being given -- only to find out it apparently isn't being called from anywhere! There were 0 occurrences of the string "theme_ecviews_product_list", so I don't know how or from where it's being called, much less how to give it the third argument it apparently wants.

Below the error message, what it shows makes no sense: the three product nodes that currently exist, wedged into a table horizontally. The first one's squished into an column about 4" wide, and the other two into columns that are about 1" wide each. I'm guessing this is some weird glitch where it's not sure if it's trying to list the nodes one after another like it would on a news page or something, or list them in some kind of a column view with their prices etc., and it's trying to some kind of freakish hybrid of both by wedging the entire nodes into the columns. Anyway, it makes the product listing completely unusable.

Has anyone run into this before? More to the point, does anyone have any idea how to fix it?

I don't really need the product listing, in a sense -- there are few enough products on this site that I could just create a page with a thumbnail and brief blurb for each one and links to the product pages, but that wouldn't automatically update if they added a new product at some point, so it seems like a non-ideal solution. Plus, Drupal insists on putting a link to the broken product page in the breadcrumb trail, so a user might click on that instead of the page I made by accident. So I need to either fix it, or find a way to hide it.

Comments

spidersilk’s picture

Actually, I think I just found a workaround for one part of it - the taxonomy breadcrumb module seems like it might let me replace the product link in the breadcrumb trail with one to a page I define.

But I still need an answer on how to get the subproducts to work.

Lynna

Business: http://www.spidersilk.net
Personal: http://www.wildideas.net

SubWolf’s picture

I don't have that code in front of me, but since the function starts "theme_', it's likely being invoked with theme('ecviews_product_list'...., so try searching for just ecviews_product_list.

---
Santa Cruz Tech | "... Just Below My Skin, I'm Screamin'..."

spidersilk’s picture

OK, that got it - I found it being called in a function on lines 24-31 of the ecviews.module file. Unfortunately, I can't really tell what it's doing with it. :( Really, since I can set up views for products just by using the views module, I'm probably better off just disabling ecviews altogether - it doesn't really seem to be necessary.

But that still leaves me with the problem of how to access the subproducts I set up. They don't seem to show up anywhere. I had discovered that the product list was horked by clicking there to see if the subproducts showed up there as separate products somehow, but I checked in the master content list and they don't appear to exist as nodes in their own right at all... But they don't seem to exist as options for the products either. They basically just don't seem to exist at all, except in the admin section where I set them up. I need to know how to make those options accessible to someone buying a product.

Lynna

Business: http://www.spidersilk.net
Personal: http://www.wildideas.net

spidersilk’s picture

OK, I finally figured out how to get them to show up - except that now the site is a complete mess! Every possible combination of T-shirt size and style is showing up as a separate product!!! That's completely insane.

I tried unpublishing the subproducts, hoping that it would hide them, but that made the size and style menus on the T-shirt page show up blank. There doesn't seem to be any way of keeping those options without destroying the store by having a billion different subproducts all show up separately... OK, it's actually 6 rather than a billion, but it still looks idiotic and there is no way my client will ever sign off on the site with it looking like that.

*sigh* This site needs to be done by Wednesday, and this is one of the few outstanding issues, but it's a big one. They said right from the start that they needed an e-commerce section, and if I can't get it working properly, there's going to be serious trouble.

Maybe the only solution is to replace the views I'm currently using in the e-commerce section with static pages that list only the real products and not the subproducts... But that kind of defeats the point of using a CMS.

Lynna

Business: http://www.spidersilk.net
Personal: http://www.wildideas.net

dgorton’s picture

Not so fun. I don't have a solution, but perhaps some help. E-commerce just (March 10) released a pretty significant update ("Version 3"). I'm in the process of trying it out on a small site right now and will be playing with it to see if it helps us solve some other (completely unrelated) issues we're seeing.

Don't know if it's going to help either of us, but I thought I'd mention it, just in case!

Drew Gorton
Gorton Studios
Some of our Drupal Sites

notauseranymore’s picture

I was having the same trouble and discovered that by using views i could filter subproducts from any results by adding a filter for 'is Master Product'.

E-commerce views also provides a nice product table layout to start from.

Christopher Hamersley
www.hemisphere3.com

spidersilk’s picture

Sorry for not replying sooner, I just saw this reply now. I keep forgetting that the Drupal forums don't notify you when you have replies.

I ended up using a custom view, not the product view that comes with e-commerce, as that one tried to arrange all the products horizontally with each one squished into an inch-wide column. I just made a view the regular way with the views module, and created a special product-type vocabulary with just two entries, product and subproduct, so that I could filter it to show just full products. It was a bit of a pain having to go through all the subproducts and label them with that, though... Especially when I got into videos where there were a lot more subproducts. But it worked in the long run, so it's all good. I wouldn't want to use that method on a big store where the content changed frequently, though...

Lynna

Business: http://www.spidersilk.net
Personal: http://www.wildideas.net