hikashop image thumbnail maker class needed

  • Posts: 6
  • Thank you received: 0
7 years 6 months ago #251919

hi , we need hikashop image thumbnail maker class for my plugin .
what file must included in my hikashop plugin and what class i must use?

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 6 months ago #251921

Hi,

If the HikaShop core is loaded, you just have to get the image helper $imageHelper = hikashop_get('helper.image'); [code]Then you will be able to call the function getThumbnail to generate the thumbnail (you can see how the function is used in the view "product / show_block_img"). Regards,[code]
$imageHelper = hikashop_get('helper.image');
Then you will be able to call the function getThumbnail to generate the thumbnail (you can see how the function is used in the view "product / show_block_img"). Regards,[code]Then you will be able to call the function getThumbnail to generate the thumbnail (you can see how the function is used in the view "product / show_block_img").

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.
The following user(s) said Thank You: HyperTemp

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

  • Posts: 6
  • Thank you received: 0
7 years 6 months ago #252022

thanks , solved . and which class create product link dynamically as SERP?

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

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
7 years 6 months ago #252032

Hi,

We do this with such code:

$link = hikashop_contentLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway,$this->row);
where $this->row is the data of the product and $this->itemid a string with the text "&Itemid=XXX" where XXX is the id of a products/categories listing menu item
$this->category_pathway can be left empty.

The following user(s) said Thank You: HyperTemp

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

  • Posts: 6
  • Thank you received: 0
7 years 6 months ago #252570

thanks my friend solved .

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

Time to create page: 0.064 seconds
Powered by Kunena Forum