Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can you diable the cart


Dashe

Recommended Posts

Posted

I would like to use OSC as a product catalog but dont want to allow sales via the site just yet, is it possible to disable the cart and just have it as an online brochure.

 

I have looked but couldnt find anything to turn it off.

 

Any help on this would be apriciated

 

Dashe

 

** Should be disable in the topic, tried to edit but wouldnt allow me to **

Posted

you have to do it manualy delete the shopping cart php file and delete in ALL files the tabel witch the place for the products in the shopping cart ... then you have to delete all buttont links .. to add a product in the cart or the user will get the message that the shopping chart php was not found....

Posted

there is a contribution for disabling the cart, i think if you go to contributions and search on disable

Posted

Hi guys thanks for the reply.

 

I dont think I am familure enough with OSC to start removing code here and there, no just yet :lol:

 

I had a look through the contributions section and searched both that and the fourm and couldnt find where that was, any ideas on what section it might have been in. :blink:

Posted

Well I had another look around this place and cant find that contribution. Basicly all I want to do is display my Items as a catalog or up to date prices, but dont want to do any selling via the portal.

 

Does anyone know of a protal that might allow this.

Posted

you wouldn't have to remove very much code, and it wouldn't be that hard. In fact, if you're planning on using it in the future to sell stuff, then you could just comment out bits of code by putting /* in front of the code you want to disable, and */ after it. Either that or just delete stuff - the choice is yours :)

 

You'll need to edit catalog/includes/column_right.php and comment out the following code:

 require(DIR_WS_BOXES . 'shopping_cart.php');

along with any other boxes you want to disable. (some are in column_left.php too)

 

then in catalog/product_info.php comment out

 . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART)

from the following bit

<?php echo stripslashes($product_info['products_description']); ?></td><td><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>

the fullstop at the beginning is important, as is not getting the semicolon.

 

you'll also want to make sure "Display Buy Now Column" is disabled in admin under configuration/product listing.

Posted

Hi thanks for the reply, I done a fresh install and comented out what you suggested ans it apears to be working fine. Thanks very much for the reply.

 

I am also going to coment out hte my account sutuff as there is no need for people to sign up, would this casue a problem.

Posted

You can also use a template system like STS

and display only the content management tags

and not the cart tags. Much easier and more

control over the look and layout if your trying

to replicate a CMS functionality.

ibandyop

Posted

Would you believe I had just put that on after my last post and am doing just that, thanks for the reply.

  • 11 months later...
Posted

I am interested in this thread too - has anyone figured out a way of disabling the cart on products in certain categories - I am developing a store where some categories will not be sold directly by the site, but on amazon, whereas otheres will be sold using the default OSC cart facility.

 

I did manage to find a contribution that disabled the cart based on manufacturers - is there an equivalent for categories?

  • 5 months later...
Posted

I was also curious about disabling the cart. With doing what mistafeesh explained I was able to comment out the code in the columns. I was not able to cut the code in catalog/product_info.php The code in that area I had was

 

<p><?php echo stripslashes($product_info['products_description']); ?></p>

<?php

$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

$products_attributes = tep_db_fetch_array($products_attributes_query);

if ($products_attributes['total'] > 0) {

?>

 

I was curious if anyone else knew how to comment this out, and to comment out the images by the bottom right of the banner for the shopping cart. THANKS!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...