Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy now button


websourc

Recommended Posts

Posted

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.

Posted

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

Posted

I figured it out it was in admin configuration product listing display buy now column I edited and put 0.

thanks.

Archived

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

×
×
  • Create New...