Tag: wp-e-commerce


3.8 Developers Beta Release

Posted by jghazally in wp-e-commerce. 6 comments

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

Posted by jghazally in wp-e-commerce. No Comments

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

Posted by jghazally in wordpress, wp-e-commerce. 1 Comment

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

Posted by jghazally in wordpress, wp-e-commerce. 2 comments

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

Posted by jghazally in wordpress, wp-e-commerce. 3 comments

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

Posted by jghazally in wordpress, wp-e-commerce. 16 comments

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 »



Recent blog posts

Alfred Extension to check your sites secure

A few posts back I mentioned how my site was hacked, and how persistent they were after I kept cleaning out their attacks. I...

Hacked, and hacked again. How my old site sold anti-depresants?!

So, my ranking on google had gone down, I have a link that says my site might be compromised? And to top it off...

Not so new job, new work station and workflow

Hello World! It’s been a while.

So this is the first blog post in a very long time. A lot has happened, it has been...

WP e-Commerce Plugin Skeleton Update

Hi Everyone,

Previously I had created a WP e-Commerce Plugin Skeleton as a template to show other developers how to extend WP e-Commerce in a...

Downloadables Importer gets 3.8 Compatible

Hi everyone, So I finally got a chance to update my Downloadables Importer, which is great. It now works ONLY on wp-e-commerce 3.8 so if...

How I learned to stop being a Cowboy and Love the SVN

Cowboy, you been barking up the wrong tree. If you’re editing your site, and/or your clients site live. Well then buddy your doing it...

Sayonara Instinct

So today was my first day out of instinct HQ. A few weeks back I gave my 2 weeks notice and handed in my...