TomatoCart

65170 Downloads
333 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

Disable shopping cart and "Buy It Now" button
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Disable shopping cart and "Buy It Now" button
*
#1063
Disable shopping cart and "Buy It Now" button 1 Year, 8 Months ago Karma: 0
Hi,
How can I disable shopping cart and "Buy It Now" button?
I want costumers will not be able to make orders thru the website.
Thank you,
Waiting for an answer.
Maxx
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/01 14:35 By Maxx.
The administrator has disabled public write access.
 
#1068
Re: Disable shopping cart and "Buy It Now" button 1 Year, 8 Months ago Karma: 7
Okay.

1. Find the "product_listing.php" in the 'modules' directory. The path is "/includes/modules/product_listing.php". Find the row " case 'PRODUCT_LIST_BUY_NOW':" and disable the row "$lc_text = osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $Qlisting->value('products_id') . '&' . osc_get_all_get_params(array('action')) . '&action=cart_add'), osc_draw_image_button('button_buy_now.gif', $osC_Language->get('button_buy_now'))) . '&nbsp;<br />';".

2.Find the "new_products.php" in the 'content' directory. The path is "templates/glass_gray/modules/content/new_products.php". Disable the row "osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qproducts->value('products_id') . '&action=cart_add'), osc_draw_image_button('button_add_to_cart.png', $osC_Language->get('button_add_to_cart')))".

3.Find the "new.php" in the "products" directory. The path is "templates/glass_gray/content/products/new.php". Disable the row "<td align="right" valign="middle"><?php echo osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qproducts->value('products_id') . '&action=cart_add'), osc_draw_image_button('button_in_cart.gif', $osC_Language->get('button_add_to_cart'))); ?></td>".

4.Find the 'info.php' in the "products" diretory. The path is "templates/glass_gray/content/products/info.php". Disable the code "osc_draw_image_submit_button('button_in_cart.gif', $osC_Language->get('button_add_to_cart'), 'style="vertical-align:middle;" id="addToShoppingCart"')".

5.Find the 'reviews_info.php' in the 'products' directory. The path is "templates/glass_gray/content/products/reviews_info.php". Disable the row "<?php echo '<p>' . osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $osC_Product->getID() . '&' . osc_get_all_get_params(array('action')) . '&action=cart_add'), osc_draw_image_button('button_in_cart.gif', $osC_Language->get('button_add_to_cart'))) . '</p>'; ?>".

5. Find the 'reviews_info.php' in the 'products' directory. The path is "templates/glass_gray/content/products/reviews_info.php". Disable the row "osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qspecials->value('products_id') . '&action=cart_add'), osc_draw_image_button('button_add_to_cart.png', $osC_Language->get('button_add_to_cart'))) .".

6. Find the product_reviews.php' in the 'products' directory. The path is "templates/glass_gray/content/products/product_reviews.php". Disable the row "<?php echo '<p>' . osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $osC_Product->getID() . '&' . osc_get_all_get_params(array('action')) . '&action=cart_add'), osc_draw_image_button('button_in_cart.gif', $osC_Language->get('button_add_to_cart'))) . '</p>'; ?>".

7. Find the 'cart.php' in the 'checkout' directory. The path is "includes/checkout/cart.php". Add the code "osc_redirect('index.php');" before the row "$this->_page_title = $osC_Language->get('shopping_cart_heading');" in the osC_Checkout_Cart function.
jack.yin
Team Member
Posts: 891
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/02 03:22 By jack.yin.
The administrator has disabled public write access.
 
#2030
Re:Disable shopping cart and "Buy It Now" button 1 Year, 6 Months ago Karma: -1
The second "5." is located in specials.php ...

5. Find the 'reviews_info.php' in the 'products' directory. The path is "templates/glass_gray/content/products/reviews_info.php". Disable the row "osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qspecials->value('products_id') . '&action=cart_add'), osc_draw_image_button('button_add_to_cart.png', $osC_Language->get('button_add_to_cart'))) .".

actually is:

5. Find the 'specials.php' in the 'products' directory. The path is "templates/glass_gray/content/products/specials.php". Disable the row "osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qspecials->value('products_id') . '&action=cart_add'), osc_draw_image_button('button_add_to_cart.png', $osC_Language->get('button_add_to_cart'))) .".
focusoft
Place Your Bussines At The Top Of Search Engines
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Gender: Male focusoft2008 FocuSoft Design focusoft2008 Location: Craiova, Romania Birthday: 03/03
The administrator has disabled public write access.
 
#2031
Re:Disable shopping cart and "Buy It Now" button 1 Year, 6 Months ago Karma: -1
And the last point 7.

7. Find the 'cart.php' in the 'checkout' directory. The path is "includes/checkout/cart.php". Add the code "osc_redirect('index.php');" before the row "$this->_page_title = $osC_Language->get('shopping_cart_heading');" in the osC_Checkout_Cart function.

actually is located in "includes/content/checkout/cart.php", so the right way is:

7. Find the 'cart.php' in the 'checkout' directory. The path is "includes/content/checkout/cart.php". Add the code "osc_redirect('index.php');" before the row "$this->_page_title = $osC_Language->get('shopping_cart_heading');" in the osC_Checkout_Cart function.
focusoft
Place Your Bussines At The Top Of Search Engines
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Gender: Male focusoft2008 FocuSoft Design focusoft2008 Location: Craiova, Romania Birthday: 03/03
The administrator has disabled public write access.
 
#2082
Re:Disable shopping cart and "Buy It Now" button 1 Year, 6 Months ago Karma: 0
Parse error: parse error in templates\glass_gray\content\products\info.php on line 181

that's what i got when i did your tuts.
can you help me ?


thanks in advance
nd0r0
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2106
Re:Disable shopping cart and "Buy It Now" button 1 Year, 6 Months ago Karma: -1
show us the source of your file to see where is the problem
focusoft
Place Your Bussines At The Top Of Search Engines
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Gender: Male focusoft2008 FocuSoft Design focusoft2008 Location: Craiova, Romania Birthday: 03/03
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: Elora, infinityl, newkid

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?