Hey Bruce and Daniel…
ALrighty gentlemen, not sure why this didn’t come to mind sooner, but I did manage to simplify everything with more coverage. 😉
Replace the last code with this and it should handle everything that goes through the price hook, regardless of currency symbol or currency.
Mr Daniel… for the cart pages you would need to comment out the lines I mentioned in the core files (see previous post).
The mystifying price hook code 😯 :
function hook_price_func($p) { return preg_replace_callback('/([\d\.]*)/',function($d){return number_format($d[0],2);},$p);} add_filter ('hook_price','hook_price_func');
This reply is for PremiumPress customers only.
1,051
Views
42
Replies
Copyright © 2010-2024 PremiumPress Limited.
Hey Bruce and Daniel…
ALrighty gentlemen, not sure why this didn’t come to mind sooner, but I did manage to simplify everything with more coverage. 😉
Replace the last code with this and it should handle everything that goes through the price hook, regardless of currency symbol or currency.
Mr Daniel… for the cart pages you would need to comment out the lines I mentioned in the core files (see previous post).
The mystifying price hook code 😯 :
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now