Jump to content



Latest News: (loading..)

Mystefyer

Member Since 10 Mar 2008
OFFLINE Last Active Aug 10 2012 02:06 PM
-----

Posts I've Made

In Topic: Add-On to remove "Add to Cart" button when stock is 0

08 August 2012 - 01:25 PM

14Steve14, if you are reffering to the code edits of http://addons.oscommerce.com/info/8507, I looked into it, but none of the entries you are supposed to edit can be found in 2.3 except for the parts in product_info.php, the differences in that file are not so big compared with 2.2.

As to the problem with my code lies within product_listing.php. It now replaces all Buy Now buttons for all items in the list, despite their stock status. Changing the 0 to a 1 in the 2nd
if ($listing['products_quantity'] > 0) {
result in Buy Now buttons for all products. The idea is to replace only the buttons for items which have a stock of 0


Regards,

Emile

In Topic: Add-On to remove "Add to Cart" button when stock is 0

08 August 2012 - 10:54 AM

@14steve14, I looked at that one, but alas, it is not compliant with 2.3. The code you need tho change according to the install html is for 2.2 which is drastically different than 2.3.
I could not find an addon which works for 2.3, hence I started making my own.