RSS Feed no image

  • Posts: 19
  • Thank you received: 4
10 years 9 months ago #138855

Hi All,

I have the following problem with rss feed.
Thre are no pic in the feed. The link in the file
components/com_hikashop/views/product/view.feed.php is incorrect.

Can you tel me where and what i must change.

gundogz.nl/webshop/index.php?option=com_...format=feed&type=rss

Thanks a lot.

Greetings Eduard

Attachments:

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
10 years 9 months ago #139228

Hi,

As far as I can see, the issue is that the folder of the website is added when it should not.
That's usually because of the live_ite parameter of the joomla configuration.php
Can you check what you have in it ? If it's empty can you put the URL of the website? And if it's not, can you try to empty it ?

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

  • Posts: 19
  • Thank you received: 4
10 years 9 months ago #139386

Hello Nicolas,

I found the line in the configuration.php file of joomla.
When i changed te line than the hole site is changed but in the rss feed has no pictures.
I have tried te next difrent lines.

public $live_site = ' www.gundogz.nl ';
public $live_site = ' www.gundogz.nl ';
public $live_site = ' www.gundogz.nl/webshop/ ';

do you have ideas
Greetz Eduard Leeuwestein

Attachments:

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

  • Posts: 82727
  • Thank you received: 13342
  • MODERATOR
10 years 9 months ago #139532

Hi,

It seems that you forgot to add

http://
before the
www.gundogz.nl
URL in that variable.
Can you check on that ?

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

  • Posts: 19
  • Thank you received: 4
10 years 9 months ago #139708

Hello Nicolas,

I try that but, it is not working.
Also the next settings don't work.

public $live_site = ' www.gundogz.nl ';
public $live_site = ' www.gundogz.nl/ ';
public $live_site = ' www.gundogz.nl/webshop .';

Normal is the joomla directory www.gundogz.nl/joomla/

Greetz Eduard Leeuwestein

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
10 years 9 months ago #141063

Hi,

Sorry for the delay.

In the file "components/com_hikashop/product/view.feed.php" please replace

$description = '<table><tr><td>'.$imageHelper->display(@$product->images[0]->file_path,false,$title, '' , '' , $imageHelper->main_thumbnail_x, $imageHelper->main_thumbnail_y).'</td><td>'.$desc.'</td></tr></table>';
By
		$image_options = array('default' => true);
		$img = $imageHelper->getThumbnail(@$product->images[0]->file_path, array('width' => $imageHelper->main_thumbnail_x, 'height' => $imageHelper->main_thumbnail_y), $image_options);
		if(substr($img->url, 0, 3) == '../')
			$image = str_replace('../', HIKASHOP_LIVE, $img->url);
		else
			$image = substr(HIKASHOP_LIVE, 0, strpos(HIKASHOP_LIVE, '/', 9)) . $img->url;

		$description = '<table><tr><td><img src="'.$image.'"/></td><td>'.$desc.'</td></tr></table>';
It should solve your problem. (HikaShop 2.2.0 or newer required).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 19
  • Thank you received: 4
10 years 8 months ago #144870

Hi Jerome,

I made the change in the file, buth it don't work.

The output is the same, only text in the feed and no picture

<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Joomla! - Open Source Content Management" -->
<?xml-stylesheet href="/webshop/media/com_hikashop/css/frontend_default.css?v=223" type="text/css"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>www.gundogz.nl - Artikelen</title>
		<description><![CDATA[Overzicht artikelen]]></description>
		<link>http://gundogz.nl</link>
		<lastBuildDate>Wed, 19 Feb 2014 19:17:29 +0000</lastBuildDate>
		<generator>Joomla! - Open Source Content Management</generator>
		<atom:link rel="self" type="application/rss+xml" href="http://gundogz.nl/webshop/index.php/component/hikashop/category/lang-en/type-rss?Itemid=90&amp;format=feed"/>
		<language>nl-nl</language>
		<item>
			<title>Fazanten Vel</title>
			<link>http://gundogz.nl/webshop/index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid=39&amp;name=fazanten-vel&amp;Itemid=90&amp;category_pathway=42</link>
			<guid isPermaLink="true">http://gundogz.nl/webshop/index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid=39&amp;name=fazanten-vel&amp;Itemid=90&amp;category_pathway=42</guid>
			<description><![CDATA[<table><tr><td><[color=#884488]img src="http://gundogz.nl/webshop//webshop/media/com_hikashop/upload/thumbnail_120x160/pp_only_editsmall.jpg" alt="Fazanten Vel" title="Fazanten Vel"  /></td><td><p>Dit fazantenvel kan gebruikt [/color]worden bij het trainen met een canvas dummy. Om de hond te laten wennen aan het gevoel om fazanten veren in zijn bek te hebben. Dit vel kan met behulp van de zwarte elastieken vast worden gezet om de canvas dummy. Dit vel is voorzien van een losse staart en 2 zwarte elastieken. Het vel kan ook in vochtige omstandigheden gebruikt worden. Advies na gebruik direct te drogen hangen. Op deze wijze kan het vel vele malen gebruikt worden.</p>Prijs : 16,70 €</td></tr></table>]]></description>
			<category>42</category>
			<pubDate>Mon, 17 Feb 2014 20:25:50 +0000</pubDate>
		</item>
	</channel>
</rss>

Last edit: 10 years 8 months ago by Jerome. Reason: code is nice

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
10 years 8 months ago #145228

Hi,

The image path starts with " gundogz.nl/webshop//webshop/ ". There are two time "webshop".
Could you please try to change the live site ?
During my test, for the development of the patch, I make this RSS feed works and my live_site web empty.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum