2grosiek7 Posted September 23, 2017 Share Posted September 23, 2017 Hi, I'd like to know, that is any possibility, to use function in prestashop, which could check first letter od word? I know, that is possible to change letter. How it should be write in code?Thanks in advance Link to comment Share on other sites More sharing options...
hakeryk2 Posted September 25, 2017 Share Posted September 25, 2017 Uhmm.. You should be more precise about this question because there is a plenty of ways to check this. Link to comment Share on other sites More sharing options...
2grosiek7 Posted September 26, 2017 Author Share Posted September 26, 2017 For example, I want to have an effect only if reference index starts from BLNIKE(XXXX) - where in (XXXX) is random number. Link to comment Share on other sites More sharing options...
hakeryk2 Posted September 27, 2017 Share Posted September 27, 2017 If You want to have impact on product.tpl (which I assume you want) you should try this code {if strpos($product->reference, 'BLNIKE') != false} Your HTML CODE {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now