Stock Status update
-
Hi,
The xml I have has a tag <availability>, which contains “Εξαντλήθηκε” for Outofstock and “Άμεσα διαθέσιμο – 8 τεμάχια” for Instock. The problelm is that the part “- 8 τεμάχια” its the stock quantity (it translates to 8 pieces/stock). This first part “Άμεσα διαθέσιμο” is always the same for when in stock.
I know I can use this
[str_replace( array( “Εξαντλήθηκε”, “Άμεσα διαθέσιμο” ), array( “outofstock”, “instock” ), {availability[1]} )]
but thats only if the <availability> tag had exactly this “Άμεσα διαθέσιμο”.
Is there a way to make the str_replace to read only the first part of “Άμεσα διαθέσιμο – 8 τεμάχια”?
Thanks in advanceThe page I need help with: [log in to see the link]
The topic ‘Stock Status update’ is closed to new replies.