9 replies [Last post]
VitaLife's picture
Offline
Bug Finder
Joined: 10/29/2007
Juice: 249
Was this information Helpful?

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

VitaLife's picture
Offline
Bug Finder
Joined: 10/29/2007
Juice: 249
Re: How to change Product Type or Clas

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

Abilnet's picture
Offline
Uber DonorBug Finder
Joined: 12/28/2007
Juice: 718
Re: Re: How to change Product Type or Clas

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!

end user's picture
Offline
Joined: 01/11/2008
Juice: 1198
Hi

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.

VitaLife's picture
Offline
Bug Finder
Joined: 10/29/2007
Juice: 249
Re: Hi

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.

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Database

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_another

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.png 39.52 KB
greenmachine@drupal.org's picture
Offline
Joined: 06/29/2008
Juice: 12
Seems like classes = node type is not a good idea

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.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Seems like classes = node type is not a good idea

+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

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Seems like classes = node type is not a good idea

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.

greenmachine@drupal.org's picture
Offline
Joined: 06/29/2008
Juice: 12
suggested change to uc_taxes.module

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...