google xml help

  • Posts: 223
  • Thank you received: 1
13 years 1 week ago #30437

we carry more than one brand of product on our site.

is there any way to include the brand name by product code for example?

obviously in the box "brand" if we put "brand a", this will apply to all products, whether a or b or c......

thanks...

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30445

There is no option for that.
You would have to create a custom product field (commercial editions) to enter the brand for your products and then change the code:
if(!empty($plugin->params)){
$xml.="\t".'<brand><![CDATA[ '.$plugin->params['brand'].' ]]></brand>'."\n";
}

to:
if(!empty($plugin->params)){
$xml.="\t".'<brand><![CDATA[ '.$product->CUSTOM_FIELD_COLUMN_NAME.' ]]></brand>'."\n";
}

where CUSTOM_FIELD_COLUMN_NAME is the column name of your custom field, in the file plugins/hikashop/google_products.php

Please Log in or Create an account to join the conversation.

  • Posts: 223
  • Thank you received: 1
13 years 1 week ago #30456

ok...
i might give this a go in the test store, not the live one just yet

i will let you know how it works!

as usual, great support! Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum