WP Ecommerce

Update Text Using PO Files. Translate Text.

A basic guide to translating wp-e-commerce using poEdit 1. Download and Install poEdit : http://www.poedit.net/download.php 2. Run poEdit and open a translation file (.po) from the `wp-e-commerce/languages` folder 3. Go through the list of words / sentences and add in your translations 4. In poEdit make sure you have the box checked in Preferences>Editor ‘Automatically…

Read More

Wp Ecommerce Responsive CSS

Add the following CSS rules to make WP-Ecommerce plugin more responsive to mobile devices: #content .product_grid_display .item_image a { display: inline; } #primary #content #grid_view_products_page_container, #primary #content #grid_view_products_page_container, #primary #content #list_view_products_page_container { line-height: 1.2em; min-width: 300px; position: relative; width: 100%; } #default_products_page_container .imagecol img, #list_view_products_page_container img, #grid_view_products_page_container img { height: auto !important; } #checkout_page_container {…

Read More

Hide Shipping Calculator for Flat Rate Shipping

The aim is to only hide the calculator from the checkout page not remove it as it still must send its values to the next page. It is then removed from the layout by setting its position as absolute so it does not push the forms down the page. Also need to remove the H2…

Read More

WP-Eccommerce Get Purchase Log Data

To retrieve the purchase log data to extract customer email for example use this within the function: global $wpdb; //This grabs the purchase log id from the database that refers to the $sessionid $purchase_log = $wpdb->get_row( “SELECT * FROM `”.WPSC_TABLE_PURCHASE_LOGS.”` WHERE `sessionid`= “.$sessionid.” LIMIT 1″ ,ARRAY_A) ; //This grabs the users info using the $purchase_log…

Read More

WP-Ecommerce $item array keys

[purchase_id] [cart_item] –[id] –[prodid] –[name] –[purchaseid] –[price] –[pnp] –[tax_charged] –[gst] –[quantity] –[donation] –[no_shipping] –[custom_message] –[files] –[meta] [purchase_log] –[id] –[totalprice] –[statusno] –[sessionid] –[transactid] –[authcode] –[processed] –[user_ID] –[date] –[gateway] –[billing_country] –[shipping_country] –[base_shipping] –[email_sent] –[stock_adjusted] –[discount_value] –[discount_data] –[track_id] –[billing_region] –[shipping_region] –[find_us] –[engravetext] –[shipping_method] –[shipping_option] –[affiliate_id] –[plugin_version] –[notes] –[wpec_taxes_total] –[wpec_taxes_rate]

Read More

Wp Ecommerce Editor Role View Sales Logs

By default only Admin can view logs. This is hard coded. In wp-e-commerce/wpsc-admin/admin.php edit line 147 replace “administrator”  with ‘7’ $purchase_logs_cap = apply_filters( ‘wpsc_purchase_logs_cap’, ‘administrator’ ); 10 is admin access, 7 is editor access

Read More