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

#   Link from an Ad Module to a Product page

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5032](#5032) by [dglillie](/forum/user/447-dglillie "View dglillie's Profile")  *[Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5032 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")* was created by *[dglillie](/forum/user/447-dglillie "View dglillie's Profile")*

I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the Ad module. After saving the new menu item, I then copied the menu link, and then pasted this link into the link URL in the Ad module. I have done this when linking one Joomla article to another with great success. However, when I tested the link from my Ad module to the Hikashop product page, I got a fatal error, Fatal error: Call to a member function set() on a non-object[file path]/com_hikashop/product/show.php on line 178.

I would appreciate your thoughts on this problem.

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

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 9 months ago [\#5041](#5041) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5041 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

Hi,

We couldn't find a call to a set function on line 178 of the file show.php which probably means that you use an old version of HikaShop. Could you update to the latest version and try again ?

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5139](#5139) by [dglillie](/forum/user/447-dglillie "View dglillie's Profile")  Replied by *[dglillie](/forum/user/447-dglillie "View dglillie's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5139 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

I updated to Hikashop Business, version 1.4.3 and I still get the same error as before:

Fatal error: Call to a member function set() on a non-object in /data/24/2/33/1/2196327/user/2411935/htdocs/joomla1/templates/js_onyx/html/com_hikashop/product/show.php on line 178

I re-pasted the link to the hidden menu for my Hikashop product page.

What should I do next?

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

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 9 months ago [\#5149](#5149) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5149 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

Go in the Menu Display-&gt;Views and search for the file show of the view product. you will have a button to remove your customization file.
That will allow the system to use the default core file and should fix the problem.

However you will loose the customization you did to the file so you will have to do it again.

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5177](#5177) by [dglillie](/forum/user/447-dglillie "View dglillie's Profile")  Replied by *[dglillie](/forum/user/447-dglillie "View dglillie's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5177 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

I removed the file customization as you suggested and re-applied my link. I no longer get the error message, but I now get directed to a blank page. I also tried making a link from an article to the product page and it goes to a blank page. In my browser's address window I see the address for the link that I wanted, but the page is blank.

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

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 9 months ago [\#5178](#5178) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5178 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

We need an error message to help you.

Is the page totally blank ? Or do you still see something and just the center area of your template is blank ?

Do you have SEF activated ?

Could you try to activate the joomla debug mode ?

What is the link which displays a blank page ? Could you copy/paste it here ?

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5185](#5185) by [dglillie](/forum/user/447-dglillie "View dglillie's Profile")  Replied by *[dglillie](/forum/user/447-dglillie "View dglillie's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5185 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

The link brings up the page template, but the center of the page is blank where the product information should be displayed.

Yes, I have SEF activated as follows:

Search Engine Friendly URLs: Yes
Use Apache mod_write: Yes
Add Suffix to URLs: Yes

I hope this is not a problem because my intention is to have search friendly URLs to improve our site's SEO. In fact, we have purchased a plugin from Artio called JoomSEF that we hope to use to improve our SEO. This plugin is NOT currently enabled.

The link that is displayed is: /joomla1/component/hikashop/product/show.html.

When I add this product page to an existing menu,it works. the page displayed from the link from the existing menu is the same as the link that is displayed from the link from the article page and from the ad module. In either case, the links do not include the product's ID.

I'll report back on the joomla bug mode.

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

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 9 months ago [\#5186](#5186) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5186 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

Ok. Now I think I understand the problem:

When you use a menu, the link indeed doesn't contain the product id, but the product id is retrieved from the menu options, so the system is able to display the product.

When you copy/paste that link, if you remove the menu, the product id information linked to that menu is lost and the system isn't able to display any product.
In such cases, it should display an error message. But maybe your template doesn't have the jdoc include tag for messages ? [ www.hikashop.com/en/support/documentatio...tibility-issues.html](http://www.hikashop.com/en/support/documentation/61-hikashop-compatibility-issues.html)

The solution is to keep the menu published where you set your product and to set it to a main menu which is not displayed on your front end.

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5192](#5192) by [dglillie](/forum/user/447-dglillie "View dglillie's Profile")  Replied by *[dglillie](/forum/user/447-dglillie "View dglillie's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5192 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

Okay, I followed your instructions and the product page still did not display.

However, I was finally able to solve my problem with the help of the following artice from joomla, "How to Control Module Display When Linking to an Article with no Menu Item". You can find it here: [ docs.joomla.org/How\_to\_control\_module\_di...le\_with\_no\_menu\_item](http://docs.joomla.org/How_to_control_module_display_when_linking_to_an_article_with_no_menu_item)

I copied my menu link as before, and pasted it into the link from my module. Then I manually edited the menu link that I pasted and added the following:

&amp;Itemid=200 (200 is the ID of menu item)

The full link thus became: index.php?option=com_hikashop&amp;view=product&amp;layout=show&amp;Itemid=200

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 9 months ago [\#5219](#5219) by [dglillie](/forum/user/447-dglillie "View dglillie's Profile")  Replied by *[dglillie](/forum/user/447-dglillie "View dglillie's Profile")* on topic *[Re: Link from an Ad Module to a Product page](/forum/4-how-to/5032-link-from-an-ad-module-to-a-product-page#5219 "I want to link from an Ad module that I created to a product page. To do this, I created a hidden menu and then selected a new menu item that links to the product page that I want to link to from the...")*

I also want to thank you for pointing out that the template that I'm using is missing the jdoc include tag for messages. I contacted the company that made my template and they confirmed that they had inadvertently left out the message tag. I edited my template as they instructed, and my message template now works! It now displays error messages as you designed into Hikashop.

Again, thank you!

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

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