Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

SKU in product title in googlebasexml

  • pabilo50
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 years 10 months ago #3774 by pabilo50
SKU in product title in googlebasexml was created by pabilo50
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
2 years 10 months ago #3776 by boggler
Replied by boggler on 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.150 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.