Making Wp-e-Commerce Prices show no decimals

In processing.functions.php in the function nzshpcrt_currency_display()
You’ll find this line somewhere around line 81:

$price_out = number_format($price_in, 2, '.', ',');

to this:

$price_out = number_format($price_in, 0, '.', ',');

You will also have to do this same change to the function process_as_currency($price) which is on around line 1300 of wpsc-includes/cart.class.php

This was just a quick test, haven’t gone through all the tests.. but this is a start.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>