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

#   BUTTON to product in article

##

- **[Remko](/forum/user/7328-remko "View Remko's Profile")**
- [![Remko's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7328.jpg)](/forum/user/7328-remko "View Remko's Profile") Topic Author
- [ Offline](/forum/user/7328-remko)
- Like HikaShop very much

Less More

- Posts: 46
- Thank you received: 0
-
-
-
- [](http://www.edsmusic.nl/)
-

5 years 8 months ago [\#329171](#329171) by [Remko](/forum/user/7328-remko "View Remko's Profile")  *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329171 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")* was created by *[Remko](/forum/user/7328-remko "View Remko's Profile")*

-- url of the page with the problem -- : [ www.edsmusic.nl/newjingle](https://www.edsmusic.nl/newjingle)
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : No error message

To display some information about several products I use the "HikaShop Product TAG insertion"-plugin. When a product had variants, there is a button "Choose Options" ("Kies opties en bestel!" in my Dutch translation). But when a product has no options, it becomes an "Add to Cart"-button.

Is it possible to make the button always a "link to the product button"? The client has to add some custom text, before it can be added to the cart.

[ ![linktoproductwithnovariants-01.png](/forum/attachment/51855) ](/forum/attachment/51855 "...ariants-01.png")

- [ ![linktoproductwithnovariants-01.png](/forum/attachment/51855) ](/forum/attachment/51855 "...ariants-01.png") [ ](/forum/attachment/51855?download=1 "...ariants-01.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDE4NDItYnV0dG9uLXRvLXByb2R1Y3QtaW4tYXJ0aWNsZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

5 years 8 months ago [\#329202](#329202) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329202 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Hi,

Edit the file add_to_cart_ajax.php via the menu Display&gt;Views and change the line: Code:

$has_options = !empty($this-&gt;row-&gt;has_options) &#124;&#124; (!$display_fields &amp;&amp; $has_required_fields);

to: Code:

$has_options = true;

And it should do that.

The following user(s) said Thank You: [Remko](/forum/user/7328-remko "View Remko's Profile")

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

- **[Remko](/forum/user/7328-remko "View Remko's Profile")**
- [![Remko's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7328.jpg)](/forum/user/7328-remko "View Remko's Profile") Topic Author
- [ Offline](/forum/user/7328-remko)
- Like HikaShop very much

Less More

- Posts: 46
- Thank you received: 0
-
-
-
- [](http://www.edsmusic.nl/)
-

5 years 8 months ago [\#329208](#329208) by [Remko](/forum/user/7328-remko "View Remko's Profile")  Replied by *[Remko](/forum/user/7328-remko "View Remko's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329208 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Thanks! That did the job!

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

- **[Remko](/forum/user/7328-remko "View Remko's Profile")**
- [![Remko's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7328.jpg)](/forum/user/7328-remko "View Remko's Profile") Topic Author
- [ Offline](/forum/user/7328-remko)
- Like HikaShop very much

Less More

- Posts: 46
- Thank you received: 0
-
-
-
- [](http://www.edsmusic.nl/)
-

5 years 8 months ago [\#329690](#329690) by [Remko](/forum/user/7328-remko "View Remko's Profile")  Replied by *[Remko](/forum/user/7328-remko "View Remko's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329690 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Now I have to say "It worked".... It does not work anymore. Since Hikashop 4.4.1 the HikaShop Product TAG insertion does not work properly. It generates an error as you can see at [ www.edsmusic.nl/jingles-test](https://www.edsmusic.nl/jingles-test) .
I can insert the Product insertion by using the button in the editor, but as soon I visit that page, there is an error. When I remove the tag from the article, the error is gone.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDE4NDItYnV0dG9uLXRvLXByb2R1Y3QtaW4tYXJ0aWNsZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

5 years 8 months ago [\#329692](#329692) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329692 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Hi,

I can't access that page. It requires a special access I don't have.
So I can't see the error you're talking about.
Please activate the "debug mode" and "error reporting" settings of the Joomla configuration and access the page with the issue again. Then, please provide a screenshot of all the error information provided (you might have a call stack, etc).

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

- **[Remko](/forum/user/7328-remko "View Remko's Profile")**
- [![Remko's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7328.jpg)](/forum/user/7328-remko "View Remko's Profile") Topic Author
- [ Offline](/forum/user/7328-remko)
- Like HikaShop very much

Less More

- Posts: 46
- Thank you received: 0
-
-
-
- [](http://www.edsmusic.nl/)
-

5 years 8 months ago [\#329694](#329694) by [Remko](/forum/user/7328-remko "View Remko's Profile")  Replied by *[Remko](/forum/user/7328-remko "View Remko's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329694 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Hi,

Is the information below the information you need?

Call to a member function getTemplate() on null
/home/edsmusic/domains/edsmusic.nl/public_html/plugins/system/hikashopproductinsert/hikashopproductinsert.php:378

Call stack
\# Function Location
1 () JROOT/plugins/system/hikashopproductinsert/hikashopproductinsert.php:378
2 plgSystemHikashopproductInsert-&gt;_processProduct() JROOT/plugins/system/hikashopproductinsert/hikashopproductinsert.php:124
3 plgSystemHikashopproductInsert-&gt;onAfterRender() JROOT/libraries/joomla/event/event.php:70
4 JEvent-&gt;update() JROOT/libraries/joomla/event/dispatcher.php:160
5 JEventDispatcher-&gt;trigger() JROOT/libraries/src/Application/BaseApplication.php:108
6 Joomla\CMS\Application\BaseApplication-&gt;triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:1050
7 Joomla\CMS\Application\CMSApplication-&gt;render() JROOT/libraries/src/Application/SiteApplication.php:778
8 Joomla\CMS\Application\SiteApplication-&gt;render() JROOT/libraries/src/Application/CMSApplication.php:202
9 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/index.php:49

Of course I can make a screenshop as well, but with the text above you can copy and paste is you like... ![;-)](/media/kunena/emoticons/14.png ";-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDE4NDItYnV0dG9uLXRvLXByb2R1Y3QtaW4tYXJ0aWNsZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

5 years 8 months ago [\#329706](#329706) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329706 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Hi,

A copy / paste is even better ![:)](/media/kunena/emoticons/8.png ":)")

Thanks for the information. I was able to add a patch for this.
Download the install package of HikaShop 4.4.1 on our website and install it again on yours and it will fix that error which was introduced with the addition of the hkhide / hkshow tag feature.

The following user(s) said Thank You: [Remko](/forum/user/7328-remko "View Remko's Profile")

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

- **[Remko](/forum/user/7328-remko "View Remko's Profile")**
- [![Remko's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7328.jpg)](/forum/user/7328-remko "View Remko's Profile") Topic Author
- [ Offline](/forum/user/7328-remko)
- Like HikaShop very much

Less More

- Posts: 46
- Thank you received: 0
-
-
-
- [](http://www.edsmusic.nl/)
-

5 years 8 months ago [\#329743](#329743) by [Remko](/forum/user/7328-remko "View Remko's Profile")  Replied by *[Remko](/forum/user/7328-remko "View Remko's Profile")* on topic *[BUTTON to product in article](/forum/26-product-category-display/901842-button-to-product-in-article#329743 "-- url of the page with the problem -- :   www.edsmusic.nl/newjingle  -- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.24 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error message  To display some information about several products I use the &quot;HikaShop Product TAG insertion&quot;-plugin. When a product had variants, there is a button &quot;Choose Options&quot; (&quot;Kies opties en bestel!&quot; in my Dutch translation). But when a product has no options, it becomes an &quot;Add to Cart&quot;-button.  Is it possible to make the button always a &quot;link to the product button&quot;? The client has to add some custom text, before it can be added to the cart.")*

Thank you very much! Problem solved... again ![;-)](/media/kunena/emoticons/14.png ";-)")

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

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

[](#top)
