an
groups-icon

No Price Format in Shop

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    James D
    0 points
    Beginner

    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');
    May 16, 2014 at 9:15 pm
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 17, 2014 at 7:05 am
  • Daniel Haglage
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 21, 2014 at 1:05 pm
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 21, 2014 at 3:53 pm
  • Daniel Haglage
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 29, 2014 at 10:54 am
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 29, 2014 at 5:39 pm
  • Daniel Haglage
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 29, 2014 at 6:22 pm
  • Daniel Haglage
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 29, 2014 at 6:57 pm
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 29, 2014 at 6:57 pm
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 29, 2014 at 6:58 pm
  • Daniel Haglage
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 30, 2014 at 6:39 pm
  • James D
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    September 30, 2014 at 7:11 pm
  • Khalid Jarhder
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    March 26, 2015 at 9:34 pm

1,051

Views

42

Replies