Hi all
Whilst I am by no means a highly proficient programmer, I would like to contribute to this very valuable project.
I have read that there is functionality that the plugin can be further improved with in terms of its ease of use and usefulness in facilitating flexible Adwords PLA/Shopping campaigns. I too would like to see these changes because as a marketer I do require them.
I have slightly amended class-wc-gmcf-xml.php to change:
description: will populate from product description if plugin value is blank (speeds up time)
g:product_type: permit multiple entries (separating values in text field using newline/carriage return)
I hope that these small additions help.
// Basic Product Information.
$item->addChild( 'g:id', get_the_ID(), $ns );
$item->addChild( 'title' )->addCData( sanitize_text_field( get_the_title() ) );
if(strlen($options['description'])==0){
$item->addChild( 'description' )->addCData( sanitize_text_field( get_the_content() ) );
}
else{
$item->addChild( 'description' )->addCData( sanitize_text_field( $options['description'] ) );
}
$item->addChild( 'g:google_product_category', '', $ns )->addCData( sanitize_text_field( $options['category'] ) );
$product_types_list = preg_split('/\r\n|\r|\n/', $options['product_type']);
foreach($product_types_list as $product_type){
if(strlen(trim($product_type))>0){
$item->addChild( 'g:product_type', '', $ns )->addCData( sanitize_text_field( $product_type ) );
}
}
$item->addChild( 'link', get_permalink() );
I will be happy to consider contributing further if my abiities can extend to it!!!
Kind regards
Resh