Availability and stock
How GTeShops XML feed decides what it writes in the instock and availability fields for products in stock, exhausted and backorders.
Two Fields#
instock:Yif the product is considered available, otherwiseN.availability: the text that the buyer sees, from the texts you define on the machine.
How text is selected#
| Status at WooCommerce | availability |
|---|---|
| In stock | Text for available products |
| Not in stock | Out of Stock Text |
| Stock 0 or smaller, with Allow backorders | Pre-order text |
| Stock 0 or smaller, with backorders Allow, but notify the client | Out of Stock Text |
If you keep availability per product in your own field, the machine can read it from there and prefer it to the general texts.
Skipping exhausted#
By setting off-stock product failure, the exhausted products do not enter XML at all. If you want them to be seen as unavailable, leave the setting inactive.
Control#
- Select a product in stock, a exhausted and one with backorders.
- Replay XML.
- Find the three products with search in the file (Ctrl+F in
idor in name) and checkinstockandavailability.
Availability is updated on GTeShops only when XML is reproduced, so the frequency of cron determines how quickly a stock change appears.
Send a request; the plugin and the article are automatically completed.