- Posts: 223
- Thank you received: 1
google xml help
- plumbingdeals
-
Topic Author
- Offline
Less
More
14 years 10 months ago #30437
by plumbingdeals
google xml help was created by plumbingdeals
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...
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.
14 years 10 months ago #30445
by nicolas
Replied by nicolas on topic Re: google xml help
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
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.
- plumbingdeals
-
Topic Author
- Offline
Less
More
- Posts: 223
- Thank you received: 1
14 years 10 months ago #30456
by plumbingdeals
Replied by plumbingdeals on topic Re: google xml help
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
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.144 seconds