How to change Product Type or Clas

Posts: 94
Joined: 10/29/2007
Bug Finder

I need some help from the UberGods. I have been setting up a store and I have ALL of my products as type "Product". Now I have found that I need to charge FL sales tax on some items but not others. (Specifically Food type products).

1. Can I do this w/o creating a different product type?

2. If I create a new product type like food. How can I change the node type from Product to Food. I tried to just do this in the Node table, but when I made the change to node->type the product dissapeared.

Thanks
Jim F

Posts: 94
Joined: 10/29/2007
Bug Finder

Help on this anyone. There has to be an easy way to solve this.
J

Posts: 192
Joined: 12/28/2007
Uber DonorBug Finder

Hi... I'm not absolutely sure about this, but maybe you want to take a look at the Node Convert or Nodetpe -modules?

Good luck from Sunny Spain!

Posts: 105
Joined: 01/11/2008

Hi

Admin > Store administration (section) > Products > Manager Classes

yourdomain.com/admin/store/products/classes

Then go do admin/store/settings/taxes and for the appropriate tax set the Product class that it'll apply to. So the new product class will not have any taxes changed on it.

Posts: 94
Joined: 10/29/2007
Bug Finder

I know about the
yourdomain.com/admin/store/products/classes

I just don't know how to convert a product from 1 class to another.

Posts: 364
Joined: 10/16/2007

Seems the only way is to modify the database in order to move a product from one class to another.

http://www.ubercart.org/forum/support/4124/moving_product_one_class_anot...

Gave it a try on localhost and did not find any issues. In the PNG example, editing 'products' and renaming 'designs_by_sue' moved that node into the correct class on the test site.

Backup your database just in case.

Jim

AttachmentSize
node.png39.52 KB
Posts: 5
Joined: 06/29/2008

I'm in a similar situation in that I've built out a site with a fair amount of CCK, node type-based templating, and now need to support taxes on some products but not others. Having to retrofit all of that to accommodate a couple of new node types seems like a pain. Why should taxes be dependent on something as rigid as a node type (ie something that, in Drupal, often has so many other structural implications)?

I've tried changing this at the Workflow NG level, but it seems like I can't get any more granular than the entire order. I can tax if an entire order is shippable or not, but it doesn't seem like I can make tax applicable only to particular products within an order that are shippable or not.

In my view, distinct node types should be set up for distinct information architecture (CCK, special functionality) and themeing (node-type templates, hook_nodeapi), not for setting up categorization and meta info. Seems like the product class = node type setup is too rigid if "class" is a simple categorization tool (as the tax module seems to use it as). Seems like taxonomy would be better for product classes, and then people could additionally create different product node types only if they really need different CCK/architectures.

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

+1 to that... it does make sense for tax rules to be applied based on some other per-product setting... I was thinking about it just today b/c I wanted to tax some products on an order but not others. I can't think off the top of my head if this is even possible. Puzzled

Posts: 5
Joined: 06/29/2008

In my case, taxes should be conditional based on shipping. So I made some modifications to uc_taxes.module that may be helpful to others: http://www.ubercart.org/forum/development/5981/small_improvement_uc_taxe...

Posts: 2243
Joined: 08/07/2007
AdministratoreLiTe!

Yeah, this particular part of the tax system is on my list of things to change eventually. I'm thinking there will be something similar to taxonomy to organize products into tax classes. We'll see.