Forum Search
- Forum
- Support Questions
- Virtuemart Extensions Support Questions
- SKU in product title in googlebasexml
SKU in product title in googlebasexml
- pabilo50
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 1
- Thank you received: 0
5 months 2 weeks ago #3774
by pabilo50
pabilo50 created the topic: SKU in product title in googlebasexml
Hi,
How can i add the sku and the product category to the title?
Is there any option to do it for all products and not mapping them one by one?
Thanks a lot!!
How can i add the sku and the product category to the title?
Is there any option to do it for all products and not mapping them one by one?
Thanks a lot!!
Please Log in or Create an account to join the conversation.
- boggler
- Offline
- Moderator
Less
More
- Posts: 1145
- Karma: 18
- Thank you received: 132
5 months 2 weeks ago #3776
by boggler
boggler replied the topic: SKU in product title in googlebasexml
If you want to tweak the code then edit the file site/views/googlebasexml/view.xml.php, line 95:
for example you can set this to
But I don't see why you need to add these to the title, both of these are already included in the feed. You can use the SKU as the product id in the feed, and the category is already included as the "product_type", so it seems unnecessary.
$productTitle->setData($item->title);
for example you can set this to
$productTitle->setData($item->product_type.' '.$item->sku.' '.$item->title);
But I don't see why you need to add these to the title, both of these are already included in the feed. You can use the SKU as the product id in the feed, and the category is already included as the "product_type", so it seems unnecessary.
Please Log in or Create an account to join the conversation.
Moderators: boggler
- Forum
- Support Questions
- Virtuemart Extensions Support Questions
- SKU in product title in googlebasexml
Time to create page: 0.347 seconds