Skip to main content

hikashop image thumbnail maker class needed

More
10 years 2 weeks ago #251919 by HyperTemp
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.

More
10 years 2 weeks ago #251921 by Jerome
Hi,

If the HikaShop core is loaded, you just have to get the image helper[code]
$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,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: HyperTemp

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

More
10 years 2 weeks ago #252022 by HyperTemp
thanks , solved . and which class create product link dynamically as SERP?

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

More
10 years 2 weeks ago #252032 by nicolas
Hi,

We do this with such code:
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.

More
10 years 1 week ago #252570 by HyperTemp
thanks my friend solved .

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

Time to create page: 0.172 seconds
Powered by Kunena Forum