Tag Archives: wp e-commerce

WP e-Commerce: Do not visualise meta information in the product pages

Use Chrome inspect on the meta item and identify the class of the div element containing meta values. You can then add a “display: none;” to your style sheet for the class.

In particular you can notice that the div class is custom_meta

<div class=”custom_meta”>
3659614240
</br>
</div>

 

In order to not display the information you can edit the CSS of the template buy adding

div.custom_meta {
display: none;
}

 

WP e-Commerce: Disable Comments in Products

Simple and effective way for disabling the possibility to comment in all the products instead of doing it for each product.

function francesco_disable_wpsc_comments() {
remove_post_type_support( ‘wpsc-product’, ‘comments’ );
}
add_action( ‘init’, ‘francesco_disable_wpsc_comments’ );

 

Add this function in your theme’s function.php file

On Modify the google merchant feed produced by wp-ecommerce

Check if the file “wp-e-commerce/wpsc-includes/productfeed.php” contain the following piece of code:

if ( is_array ( $product_meta ) ) {
foreach ( $product_meta as $meta_key => $meta_value ) {
if ( stripos($meta_key,’g:’) === 0 )
$google_elements[$meta_key] = $meta_value;
}
}Check if the che

if ( is_array ( $product_meta ) ) {

foreach ( $product_meta as $meta_key => $meta_value ) {

if ( stripos($meta_key,’g:’) === 0 )

$google_elements[$meta_key] = $meta_value;

}

}

if the answer is “yes” you can add attributes that start with “g:” in your custom meta and they will be inserted into the feed