[Skip to main content](#vessel-content)

#   Disable clic on badge

##

- **[melisari](/forum/user/9503-melisari "View melisari's Profile")**
- [![melisari's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/origami.png)](/forum/user/9503-melisari "View melisari's Profile") Topic Author
- [ Offline](/forum/user/9503-melisari)

Less More

- Posts: 103
- Thank you received: 2
-
-

9 years 6 months ago [\#270127](#270127) by [melisari](/forum/user/9503-melisari "View melisari's Profile")  *[Disable clic on badge](/forum/26-product-category-display/890364-disable-clic-on-badge#270127 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7 -- Browser(s) name and version -- : chrome  i would like to avoid the click event in the badge, it is possible? thank you!")* was created by *[melisari](/forum/user/9503-melisari "View melisari's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7
-- Browser(s) name and version -- : chrome

i would like to avoid the click event in the badge, it is possible? thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNjQtZGlzYWJsZS1jbGljLW9uLWJhZGdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

9 years 6 months ago [\#270142](#270142) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Disable clic on badge](/forum/26-product-category-display/890364-disable-clic-on-badge#270142 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7 -- Browser(s) name and version -- : chrome  i would like to avoid the click event in the badge, it is possible? thank you!")*

Hi,

There is no option for that.
It's done on purpose since normally the badge is on top of the product image and you want the popup to open with the full size image even if you click on the badge.
So you'll have to edit the file "show_block_img" via the menu Display&gt;Views and change the code: Code:

if(!empty($this-&gt;element-&gt;badges)) $html .= $this-&gt;classbadge-&gt;placeBadges($this-&gt;image, $this-&gt;element-&gt;badges, '0', '0',false); $attr = 'title="'.$this-&gt;escape(@$image-&gt;file_description).'"'; if (!empty ($this-&gt;element-&gt;images) &amp;&amp; count($this-&gt;element-&gt;images) &gt; 1) $attr .= ' onclick="return window.localPage.openImage(\'hikashop_main_image'.$variant_name.'\', \''.$variant_name.'\', event);"'; echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, null, $attr);

to:
Code:

$attr = 'title="'.$this-&gt;escape(@$image-&gt;file_description).'"'; if (!empty ($this-&gt;element-&gt;images) &amp;&amp; count($this-&gt;element-&gt;images) &gt; 1) $attr .= ' onclick="return window.localPage.openImage(\'hikashop_main_image'.$variant_name.'\', \''.$variant_name.'\', event);"'; echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, null, $attr); if(!empty($this-&gt;element-&gt;badges)) echo $this-&gt;classbadge-&gt;placeBadges($this-&gt;image, $this-&gt;element-&gt;badges, '0', '0',false);

The following user(s) said Thank You: [melisari](/forum/user/9503-melisari "View melisari's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNjQtZGlzYWJsZS1jbGljLW9uLWJhZGdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[melisari](/forum/user/9503-melisari "View melisari's Profile")**
- [![melisari's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/origami.png)](/forum/user/9503-melisari "View melisari's Profile") Topic Author
- [ Offline](/forum/user/9503-melisari)

Less More

- Posts: 103
- Thank you received: 2
-
-

9 years 6 months ago [\#270200](#270200) by [melisari](/forum/user/9503-melisari "View melisari's Profile")  Replied by *[melisari](/forum/user/9503-melisari "View melisari's Profile")* on topic *[Disable clic on badge](/forum/26-product-category-display/890364-disable-clic-on-badge#270200 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.2 -- PHP version -- : 7 -- Browser(s) name and version -- : chrome  i would like to avoid the click event in the badge, it is possible? thank you!")*

Worked like charm! Thank you so much!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTAzNjQtZGlzYWJsZS1jbGljLW9uLWJhZGdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.042 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
