|
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
|
|
Last Edit: 2010/06/01 16:35 By Maxx.
|
|
|
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'))) . ' <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.
|
|
|
|
Last Edit: 2010/06/02 05:22 By jack.yin.
|
|
|
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'))) .".
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|