How can i set size for container of image ?

  • Posts: 14
  • Thank you received: 0
10 years 11 months ago #170953

-- HikaShop version -- : 2.3.2.
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : FF 31
-- Error-message(debug-mod must be tuned on) -- : How can I set height and with of the box of the image of a product listing(listing-table.php)?

I want to set the height and width of the containers in which the image for a product listing is contained in!
I know you can set this in menupad [confguration, main, image]
However that didn't change the size in the html




I have looked in the view of this product listing(tbale) and i look how this is controlled. I notice there are two settings you can controle this.
First $this->config->get('thumbnail_y') and $this->config->get('thumbnail_x') . These settings can be found in the aboved described menupath.

Secendly i saw these two variables:
this->params->get('image_height');
this->params->get('image_width);

In case these are set the variables $this->config->get('thumbnail_y') and $this->config->get('thumbnail_x') are overules.

Where can i set the values for :
this->params->get('image_height');
this->params->get('image_width);

How can I set height and with of the box of the image of a product listing(listing-table.php)?

I want to set the height and width of the containers in which the image for a product listing is contained in!
I know you can set this in menupad [confguration, main, image]
However that didn't change the size in the html

<div class="hikashop_product_image_subdiv" style="position:relative;text-align:center;clear:both;width:190px;margin: auto;"> <a title="Set van 7 3B BONElike ™ halswervels" href="/anatomie/index.php/3b-bonelike/product/1752-set-van-7-3b-bonelike-halswervels">
<img src="/anatomie/media/com_hikashop/upload/thumbnails/190x190f/1000021_base_anatomie.jpg" alt="" title=""lass="hikashop_product_listing_image"> </a></div>

I have looked in the view of this product listing(tbale) and i look how this is controlled. I notice there are two settings you can controle this.
First $this->config->get('thumbnail_y') and $this->config->get('thumbnail_x') . These settings can be found in the aboved described menupath.

Secendly i saw these two variables:
this->params->get('image_height');
this->params->get('image_width);

In case these are set the variables $this->config->get('thumbnail_y') and $this->config->get('thumbnail_x') are overules.

Where can i set the values for :
this->params->get('image_height');
this->params->get('image_width);

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

  • Posts: 12953
  • Thank you received: 1778
10 years 11 months ago #170959

Hello,
Did you tried to use the options of the "Image" tab of the "Hikashop->System->Configuration->Main" page or of the "Parameters for DIV" tab of the configuration page of your product listing content menu/module ?

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

  • Posts: 14
  • Thank you received: 0
10 years 11 months ago #171137

Thank you very much with your quick reply.
I can't find this "Parameters for DIV" tab of the configuration page.
Could you explain how to get to this setting.

Many thanks in advance.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #171138

Hi,

Via the HikaShop menu Display > Content modules or Display > Content menus, you can edit the settings of your menu/modules.
When editing a menu/module, you can see the part "Parameters for DIV" and in this part, you can change the image size values.

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

  • Posts: 14
  • Thank you received: 0
10 years 11 months ago #171232

Yes, I found it!
Thank you very much.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum