2

We need to change backorders per website Say Product X with quantity 0 can be purchased into WebsiteA but not WebsiteB Magento allow this attribute to be changed only globally.

My idea was to create another attribute and modify getBackorders function into app/code/core/Mage/CatalogInventory/Model/Stock/Item.php to watch this new attribute instead of "backorders"

This modification only affects my product into admin when saving

Any idea how to solve?

and_rest
  • 314
  • 2
  • 7

2 Answers2

1

I think you are on the right track with your idea. Create a new attribute that is set on a per website / store view level and then extend the stock item function to look at this value instead.

Josh Pennington
  • 6,418
  • 13
  • 60
  • 93
0

This looks like the best viable solution I've found:

https://inchoo.net/magento-2/allow-backorders-website-scope/

Seems silly that Magento does not have reduced scope for this with the Multi-Source Inventory.

Mahmoud Abdelsattar
  • 1,299
  • 1
  • 15
  • 31
Greg
  • 21
  • 5