El Patron Posted September 3, 2012 Share Posted September 3, 2012 (edited) When I use: if (version_compare(_PS_VERSION_, '1.4.9', '=')) ...do something Is never true on a 1.4.9.0 installation. if (version_compare(_PS_VERSION_, '1.4.9.0', '=')) ...do something Returns true on a 1.4.9.0 installation I need (well would like) the first example 3 character check to return true on a 1.4.9.x installation. $25.00 USD paypal payment to anyone that provides a proper solution to this. Edited September 3, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted September 3, 2012 Share Posted September 3, 2012 Can't you just use if (version_compare( substr(_PS_VERSION_, 0, 5), '1.4.9', '=')) 1 Link to comment Share on other sites More sharing options...
El Patron Posted September 3, 2012 Author Share Posted September 3, 2012 Can't you just use if (version_compare( substr(_PS_VERSION_, 0, 5), '1.4.9', '=')) worked like a charm...thank you brain tired...native PrestaShop doesn't compare a 3 digit version. please pm me your paypal email address Cheers, Fred 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