This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Input quantity and stock status in vertical results

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

#48738
samuelepellizzarisamuelepellizzari
Participant

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