Image Image Image Image Image

Fish Can’t Whistle Limited

Registered Company Number: 7781289

Studio 30
Fazeley Studios
191 Fazeley Street
Birmingham
West Midlands
B5 5SE

 

Scroll to Top

To Top

wp ecommerce - Fish Can't Whistle

Getshopped – Add more details to sales CSV

I have previously showed I added shipping columns to the sales logs page in a getshopped (Wp-Ecommerce) installation. This was fine but now we need that data to show up in the csv download.

Here’s how to do it-

Read more…

GetShopped – Add order without shipping column to sales view

The sales view in the wp-ecommerce (GetShopped) is great but it will show you the total price of an order rather than the price without shipping, the shipping, and the total.

To introduce this functionality you do have to hack the plugin files, but there is not another way as I can not see any hooks I could make use of. If I have missed one, please do let me know!

Read more…

WP E-commerce – Image previews to change on hover

Hi All,

Another fix ive had to implement whilst working with WP E-Commerce. This time to add functionality so that when thumbnails (from gold cart gallery) are hovered over, the main image preview changes. This also will update the main preview image so that when clicked the correct large image pops up.

You must add this code AFTER the thumbnails have been generated. For me that was at the very bottom of wpsc-single_product.php after

</div><!--close single_product_page_container-->

Here’s the code to add-

<script> jQuery(".attachment-gold-thumbnails").each(function () { jQuery(this).css("cursor", "pointer"); var large_preview = jQuery(this).parent().attr("rev"); var even_larger_preview = jQuery(this).parent().attr("href"); var preview_title = jQuery(this).parent().attr("rel"); jQuery(this).hover( jQuery(this).mouseover(function() { jQuery(".product_image").attr("src", large_preview); jQuery(".product_image").parent().attr("href", even_larger_preview); jQuery(".product_image").parent().attr("rel", preview_title); }) ); }); </script>

It also takes the magnifying glass cursor off the thumbnails and replaces it with pointer. You can change it to whatever you like really.

NB: I have only tested this with the thickbox image pop up script within WPEC. This is due to it being the only one that works natively within the plugin for me…
:-)

WP E-commerce Category list order and more control…

So ive been trying to use wpsc functions to control my widget of category listings… not fun. i have very little control over the listings without editing the core files which is something i would rather not do.

There are a number of supposed solutions out there but with the recent change to use wordpress tables rather than wpsc custom tables, at lot of those fixes no longer work.

So my solution has been to just use the already existing WordPress function “wp_list_categories”.

Like this

<?php
 $args = array('taxonomy' => 'wpsc_product_category', 'orderby' => 'ID', 'order' => 'ASC', 'style' => 'none', 'child_of' => 15);
 wp_list_categories( $args );
 ?>

Just put that in your sidebar or wherever else you want to display categories. Forget the widget for category listings, it doesnt allow you enough control. Using the above code will allow you to have control over the following (from http://codex.wordpress.org/Template_Tags/wp_list_categories)

<?php $args = array(
 'show_option_all'    => ,
 'orderby'            => 'name',
 'order'              => 'ASC',
 'show_last_update'   => 0,
 'style'              => 'list',
 'show_count'         => 0,
 'hide_empty'         => 1,
 'use_desc_for_title' => 1,
 'child_of'           => 0,
 'feed'               => ,
 'feed_type'          => ,
 'feed_image'         => ,
 'exclude'            => ,
 'exclude_tree'       => ,
 'include'            => ,
 'hierarchical'       => true,
 'title_li'           => __( 'Categories' ),
 'show_option_none'   => __('No categories'),
 'number'             => NULL,
 'echo'               => 1,
 'depth'              => 0,
 'current_category'   => 0,
 'pad_counts'         => 0,
 'taxonomy'           => 'category',
 'walker'             => 'Walker_Category' ); ?>

I was using three category widgets but now am simply using this in my sidebar-

<h2>SHOP BY AGE</h2>    

 <?php
 $args = array('taxonomy' => 'wpsc_product_category', 'orderby' => 'ID', 'order' => 'ASC', 'style' => 'none', 'child_of' => 15);
 wp_list_categories( $args );
 ?>    

 <h2>SHOP BY ARTIST</h2>    

 <?php
 $args = array('taxonomy' => 'wpsc_product_category', 'orderby' => 'ID', 'order' => 'ASC', 'style' => 'none', 'child_of' => 8);
 wp_list_categories( $args );
 ?>    

 <h2>SHOP BY TYPE</h2>    

 <?php
 $args = array('taxonomy' => 'wpsc_product_category', 'orderby' => 'ID', 'order' => 'ASC', 'style' => 'none', 'child_of' => 11);
 wp_list_categories( $args );
 ?>

Much simpler and allows me absolute control over the order, appearance, depth and exclusions etc.

Its sad the this plugin doesnt have native support for this. maybe because its not needed when we can just use the WordPress functions?…

Add related products to wp e-commerce (getshopped) store

Here is a nice and simple way to enable related products on a single product page when using wp e-commerce. There’s only four steps!

Step one: Download the “Related Posts” plugin from http://www.microkid.net/wordpress/related-posts/ and install it.

Step two: Set up the plugin and familiarise yourself with the admin panel. Here is a great place to start.

Step three: Insert the following where you want your related products to display (for me this is in the imported wpsc-single_product.php file in my theme folder)-

MRP_show_related_posts()

Step four: Change line 450 in microkids-related-posts.php (now in your wp-content/plugins/microkids-related-posts folder)

FROM

$output .= "<li><a href="".get_permalink( $related_post->ID )."">".$related_post->post_title."</a></li>n";

TO

$output .= "<li><a href="".get_permalink( $related_post->ID ).""><img src="".wpsc_the_product_thumbnail(get_option('product_image_width'),get_option('product_image_height'),$related_post->ID,'single')."" ><br>".$related_post->post_title."</a></li>n";

And you’re done.
:-)