Dynamically Change Stock Status in Feed
CTX Feed outputs stock status as In Stock, Out Of Stock, or Preorder by default — matching Google Merchant Center’s format. But many other channels have their own required formats: Amazon wants InStock, Facebook wants in stock, and some channels simply require Yes or No.
Dynamic Attributes let you remap these values per channel without touching your WooCommerce store data. You define the mapping once; CTX Feed applies it on every feed generation.
Video Tutorial: Dynamically Change Stock Status – CTX Feed
Required Formats by Channel
Check what your target channel requires and use that as your Output Value in the condition.
| Channel | In Stock | Out of Stock | Preorder |
|---|---|---|---|
| CTX Feed default ⚙ default | In Stock | Out Of Stock | Preorder |
| Google Merchant Center | in_stock | out_of_stock | preorder |
| Amazon | InStock | OutOfStock | PreOrder |
| Facebook / Meta | in stock | out of stock | preorder |
| Custom / other channels | Yes / 1 / any value | No / 0 / any value | Channel-specific |
💡 Check Your Channel’s Spec First Always verify the exact required values in your channel’s feed specification before setting up conditions. Incorrect availability values are one of the most common reasons for product disapprovals. Google’s official availability attribute spec
How to Set Up Dynamically Changing Stock Status in Feed?
📋 Before You Start This uses Dynamic Attributes. If you haven’t created one before, read the How to Configure a Dynamic Attribute guide first.
Step 1: Go to CTX Feed → Dynamic Attributes → Add New
Give it a name that identifies the channel, e.g. “Stock Status” or “Facebook Availability”. This helps when managing multiple feeds.
Step 2: Add the first condition: Stock Status = “In Stock”
Set Product Attribute to Stock Status, Condition to is / equal, and Value to In Stock. Set Output Type to Pattern and enter your channel’s required value in Output Value — for example InStock for Amazon.

Step 3: Click “Add Condition” and add rows for Out of Stock and Preorder
Repeat the process for the remaining stock states. Refer to the channel format table above for the correct output values. You need one condition row for each status — typically three rows total.
Step 4: Save — then Clear Cache
Click Save to store the attribute.
⚠️ Clear the Cache After Saving. Go to CTX Feed → Manage Feed and click Clear Cache. Without this step, your new dynamic attribute will not appear in the feed attribute dropdown — even after saving.
Step 5: Map it to the Availability field in your feed
Open your feed in CTX Feed → Make Feed. Find the Availability (or Stock Status) attribute row, open the Store Attribute dropdown, and select your new dynamic attribute from the Dynamic Attributes group.

✅ Result: Your feed will now send the exact availability format your channel requires — InStock, in stock, in_stock, or any custom value — based on the product’s WooCommerce stock status. No store data is changed.