Shopping Basket


 x 

Cart empty


Log In

Find Us Elsewhere

Forum Search

Keyword

SKU in product title in googlebasexml

  • pabilo50
  • pabilo50's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
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!!

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

More
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:
$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
Time to create page: 0.347 seconds