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

#   Select button for Associated Category doesn't work

##

- **[bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")**
- [![bartuelen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/18336-bartuelen "View bartuelen's Profile") Topic Author
- [ Offline](/forum/user/18336-bartuelen)

Less More

- Posts: 16
- Thank you received: 2
-
-

13 years 6 months ago [\#103179](#103179) by [bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")  *[Select button for Associated Category doesn't work](/forum/3-bug-report/81631-select-button-for-associated-category-doesnt-work#103179 "In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.  Get reference / invalid assignment error according to Firebug.  Looks like something is not correct in the HTML  See attached screenprints.")* was created by *[bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")*

In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.

Get reference / invalid assignment error according to Firebug.

Looks like something is not correct in the HTML

See attached screenprints.

*This attachment is hidden for guests.
Please log in or register to see it.*

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 6 months ago -  13 years 6 months ago [\#103221](#103221) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Select button for Associated Category doesn't work](/forum/3-bug-report/81631-select-button-for-associated-category-doesnt-work#103221 "In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.  Get reference / invalid assignment error according to Firebug.  Looks like something is not correct in the HTML  See attached screenprints.")*

Hi,

Please edit the file "administrator/com_hikashop/helper/popup.php" and replace the code Code:

if(!empty($id)) { if($type == 'button') $html = '&lt;button '.$this-&gt;getAttr($attr,'btn btn-small').' id="'.$id.'" onclick="window.hikashop.openBox(this,\''.$url.'\',true); return false;"&gt;'; else $html = '&lt;a '.$attr.' href="#" id="'.$id.'" onclick="window.hikashop.openBox(this,null,true); return false;"&gt;'; } else {

By this one Code:

if(!empty($id)) { if($type == 'button') { if($dynamicUrl) $html = '&lt;button '.$this-&gt;getAttr($attr,'btn btn-small').' id="'.$id.'" onclick="window.hikashop.openBox(this,'.$url.',true); return false;"&gt;'; else $html = '&lt;button '.$this-&gt;getAttr($attr,'btn btn-small').' id="'.$id.'" onclick="window.hikashop.openBox(this,\''.$url.'\',true); return false;"&gt;'; } else $html = '&lt;a '.$attr.' href="#" id="'.$id.'" onclick="window.hikashop.openBox(this,null,true); return false;"&gt;'; } else {

It will fix the problem.
We will update the HikaShop package with this patch as soon as possible.

Sorry for the inconvenient, my fault.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 6 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

- **[bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")**
- [![bartuelen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/18336-bartuelen "View bartuelen's Profile") Topic Author
- [ Offline](/forum/user/18336-bartuelen)

Less More

- Posts: 16
- Thank you received: 2
-
-

13 years 6 months ago [\#103379](#103379) by [bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")  Replied by *[bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")* on topic *[Select button for Associated Category doesn't work](/forum/3-bug-report/81631-select-button-for-associated-category-doesnt-work#103379 "In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.  Get reference / invalid assignment error according to Firebug.  Looks like something is not correct in the HTML  See attached screenprints.")*

Thanks for the swift response.

Changed the code and it works all right!

Bart

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#103384](#103384) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Select button for Associated Category doesn't work](/forum/3-bug-report/81631-select-button-for-associated-category-doesnt-work#103384 "In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.  Get reference / invalid assignment error according to Firebug.  Looks like something is not correct in the HTML  See attached screenprints.")*

Hi,

We updated the HikaShop package with the fix (I updated my previous post with the latest patch version).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")**
- [![bartuelen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/18336-bartuelen "View bartuelen's Profile") Topic Author
- [ Offline](/forum/user/18336-bartuelen)

Less More

- Posts: 16
- Thank you received: 2
-
-

13 years 5 months ago -  13 years 5 months ago [\#104109](#104109) by [bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")  Replied by *[bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile")* on topic *[Select button for Associated Category doesn't work](/forum/3-bug-report/81631-select-button-for-associated-category-doesnt-work#104109 "In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.  Get reference / invalid assignment error according to Firebug.  Looks like something is not correct in the HTML  See attached screenprints.")*

Hi,

The above code fix repaired the bug.
The issue was that from a menu-item --&gt; Hikashop option screen it was not possible to get the pop-up to select an associate category from.
The fix made the pop-up appear correctly.

BUT...

Now the Add button on the Hikashop product screen doesn't work. It give the same kind of result as the Associate category Select button did before the bugfix.

I changed back the popup.php to the old version before the code fix and the Add button does work well now but the Associate category Select button does not work anymore.

Looks like both button types call the same popup.php but it is only one of both working correctly. Some kind of interference or so?

I can apply the workaround for the time being, but the end-user will not be able to do this tric.

I'm sure you are able to repair this too?![;-)](/media/kunena/emoticons/24.png ";-)")

See also issues:

[ www.hikashop.com/en/forum/3-bug-report/8...category.html#103937](http://www.hikashop.com/en/forum/3-bug-report/81839-cant-add-an-image-or-category.html#103937)

and

[ www.hikashop.com/en/forum/2-general-talk...products.html#103335](http://www.hikashop.com/en/forum/2-general-talk-about-hikashop/81669-cannot-assign-any-categories-to-products.html#103335)

Thanks in advance,

Bart

Last edit: 13 years 5 months ago by [bartuelen](/forum/user/18336-bartuelen "View bartuelen's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 5 months ago [\#104119](#104119) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Select button for Associated Category doesn't work](/forum/3-bug-report/81631-select-button-for-associated-category-doesnt-work#104119 "In the Hikashop menu option the Select button for choosing an Associated category or an Associated module does not work.  Get reference / invalid assignment error according to Firebug.  Looks like something is not correct in the HTML  See attached screenprints.")*

Hi,

I tested the latest HikaShop package (2.1.3) in Joomla 3 and Joomla 2.5, all "Add" button works in the product page.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MTYzMS1zZWxlY3QtYnV0dG9uLWZvci1hc3NvY2lhdGVkLWNhdGVnb3J5LWRvZXNudC13b3JrP3RtcGw9bWFya2Rvd24=) 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.058 seconds

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