Wpsc

Revise Order of Shipping Options in WPSC

February 18th, 2009

shipping/ups.php

line 41, re-order array and comment out unwanted options to suit. 1st item in array will be default selected at checkout. Example:
function getMethod($dest) {
if ($dest == 'US') {
$method= array(
'GND' => 'Ground',
// '1DM' => 'Next Day Air Early AM',
// '1DML' => 'Next Day Air Early AM Letter',
'1DA' => 'Next Day Air',
// '1DAL' => 'Next Day Air Letter',
// '1DAPI' => 'Next Day Air Intra (Puerto Rico)',
// '1DP' => 'Next Day Air Saver',
// '1DPL' => 'Next Day Air Saver Letter',
// '2DM' => '2nd Day Air AM',
// '2DML' => '2nd Day Air AM Letter',
'2DA' => '2nd Day Air',
// '2DAL' => '2nd Day Air Letter',
// '3DS' => '3 Day Select',
// 'GNDCOM' => 'Ground Commercial',
// 'GNDRES' => 'Ground Residential',
// 'STD' => 'Canada Standard',
// 'XPR' => 'Worldwide Express',
// 'WXS' => 'Worldwide Express Saver',
// 'XPRL' => 'Worldwide Express Letter',
// 'XDM' => 'Worldwide Express Plus',
// 'XDML' => 'Worldwide Express Plus Letter',
// 'XPD' => 'Worldwide Expedited',
);

Speeding Up WP E-Commerce Shopping Cart… a bit

February 17th, 2009

updating_tasks.php line 396
if($wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}currency_list WHERE continent NOT IN ('')") < 242)
to
if($wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}currency_list WHERE continent NOT IN ('')") < 230)
I went from 330 queries to 86!

http://www.instinct.co.nz/forums/topic.php?id=2856#post-13720

Share This Breaks Prototype.js in WordPress/WP Shopping Cart

February 17th, 2009

Enabling the “ShareThis” option in the Marketing settings of WPSC causes an error box to pop in IE but not FF.

http://comox.textdrive.com/pipermail/wp-hackers/2008-April/019532.html