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.