[Skip to main content](#vessel-content)

#   RSS Feed Customisation

##

- **[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")**
- [![jacorr27's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/626-jacorr27 "View jacorr27's Profile") Topic Author
- [ Offline](/forum/user/626-jacorr27)

Less More

- Posts: 136
- Thank you received: 1
-
-

12 years 1 month ago [\#174053](#174053) by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")  *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174053 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")* was created by *[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome

Hi Guys,

I need to modify my RSS feed.

What I need to add are the following tags for each item/product.
tag - comment
company - the business name - product custom field
companyAddress - the business address - product custom field
sold - qty of items sold for a product
location - business location - product custom field
value - retail price
percentage - discount price - custom field
offer - meta description
image - image file location url
url - product page SEF URL (alias)
end time - Product available until

Can anyone give me some tips here. e,g,
- which php file to modify for the feed
- how to get the custom fields for a product
- how to get the image file url location
- how to get the Product available until field.

Really appreciate any assistance on how to edit this!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#174081](#174081) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174081 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")*

Hi,

You have to edit the file "components/com_hikashop/views/product/view.feed.php".
The custom fields of a product are stored in the product table so present in the product variable ($row in the foreach).

The image file url is already get in the file, and the "until" field is too a value stored in the product variable.

The following user(s) said Thank You: [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")**
- [![jacorr27's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/626-jacorr27 "View jacorr27's Profile") Topic Author
- [ Offline](/forum/user/626-jacorr27)

Less More

- Posts: 136
- Thank you received: 1
-
-

12 years 1 month ago [\#174503](#174503) by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")  Replied by *[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")* on topic *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174503 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")*

Hi Xavier,

I added the following to the view feed.

$descr = $this-&gt;escape( $product-&gt;product_meta_description );
$descr = html_entity_decode( $descr );

$company = $this-&gt;escape( $product-&gt;merchant_name );
$company = html_entity_decode( $company );

$companyAddress = $this-&gt;escape( $product-&gt;addressline1 );
$companyAddress = html_entity_decode( $companyAddress );

$sold = $this-&gt;escape( $product-&gt;product_sales );
$sold = html_entity_decode( $sold );

$location = $this-&gt;escape( $product-&gt;deal_location );
$location = html_entity_decode( $location );

$value = $this-&gt;escape( $product-&gt;product_msrp );
$value = html_entity_decode( $value );

$percentage = $this-&gt;escape( $product-&gt;discount_percentage );
$percentage = html_entity_decode( $percentage );

$offer = $this-&gt;escape( $product-&gt;deal_price );
$offer = html_entity_decode( $offer );

$image = $this-&gt;escape( $product-&gt;image );
$image = html_entity_decode( $image );

$url = $link;

$end = $this-&gt;escape( $product-&gt;product_name );
$end = html_entity_decode( $end );

$item = new JFeedItem();
$item-&gt;title = $title;
$item-&gt;description = $descr;
$item-&gt;company = $company;
$item-&gt;companyAddress = $companyAddress;
$item-&gt;sold = $sold;
$item-&gt;location = $location;
$item-&gt;value = $value;
$item-&gt;percentage = $percentage;
$item-&gt;offer = $offer;
$item-&gt;image = $image;
$item-&gt;end = $end;

$doc-&gt;addItem( $item );

All I get is a blank item.

Can you give me any help here on how to fix this?

Is there a model that needs to be modified?

Much appreciated!

Thanks,
Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")**
- [![jacorr27's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/626-jacorr27 "View jacorr27's Profile") Topic Author
- [ Offline](/forum/user/626-jacorr27)

Less More

- Posts: 136
- Thank you received: 1
-
-

12 years 1 month ago -  12 years 1 month ago [\#174614](#174614) by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")  Replied by *[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")* on topic *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174614 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")*

Hi Xavier,

Any chance you could help me out here?

Appreciate the help as this is a critical change for my business! ![:)](/media/kunena/emoticons/3.png ":)")

Thanks,
Mike

Last edit: 12 years 1 month ago by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

12 years 1 month ago [\#174895](#174895) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174895 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")*

Hi,

I'm not sure how adding fields like that to your RSS feed are critical to your business since such extra fields do not exist in the RSS specification and thus won't be understood by any RSS reader:
[ cyber.law.harvard.edu/rss/rss.html](http://cyber.law.harvard.edu/rss/rss.html)
It's technically possible to add such fields in a RSS feed but RSS readers won't read them so there is no point.
And since it's not something standard, the Joomla feed system doesn't support that either, so before adding extra fields like that in HikaShop, you would first have to modify the Joomla feed system in order to support them.

In short, I don't see the point and I don't recommend such modifications.
If you want to add extra data to the RSS, then simply append it to the description of the $item object like that:

$item-&gt;description = $description.'&lt;br/&gt;Company:'.$company;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")**
- [![jacorr27's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/626-jacorr27 "View jacorr27's Profile") Topic Author
- [ Offline](/forum/user/626-jacorr27)

Less More

- Posts: 136
- Thank you received: 1
-
-

12 years 1 month ago [\#174906](#174906) by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")  Replied by *[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")* on topic *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174906 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")*

HI Nicolas,

Yes it isn't standard.

The feed is being amended for the purpose of being used by my partners which require this specification for the feed.

The reason being, is they have many other partners which all have this spec and it is utilised to further promote my products in my site.

It is critical for my business as this is around 40% of my traffic driver and has high conversion rates.

The example you provided would not work as the tags are specific.

Thanks anyway for the help!!! I have a developer sorting this all out for me now and will have a custom RSS feed for this purpose by tomorrow ![:)](/media/kunena/emoticons/3.png ":)")

Cheers,
Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

12 years 1 month ago [\#174968](#174968) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[RSS Feed Customisation](/forum/31-development/872040-rss-feed-customisation#174968 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi Guys,  I need to modify my RSS feed.  What I need to add are the following tags for each item/product. tag - comment company - the business name - product custom field companyAddress - the business address - product custom field sold - qty of items sold for a product location - business location - product custom field value - retail price percentage - discount price - custom field offer - meta description image - image file location url url - product page SEF URL (alias) end time - Product available until  Can anyone give me some tips here. e,g, - which php file to modify for the feed - how to get the custom fields for a product - how to get the image file url location - how to get the Product available until field.  Really appreciate any assistance on how to edit this!")*

Hi,

Great then !
Indeed, that's a very specific need ![:)](/media/kunena/emoticons/3.png ":)")
It was a good call to have a developer do that for you as it's not something that can easily be changed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg3MjA0MC1yc3MtZmVlZC1jdXN0b21pc2F0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.059 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
