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

#   Two acyba integration questions

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#106786](#106786) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#106786 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

Hi,

I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.

Question 1:

**About showing images in the hikashop\_product.php view template:**

There's a problem with your suggested code (suggested by Adrien from Acyba):

&lt;?php $image = hikashop_get('helper.image'); echo $image-&gt;display($product-&gt;file_path,false,$product-&gt;product_name); ?&gt;

It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.

Question 2:

**Also about showing images in the hikashop\_product.php view template:**

I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.

This is the code I use (suggested by Adrien from Acyba)

$image = hikashop_get('helper.image');
echo $image-&gt;display($product-&gt;file_path,false,$product-&gt;product_name);

Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.

For the HikaShop rendering views I use this

echo $image-&gt;display($image-&gt;file_path, 'hikashop_main_image', '', '','', 80, '');

but I think is too much to expect this works. Indeed it doesn't work

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMDY2LXR3by1hY3liYS1pbnRlZ3JhdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

13 years 5 months ago [\#106990](#106990) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#106990 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Hi,

1. change the line:
$query = 'SELECT b.*,a.* FROM '.acymailing_table('hikashop_product',false).' as a LEFT JOIN '.acymailing_table('hikashop_file',false).' as b ON a.product_id=b.file_ref_id AND file_type=\'product\' WHERE a.product_id = '.$tag-&gt;id.' LIMIT 1';

to:
$query = 'SELECT b.*,a.* FROM '.acymailing_table('hikashop_product',false).' as a LEFT JOIN '.acymailing_table('hikashop_file',false).' as b ON a.product_id=b.file_ref_id AND file_type=\'product\' WHERE a.product_id = '.$tag-&gt;id.' ORDER BY b.file_ordering ASC, b.file_id ASC LIMIT 1';

in the file plugins/acymailing/hikashop/hikashop.php and that should fix the problem.

2. Your code is not correct. It should be:
$image = hikashop_get('helper.image');
echo $image-&gt;display($product-&gt;file_path,false,$product-&gt;product_name, '' , '' ,100,200);

where 100 is the width and 200 the height (that's just an example).

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#107006](#107006) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107006 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Big thank you!

I'll be back yo you with the result!

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#107359](#107359) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107359 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

The code provided for you wirked fine, but I have two doubts about it:

1. For this code:

$image = hikashop_get('helper.image');
echo $image-&gt;display($product-&gt;file_path,false,$product-&gt;product_name, '' , '' ,100,200);

100 and 200 are rluing width and height, but which one prevails in case of non proportionality? My pictures don't have this ratio and the rendered result is neither 100 nor 200 for width or height.

2. Could you suggest me the code to make the image link to the product view in the website?

For example my product view url root is "index.php/catalogo-de-carretillas/producto/product_alias_here

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMDY2LXR3by1hY3liYS1pbnRlZ3JhdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) 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)
-

13 years 5 months ago [\#107440](#107440) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107440 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Hi,

1. It depends on the dimensions, in your case it should take 100 because it's the lowest value.

2. I think that you can use the code: Code:

$url=JURI::base().'index.php/catalogo-de-carretillas/producto/'.$product-&gt;product_alias;

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#107445](#107445) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107445 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Ok for question 1.

For question 2:

To make the image thumb link to the product, shall I use your code inside the display() function?
Could you give me a clue?
And why don't you give this feature by default? I think is a very basic need? Is there any inconvenience on this practice so you didn't implement the feature?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMDY2LXR3by1hY3liYS1pbnRlZ3JhdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

13 years 5 months ago [\#107505](#107505) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107505 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

What feature ?
There is already a default template for the products display in the plugin so there is no need for you to create yours unless you want to customize the display.
For the image, I don't know what code you have in your template. I guess something like that would be ok: Code:

&lt;a href="&lt;?php echo JURI::base().'index.php/catalogo-de-carretillas/producto/'.$product-&gt;product_alias; ?&gt;"&gt; &lt;?php $image = hikashop_get('helper.image'); echo $image-&gt;display($product-&gt;file_path,false,$product-&gt;product_name, '' , '' ,100,200); ?&gt; &lt;/a&gt;

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#107759](#107759) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107759 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

HI,

I tried the suggested code and effectively links to somewhere, but I get the message that the product is not found.

the link delivered is this:

index.php/catalogo-de-carretillas/producto/?acm=6_26

so I think that maybe product_alias is not working properly, can this be replaced in some way for the product id? or some alternative?

I made several tries ensuring that the product has an alias like this

index.php/catalogo-de-carretillas/producto/lambert?acm=6_26

but is not working also event the product is existing and published.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMDY2LXR3by1hY3liYS1pbnRlZ3JhdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

13 years 5 months ago [\#107878](#107878) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#107878 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Hi,

Yes of course it is not working as that is not a valid product page URL. The product page URLs have both the id and the alias in the URL, unless you're using some third party SEF system which doesn't do like that.

The URL should actually be:
&lt;?php echo JURI::base().'index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;alias; ?&gt;

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#108009](#108009) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#108009 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Sorry for taking so much time in this thread, but I don't get it to work.

I get this error message:

The requested URL /nou_activacions/&lt;br /&gt; &lt;b&gt;Notice&lt;/b&gt;: Undefined property: stdClass::$alias in &lt;b&gt;/Volumes/WebDev/MAMP_files/htdocs/nou_activacions/media/com_acymailing/plugins/hikashop_product.php&lt;/b&gt; on line &lt;b&gt;14&lt;/b&gt;&lt;br /&gt; http://localhost:8888/nou_activacions/index.php was not found on this server.

I tried several settings in the SEO Settings section in the global Confgiuration of joomla with no different result.

This is my piece of code where all this seems to fail. I probably made a very newbie stupidity:

&lt;td width="102px" valign="top"&gt;

&lt;div class="hikashop_acymailing"&gt;
&lt;div class="hikashop_acymailing_image"&gt;

&lt;!-- THIS IS LINE 14 --&gt; &lt;a href="&lt;?php echo JURI::base().'index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid='.$product-&gt;product_id.'&amp;name='.$product-&gt;alias; ?&gt;"&gt;

&lt;?php
$image = hikashop_get('helper.image');
echo $image-&gt;display($product-&gt;file_path,false,$product-&gt;product_name, '' , '' ,100,200);
?&gt;
&lt;/a&gt;

&lt;/div&gt;
&lt;/div&gt;

&lt;/td&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMDY2LXR3by1hY3liYS1pbnRlZ3JhdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) 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: 86541
- Thank you received: 14304
-
-

13 years 5 months ago [\#108020](#108020) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#108020 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

Change alias by product_alias in the code and that will work.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

13 years 5 months ago [\#108055](#108055) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Two acyba integration questions](/forum/2-general-talk-about-hikashop/83066-two-acyba-integration-questions#108055 "Hi,  I posted this questions at Acyba forum but Adrien diverted me to you as he thinks that my questions go beyond his competence on HikaShop.  Question 1:  About showing images in the hikashop&#95;product.php view template:  There's a problem with your suggested code (suggested by Adrien from Acyba):  display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name); ?&gt;  It is not always showing the first image in the array of images for a product. In my case sometimes is showing the last one or some in the middle. I think the code is not using the image array index.  Question 2:  Also about showing images in the hikashop&#95;product.php view template:  I want to change the size for the picture rendered inside the newsletter so I can set the width or height pixels for the image.  This is the code I use (suggested by Adrien from Acyba)  $image = hikashop&#95;get('helper.image'); echo $image-&gt;display($product-&gt;file&#95;path,false,$product-&gt;product&#95;name);  Won't matter it only gets reduced on screen and not directly from the thumb image downloaded, what I want is that it doesn't look so large.  For the HikaShop rendering views I use this  echo $image-&gt;display($image-&gt;file&#95;path, 'hikashop&#95;main&#95;image', '', '','', 80, '');  but I think is too much to expect this works. Indeed it doesn't work")*

GOD DAMN JESUS! It was so obvious!

It has been in front of my nose the whole day and I could not see it!

THANK YOU!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzgzMDY2LXR3by1hY3liYS1pbnRlZ3JhdGlvbi1xdWVzdGlvbnM/dG1wbD1tYXJrZG93bg==) 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.111 seconds

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