6 replies [Last post]
enkara's picture
Offline
Joined: 08/09/2007
Juice: 23
Was this information Helpful?

Hi, I want to ask if is there any way to make Ubercart be a simple catalog. This means that I don't want cart functionality, only show my items.

I know this is UberCART, but if there's a way it would be fantastic!

Thank you!

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
No uc_cart and theme_uc_product_add_to_cart

If you didn't enable the cart module and themed theme_uc_product_add_to_cart to display no button when users viewed product pages that would give you the functionality you ask.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Ubercart only as a catalog of products

Haven't thought about this before, but it looks like it can be done with a minimum of fuss. You'd need to override the function theme_uc_product_add_to_cart() with this:

<?php
function yourtheme_uc_product_add_to_cart($node){
  return
'';
}
?>

by putting it in your template.php file. You would also want to disable the "Buy it now" column in the table settings for the product lists in the catalog.

I think I'll add some checks for the cart module into the product code just to make this kind of functionality even easier later.

gagarine (not verified)
gagarine's picture
a access controle?

Yeah but why don't add a access control like:
uc_order
uc_kart
uc_view_product
?
It would be nice for a lot of reason to quickly disabled order for anonymous user or just for maintenance ...

(thanks for ubercart Smiling)

gagarine (not verified)
gagarine's picture
Re: Re: Ubercart only as a catalog of products

.... if you put /kart for url you have access to the cart. So if they have a other way to access (other theme, future change,...) the cart can be accessable to poeple they don't have the right! This is a "logic" part of the application not "teaming".

Tim Schewe's picture
Offline
Joined: 11/03/2009
Juice: 2
Bump! Did anything ever come

Bump!

Did anything ever come of this? I would like to have only a catalog as well, no checkout required....

harrisben's picture
Offline
Joined: 04/17/2009
Juice: 192
Howdy all, I just saw this

Howdy all,

I just saw this thread and thought I'd add my 2cents.

I have a site which uses Ubercart only to display a product catalog myself. If this is all you ever plan to do with Ubercart it's sort of overkill because you can do exactly the same with CCK and views (which I had previously done on the same site). I implemented Ubercart originally planning to use it as a customer portal for more direct and accurate ordering but the lack of decimal support for quantities stopped me in my tracks. I've stayed with Ubercart in the hope that this changes in the future (fingers crossed!).

Anyway, my reason for posting was to point out that if you're using attributes, messing with the add-to-cart button (effectively the form submission button) will cause problems. In my case I've used CSS to hide the add-to-cart button and while I admit it's not the best solution, a user would have to be very savvy to actually place an order.