- Posts: 12
- Thank you received: 0
Badge icon isn't shown
- htunlinnaung
-
Topic Author
- Offline
Less
More
11 years 10 months ago #181785
by htunlinnaung
Badge icon isn't shown was created by htunlinnaung
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.25
-- Browser(s) name and version -- : Chrome
Hello Hikashop's admins,
I have stuck to show badge icon with News Show Pro GK5 module.
badge icon is show in product detail page but not show in home page using on the news show pro GK5 module.
So how can i do to show badge icon on news show pro GK5 module.
Can check with this URL-> dev2.appvantage.sg/hofs88/
I will appreciate any suggestion or help.
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3.25
-- Browser(s) name and version -- : Chrome
Hello Hikashop's admins,
I have stuck to show badge icon with News Show Pro GK5 module.
badge icon is show in product detail page but not show in home page using on the news show pro GK5 module.
So how can i do to show badge icon on news show pro GK5 module.
Can check with this URL-> dev2.appvantage.sg/hofs88/
I will appreciate any suggestion or help.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181802
by Xavier
Replied by Xavier on topic Badge icon isn't shown
Hi,
The badges are added in our view "product / show_block_img" thanks to the badge class and the function "placeBadges()".
So what can be done is to edit the News Show Pro GK5 module and add code to add the badge, something like:
PS: the code given has not been tested.
The badges are added in our view "product / show_block_img" thanks to the badge class and the function "placeBadges()".
So what can be done is to edit the News Show Pro GK5 module and add code to add the badge, something like:
Code:
$product_id = hikashop_getCID();
$productClass = hikashop_get('class.product');
$badgeClass = hikashop_get('class.badge');
$productClass->getProducts($product_id);
$product = $productClass->products[$product_id];
/* You have to add the following line just after the image tag */
echo $badgeClass->placeBadges($product->images,$product->badges);
PS: the code given has not been tested.
Please Log in or Create an account to join the conversation.
- htunlinnaung
-
Topic Author
- Offline
Less
More
- Posts: 12
- Thank you received: 0
11 years 10 months ago #181965
by htunlinnaung
Replied by htunlinnaung on topic Badge icon isn't shown
Hi Xavier,
I placed your given code into News Show Pro GK5 View under template.
But anything doesn't change, I guess some class of hikashop libraries to import?
Suggest me,where to put your given code.
Hopefully
I placed your given code into News Show Pro GK5 View under template.
But anything doesn't change, I guess some class of hikashop libraries to import?
Suggest me,where to put your given code.
Hopefully
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181982
by Xavier
Replied by Xavier on topic Badge icon isn't shown
Hi,
This kind of modifications require PHP skills.
You can post your request on the commercial jobs section of this forum or ask to a third developer for this modification.
We don't know the code of this module, so we can't give you many more informations.
This kind of modifications require PHP skills.
You can post your request on the commercial jobs section of this forum or ask to a third developer for this modification.
We don't know the code of this module, so we can't give you many more informations.
The following user(s) said Thank You: htunlinnaung
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds