Badge icon isn't shown

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #181785

-- 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.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #181802

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:

$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.

  • Posts: 12
  • Thank you received: 0
10 years 9 months ago #181965

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 :)

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #181982

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. ;)

The following user(s) said Thank You: htunlinnaung

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

Time to create page: 0.055 seconds
Powered by Kunena Forum