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

#   Contact form with extra fields issue

##

- **[almika](/forum/user/15732-almika "View almika's Profile")**
- [![almika's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15732.png)](/forum/user/15732-almika "View almika's Profile") Topic Author
- [ Offline](/forum/user/15732-almika)

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

8 years 2 months ago [\#297250](#297250) by [almika](/forum/user/15732-almika "View almika's Profile")  *[Contact form with extra fields issue](/forum/3-bug-report/895596-contact-form-with-extra-fields-issue#297250 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  Hi!  There is a feedback page on my site. If it has extra fields (the type of 'contact') I get an empty h1 on this page. If I unpublish these extra fields, then I get my title in the h1.  The problem is the variable ($this-&gt;product) in the view com&#95;hikashop&#92;product&#92;contact.php  $this-&gt;product is not empty in my case with extra fields and (!empty($this-&gt;product)) is true. So I get not only an empty h1, but  on my feedback page yet.  Best regards,")* was created by *[almika](/forum/user/15732-almika "View almika's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11

Hi!

There is a feedback page on my site.
If it has extra fields (the type of 'contact') I get an empty h1 on this page.
If I unpublish these extra fields, then I get my title in the h1.

The problem is the variable ($this-&gt;product) in the view com_hikashop\product\contact.php Code:

&lt;h1&gt;&lt;?php if(!empty($this-&gt;product)) { $doc = JFactory::getDocument(); $doc-&gt;setMetaData( 'robots', 'noindex' ); if(!empty($this-&gt;product-&gt;images)) { $image = reset($this-&gt;product-&gt;images); $img = $this-&gt;imageHelper-&gt;getThumbnail($image-&gt;file_path, array(50,50), array('default' =&gt; true), true); if($img-&gt;success) { echo '&lt;img src="'.$img-&gt;url.'" alt="" style="vertical-align:middle"/&gt; '; } } echo @$this-&gt;product-&gt;product_name; } else { echo @$this-&gt;title; } ?&gt;&lt;/h1&gt;

$this-&gt;product is not empty in my case with extra fields and (!empty($this-&gt;product)) is true.
So I get not only an empty h1, but &lt;meta name="robots" content="noindex" /&gt; on my feedback page yet.

Best regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTU1OTYtY29udGFjdC1mb3JtLXdpdGgtZXh0cmEtZmllbGRzLWlzc3VlP3RtcGw9bWFya2Rvd24=) 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: 86564
- Thank you received: 14311
-
-

8 years 2 months ago [\#297259](#297259) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Contact form with extra fields issue](/forum/3-bug-report/895596-contact-form-with-extra-fields-issue#297259 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  Hi!  There is a feedback page on my site. If it has extra fields (the type of 'contact') I get an empty h1 on this page. If I unpublish these extra fields, then I get my title in the h1.  The problem is the variable ($this-&gt;product) in the view com&#95;hikashop&#92;product&#92;contact.php  $this-&gt;product is not empty in my case with extra fields and (!empty($this-&gt;product)) is true. So I get not only an empty h1, but  on my feedback page yet.  Best regards,")*

Hi,

Thank you for your feedback. Indeed there is a problem here.
I've made a few patches regarding the display of the title as I found other issues while testing.
So I've generated a new install package with the different patches so that you can easily get them. Download the install package on our website and install it on yours and you'll get them.
Note that if you've made a view override of the "contact" view file, you'll have to remove it and reapply your changes to the new version.

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

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

- **[almika](/forum/user/15732-almika "View almika's Profile")**
- [![almika's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15732.png)](/forum/user/15732-almika "View almika's Profile") Topic Author
- [ Offline](/forum/user/15732-almika)

Less More

- Posts: 382
- Thank you received: 77
-
-
-
-

8 years 2 months ago -  8 years 2 months ago [\#297278](#297278) by [almika](/forum/user/15732-almika "View almika's Profile")  Replied by *[almika](/forum/user/15732-almika "View almika's Profile")* on topic *[Contact form with extra fields issue](/forum/3-bug-report/895596-contact-form-with-extra-fields-issue#297278 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  Hi!  There is a feedback page on my site. If it has extra fields (the type of 'contact') I get an empty h1 on this page. If I unpublish these extra fields, then I get my title in the h1.  The problem is the variable ($this-&gt;product) in the view com&#95;hikashop&#92;product&#92;contact.php  $this-&gt;product is not empty in my case with extra fields and (!empty($this-&gt;product)) is true. So I get not only an empty h1, but  on my feedback page yet.  Best regards,")*

Thanks, Nicolas!
Best regards,

Last edit: 8 years 2 months ago by [almika](/forum/user/15732-almika "View almika's Profile"). Reason: Solved

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

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