When I was running OpenBay on OC 1.5.6.4 I modified the system/ebay.php file to make this behaviour work.
I've recently upgraded to OC 2.0.3.2 and only just realised after a week of use that this still isn't default behaviour (after accidentally ending a few long-lived listings).
eBay simplified their out of stock behaviour a while back, and all that's required to set a listing to out of stock is to set the stock quantity to zero.
When OpenBay sees an item hit zero stock, it ends the eBay listing (if set to) and then disconnects the OC product from the eBay listing. In the case where the 'end listing' all that is needed is to remove the behaviour that disconnects the product / listing, and add behaviour to set the eBay quantity to zero.
On OC 1.5.6.4, I had to modify the endItem function in the ebay.php file to:
comment out the second instance of: $this->removeItemByItemId($item_id);
add after the previous edit: $this->call('item/reviseStock/', array('itemId' => $item_id, 'stock' => 0));
That had me running quite nicely for about a year on OC 1.5.6.4. I've only just started looking at the code for 2.0.3.2 and won't have time to test things for a few days, but the code looks identical and the same changes 'should' work.
It would be great if the OpenBay developers could add this behaviour, preferably with a button to enable / disable it in the admin.
When I was running OpenBay on OC 1.5.6.4 I modified the system/ebay.php file to make this behaviour work.
I've recently upgraded to OC 2.0.3.2 and only just realised after a week of use that this still isn't default behaviour (after accidentally ending a few long-lived listings).
eBay simplified their out of stock behaviour a while back, and all that's required to set a listing to out of stock is to set the stock quantity to zero.
When OpenBay sees an item hit zero stock, it ends the eBay listing (if set to) and then disconnects the OC product from the eBay listing. In the case where the 'end listing' all that is needed is to remove the behaviour that disconnects the product / listing, and add behaviour to set the eBay quantity to zero.
On OC 1.5.6.4, I had to modify the endItem function in the ebay.php file to:
comment out the second instance of: $this->removeItemByItemId($item_id);
add after the previous edit: $this->call('item/reviseStock/', array('itemId' => $item_id, 'stock' => 0));
That had me running quite nicely for about a year on OC 1.5.6.4. I've only just started looking at the code for 2.0.3.2 and won't have time to test things for a few days, but the code looks identical and the same changes 'should' work.
It would be great if the OpenBay developers could add this behaviour, preferably with a button to enable / disable it in the admin.