- Posts: 6
- Thank you received: 0
hikashop image thumbnail maker class needed
10 years 2 weeks ago #251919
by HyperTemp
hikashop image thumbnail maker class needed was created 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?
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.
10 years 2 weeks ago #251921
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic hikashop image thumbnail maker class needed
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,
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.
10 years 2 weeks ago #252022
by HyperTemp
Replied by HyperTemp on topic hikashop image thumbnail maker class needed
thanks , solved . and which class create product link dynamically as SERP?
Please Log in or Create an account to join the conversation.
10 years 2 weeks ago #252032
by nicolas
Replied by nicolas on topic hikashop image thumbnail maker class needed
Hi,
We do this with such code:
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.
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);
$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.
10 years 1 week ago #252570
by HyperTemp
Replied by HyperTemp on topic hikashop image thumbnail maker class needed
thanks my friend solved .
Please Log in or Create an account to join the conversation.
Time to create page: 0.172 seconds