To allow Pre-Ordering of backordered items, I have a custom field enabled to show Est Ship Date, instead of setting inventory to 0 and displaying Sold Out. Works fine except I need it to work at the attribute level for products with Inventory Variants. Since Inventory Variants are inactive products, using the Custom Field on the backend PROD page doesn't work. If I use the custom field for the main product, it displays doesn't change for Inventory Variants. So All or Nothing
Goal Example: Display would be via the Inventory Message
Product A (Inventory Message: In Stock)
A-Sm - (Inventory Message: In Stock)
A-Med - (Inventory Message: Pre-Order ships 02/10)
A-LG - (Inventory Message: In Stock)
The only way I can get it to work is to have individual products instead of one product with a dropdown of options. Would prefer the later.
Have tried:
Attribute Machine > Inventory Element > inventory-message (Long). Example Message:<span class="red>Pre-Order Est 03/10/19</span> Works but not for Inventory Variants.
<div id="inventory-message" itemprop="availability" href="https://schema.org/InStock" >
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :baskmessage">
<span class="sold-out">Pre-Order</span>
<mvt:elseif expr="l.settings:product:inv_active">&mvt:product: inv_long;</mvt:if> IS THERE CODE I SHOULD ADD HERE FOR INACTIVE?
</div>
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :baskmessage">
<span class="sold-out">Ship Est: &mvt:product:customfield_values:customfields:ba skm essage;</span>
<mvt:elseif expr="NOT ISNULL l.settings:product:customfield_values:customfields :baskmessage">
Thanks, Diana
Goal Example: Display would be via the Inventory Message
Product A (Inventory Message: In Stock)
A-Sm - (Inventory Message: In Stock)
A-Med - (Inventory Message: Pre-Order ships 02/10)
A-LG - (Inventory Message: In Stock)
The only way I can get it to work is to have individual products instead of one product with a dropdown of options. Would prefer the later.
Have tried:
Attribute Machine > Inventory Element > inventory-message (Long). Example Message:<span class="red>Pre-Order Est 03/10/19</span> Works but not for Inventory Variants.
<div id="inventory-message" itemprop="availability" href="https://schema.org/InStock" >
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :baskmessage">
<span class="sold-out">Pre-Order</span>
<mvt:elseif expr="l.settings:product:inv_active">&mvt:product: inv_long;</mvt:if> IS THERE CODE I SHOULD ADD HERE FOR INACTIVE?
</div>
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :baskmessage">
<span class="sold-out">Ship Est: &mvt:product:customfield_values:customfields:ba skm essage;</span>
<mvt:elseif expr="NOT ISNULL l.settings:product:customfield_values:customfields :baskmessage">
Thanks, Diana
Comment