I have this hidden field :
<input type="hidden" id="PartNum" name="pn" value="{{ price.getPartNumber }}">
And this input text
<input type="hidden" id="ltid" name="lt" value="{{ price.getLt }}">
I want do a test on the value of the PartNumber
value="{{ price.getPartNumber }}"
If it contains this String 35-l0l-1003
I should change the value of the value="{{ price.getLt }}"
to 30
I should use strpbrk
to search a string for any of a set of characters.
I'm beginner in Twig
and I don't know how can I add it.
Please can you help me.
Thank you.