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, [...]
Making Credit Card Expiry Date select boxes for Wp-e-Commerce PayPal Pro
Last Friday a user contacted me and asked me for a fix for the Paypal Pro system. He wanted a drop down box instead of the default text boxes for the credit card expiration dates. The fix sounded like a great enhancement that many Wp-e-Commerce users could benefit from. I’ll be asking Instinct if we [...]
Making Tax use discounted price
Needed to put this somewhere just incase we decide to add it into core. function calculate_total_tax() { global $wpdb; $total = 0; if($this->total_tax == null && $this->coupons_amount == 0) { foreach($this->cart_items as $key => $cart_item) { $total += $cart_item->tax; } } elseif($this->coupons_amount == 0) { $total = $this->subtotal-$this->coupons_amount; $total = $total /(100) *$wpsc_cart->tax_percentage; }else{ $total [...]
Sales Price doesn’t show in Grid View
Hi, I had a couple of people that we’re getting frustrated that grid_view was not displaying the sales price,, instead it was just showing the normal price without the discount,,, The problem lies in the theme file grid_view.php Check your HTMl that displays the price it should look like this: <span class=”pricedisplay”><?php echo wpsc_product_normal_price(); ?></span>Price: [...]