TomatoCart - New Generation Open Source eCommerce

22206 Downloads
36 users online
Home 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 3 Months, 1 Week 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 16:35 By Maxx.
The administrator has disabled public write access.
 
#1068
Re: Disable shopping cart and "Buy It Now" button 3 Months, 1 Week ago Karma: 4
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: 119
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/06/02 05:22 By jack.yin.
The administrator has disabled public write access.
 
#2030
Re:Disable shopping cart and "Buy It Now" button 1 Month, 2 Weeks 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: 24
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 Month, 2 Weeks 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: 24
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 Month, 1 Week 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: 6
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 Month, 1 Week 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: 24
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: Gerdi

Latest Blog Post

Online store that you may have the best shopping experience

Which online store do you have the best shopping experience at?The design style is your cup of tea? You love ...

Blog | Yvonne Chen | Friday, 3 September 2010

More in: About Us

-
+
3

contact_us

Elootec
Qingyang Road 333 Wuxi
Jiangsu Province 214023 P.R.China
+86-510-85756831
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Receive HTML?