Tag: wp-e-commerce
3.8 Developers Beta Release
17th November
Today I had the priviledge of announcing a 3.8 Developers Beta to the mailing list. What’s the hype? Well 3.8 has been 11 months in the making, and has had some great minds slaving away at it….
Hide the customer’s purchase number upon checkout
25th March
I’d like to hide the customer’s purchase number upon checkout from the ecommerce plugin for wordpress.
Making Tax use discounted price
3rd February
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 = $this->total_tax;
}
return $total;
}
or if 3.7.6
function calculate_total_tax() {
global $wpdb, $wpsc_cart;
$total = 0;
if(wpsc_tax_isincluded() == false){
if($this->total_tax == null && $this->coupons_amount == null) {
foreach($this->cart_items as $key => $cart_item) {
$total += $cart_item->tax;
}
$this->total_tax = $total;
} elseif($this->coupons_amount == null) {
$total = $this->total_tax;
}else{
//exit(‘
‘.print_r($this,true).’
‘);
$total = $this->subtotal-$this->coupons_amount;
$total = $total /(100) *$wpsc_cart->tax_percentage;
}
}else{
if($this->total_tax == null) {
foreach($this->cart_items as $key => … Read More »
Sales Price doesn’t show in Grid View
26th January
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:
But REALLY it should look like this:
<span class=”pricedisplay”><?php echo wpsc_the_product_price(); ?></span>Price:
Hope this helps. Ill make sure it gets fixed in the next release.
best
Jeff
How to add quantities into your Purchase Report
21st January
Hi, heres a question I was asked today, seems like everyones been having trouble getting quantities into the admin purchase report. I TOTALLY understand, the function is big and bloated, it’s part of the old system which we are trying our best to overhaul when time allows.
Anyway to the task at hand.
Wp-e-commerce version: I don’t think the version matters so much since this is part of the old code.
File: transaction_result_functions.php
Around line 180 you should see something like this:
$report_product_list.= ” – “. $product_data['name'] .stripslashes($variation_list).” “.$message_price .”nr”;
change it to this:
$report_product_list.= $row['quantity'].” – “. $product_data['name'] .stripslashes($variation_list).” “.$message_price .”nr”;
That should do it
have a good week!
SCM
A Wp-e-Commerce Module Framework
13th January
So I’ve made a couple of modules (Upgrades) for wp-e-commerce now, and I’m starting to get the hang of things. Theres a few key things to make a module actually tick with wp-e-commerce but don’t worry it takes it’s inspiration from WordPress so if your familiar at all with developing in WordPress then you should pick it up quick and easy.
I’ve made a basic frame for building my wp-e-commerce modules quick and effortless. It’s really simple, it does the first two things every module needs… well sort of apart from actually DOING anything.
Has an Upgrades File Header
Adds a new page to the Products sidebar in wp-admin
Step 1 : Location and File Structure
All upgrades either live in this folder or in a folder in this folder
wp-content/uploads/wpsc/upgrades
All upgrades have a main file with its comment header (just like themes and plugins with … Read More »
