uc_product_table custom fields / sortable

Posts: 78
Joined: 01/17/2008

Hi there,
currently my uc_product_table is set up like this.

Image Name Price Add to cart

I would like it to be set up like this.

Image   Desc   Cond   Price   Add to cart

Cond stands for Condition. I would need this part to be sortable.

These are the following condition choices.

  • N/A
  • RF - Factory Refurbished
  • NC - New Closed Box
  • ND - New from Distribution
  • NO - New Open Box
  • RS - Seller Refurbished
  • U - Used Functional
  • UD- Used Damaged
  • UD - Used with minor defects
  • NP - New Pulled from configured System

I'm not sure how much time this would take? If anyone wants to send me some PM's with quotes that would be nice.
Thanks, - Justin

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

This should be pretty easy if you use Views.

--

<tr>.

Posts: 78
Joined: 01/17/2008

Hey TR, thanks for giving me some help,

I got it all set up in a view now, Located here: http://www.e-techcomputers.com/products/

But how do I integrate that into my catalog?

Thanks, - Justin

Posts: 78
Joined: 01/17/2008

Anyone? Can someone give me some tips on integrating my product views into my store?

How do I use views instead of TAPIr with my taxonomy? Any help is greatly appreciated. Please and thank you.

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

It looks like you've made a lot of progress. I thought you were talking about the /product table, not the /catalog table of products, but no matter. When you start having to do a lot of work customizing the Catalog, you'll find it's sometimes easier just to implement the rest of the Catalog in Views also, see http://www.ubercart.org/contrib/95 for an example.

--

<tr>.

Posts: 78
Joined: 01/17/2008

Hey TR, thanks a ton this has helped me get closer to what I want. My last question is...
How do I integrate my breadcrumbs with my views? So they match those of the catalog?

As you can see with your help I've got my views set up perfectly here:
http://www.e-techcomputers.com/view_specials

But I need to have breadcrumbs like this page.

http://www.e-techcomputers.com/catalog/specials/

Any suggestions?

Thanks Again, - Justin

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

For custom breadcrumbs on Views, I use PHP in the View's header. The drupal_set_breadcrumb() function does the trick.

Posts: 78
Joined: 01/17/2008

Ryan, thanks so much for this tip / help.
My final question is this:

Everything is set up perfectly breadcrumbs / I can organize now.

BUT

How Can I change the link from the catalog page?

Ex. In the catalog when I click specials it will bring me to Ubercart's Table View. Is there a way I can override the taxonomy links so I can make them link to my views pages?

Thanks, - Justin

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

Do you actually need the catalog pages anymore? It may be as simple as disabling uc_catalog. It implements hook_term_path() to override the taxonomy links and points them to the catalog page. I don't know of a good way to do that other than with a module, though.

Posts: 78
Joined: 01/17/2008

Hi Lyle,

The old catalog pages won't be in need anymore.

Ex. I want to replace:
This: http://www.e-techcomputers.com/catalog/specials
With This: http://www.e-techcomputers.com/catalog/specials2

I think the easiest way to do this is if there was a module or something that would allow me to customize the taxonomy terms links. Does anyone know of a module that does that?

Posts: 78
Joined: 01/17/2008

I might have solved it, hahaha
I found this module - http://drupal.org/project/taxonomy_redirect

Edit: Damn...it only uses Vocabulary's =( =(

Any ideas?

Posts: 78
Joined: 01/17/2008

Hey guys, I finally found a module that will allow me to do this.

If anyone else is trying, the module is = the Path Redirect module
Can find it here: http://drupal.org/project/path_redirect

Thanks for all the help guys, I can finally use views for uc_product_table!