Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Input quantity and stock status in vertical results › Reply To: Input quantity and stock status in vertical results
Hi Ernest,
Many thanks for your feedback and consideration for this feature on possibly future releases.
Regarding the strings to customize, this is what I mean: I need to show the value of the _stock_status string within the result area. However, the value is expressed in English, as per the standard WooCommerce settings: I would like to show those values (‘instock’ and ‘outofstock’) translated into Italian (the language of the website) and in two different color.
You already implemented the conditional brackets (https://documentation.ajaxsearchpro.com/advanced-options/advanced-title-and-description-fields#conditional-bracket-examples), but they show a field’s value based on its existence. I don’t know if it is possible to show a text string based on a field’s value, e.g. if {_stock_status} = ‘instock’ then show ‘• In magazzino’ (possibly in green), if {_stock_status} = ‘outofstock’ show ‘• Non in magazzino’ (possibly in red).
Could you please advise on this?
Thanks again,
Samuele
-
This reply was modified 1 year, 10 months ago by
samuelepellizzari.