websourc Posted April 26, 2020 Posted April 26, 2020 Can I delete the buy now button and how can I do it thanks?
♥ecartz Posted April 27, 2020 Posted April 27, 2020 It doesn't look like there's a good way to do it short of going to includes/modules/product_listing.php and removing it. if ($has_attributes == 0) $prod_list_contents .= tep_draw_button(IS_PRODUCT_BUTTON_BUY, '', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . (int)$listing['products_id']), NULL, array('params' => 'data-has-attributes="' . $has_attributes . '" data-in-stock="' . (int)$listing['in_stock'] . '" data-product-id="' . (int)$listing['products_id'] . '"'), 'btn-light btn-product-listing btn-buy') . PHP_EOL; I suppose that you could add product attributes to every product. Always back up before making changes.
websourc Posted April 27, 2020 Author Posted April 27, 2020 Thanks for the reply I dont see that line in product listing php I am using Installed Version: osCommerce Online Merchant v2.3.4.1
websourc Posted April 27, 2020 Author Posted April 27, 2020 I figured it out it was in admin configuration product listing display buy now column I edited and put 0. thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.