Ubercart Attribute - tricks and treats

wolf_halton - February 12, 2008 - 04:59

I have discovered that the attributes in Ubercart can do something I never expected. I have one product where the use of an attribute with none of the options checked lets me have a blank field for the customer to add their special instructions. Since I need this on almost every product, that was a neat treat.

Now for the trick. None of my other products have visible buttons for adding or adjusting attributes.

I want the attributes in all products. What do you think happened?

Wolf, not sure what the

rszrama - February 12, 2008 - 19:26

Wolf, not sure what the problem you've going on is. Are you looking for the attribute to be automatically extended to all your other products? This can only happen when they're first created by setting up default attributes for product classes. Are you simply missing the tabs now on your edit forms for your other products? That's usually caused by theme issues or conversion issues from the old e-commerce module.

----------------------
Drupal by Wombats | Current Drupal project: http://www.ubercart.org

The latter rather than the former

wolf_halton - February 12, 2008 - 19:44

THe other ecommerce plugin's products had to be deleted. I am working in all new edit forms. The tabs are missing from the new forms, but they were _not_ missing from the very first new form I did.

I will have to find out more about product classes, as this could be a real time-saver for 1000 things that all have the same colour choices but different imprint sizes....

Totally, a class for each

rszrama - February 13, 2008 - 14:12

Totally, a class for each product type w/ the default attribute/options set would rock it. Regarding the forms, check out Lyle's solution toward the end of this thread for someone with a similar problem. The guide Andy posted below may help you cover any extra bases, too. : )

----------------------
Drupal by Wombats | Current Drupal project: http://www.ubercart.org

Removing the old E-Commerce Module

Andy_Lowe - February 12, 2008 - 21:20

Wolf, you should definitely look into product classes. It can save you gobs of time when you need to apply the same attribute to many products.

It sounds like the problems you are having are a result of some cruft from the old e-commerce module still laying around. Please read this post moving from e-commerce module to Ubercart guide for hints on completely uninstalling the old e-commerce module.
-Andy
Restaurant Equipment

So far, I must have missed something..

wolf_halton - February 14, 2008 - 21:48

I removed the UC folder from the site, after deactivating it.
I went to the db and dropped all continuing ec tables and uc tables, and emptied the cache tables.

Added uc back into the server, and started activating pieces. Activating the store was fine, but as soon as I added product and order, there came an error
user warning: Table 'mysite.uc_product_classes' doesn't exist query: SELECT pcid, name, description FROM uc_product_classes in /home/public_html/mysite/includes/database.mysqli.inc on line 151.

Went back and noticed I still had one old ec product that was hanging on. Deleted it, and removed uc again, emptied caches on the db.

clean now, no errors,

Added uc back into the server, and started activating pieces. Activating the store was fine, but as soon as I added product and order, there came an error
user warning: Table 'mysite.uc_product_classes' doesn't exist query: SELECT pcid, name, description FROM uc_product_classes in /home/public_html/mysite/includes/database.mysqli.inc on line 151.

line 151 is a trigger to activate in case something is not how they expect it to be

So in deleting product and order, "The content fields table content_type_product has been deleted."

Now I have deleted uc again and am looking at the situation I had 3 hours ago. Maybe I ought to just go on and upgrade to 6.x while the site is unable to collect orders?? Ha Ha

THe reactivations are not adding uc tables into the database. What now!?

Yep, instead of deleting

rszrama - February 14, 2008 - 23:24

Yep, instead of deleting Ubercart stuff manually, you should use the uninstall menu from the modules administration. You'll need to browse there and submit the form with all the Ubercart modules checked. As far as Drupal knows, it still considers the Ubercart modules installed.

----------------------
Drupal by Wombats | Current Drupal project: http://www.ubercart.org

Thanks rszrama. Now that

wolf_halton - February 15, 2008 - 01:58

Thanks rszrama. Now that seems obvious. I figured there was a table somewhere that help the uc information. So I added it all back in, and deleted it, and there was a massive gnashing of gears as the tables were discovered to be already missing.

Now I guess I will try to add uc back in...
Probably won't surprise you that the tables were installed properly. Thanks again.

 
 

Drupal is a registered trademark of Dries Buytaert.