Tag Archives: products

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