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

#   show\_tabular.php

##

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

Less More

- Posts: 239
- Thank you received: 8
-
-

7 years 4 months ago [\#308900](#308900) by [Bender](/forum/user/38688-bender "View Bender's Profile")  *[show\_tabular.php](/forum/57-hikashop-3-0-beta/897926-show-tabular-php#308900 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.5 -- PHP version -- : 7  Hi, I want to add code to the product page written in php, which will extract information from the database by product code and display it on the screen. Which file do I need to make changes so that when Hikashop updating my changes are not deleted and at the same time Hikashop doesn’t break? Can I do this directly in show&#95;tabular.php?")* was created by *[Bender](/forum/user/38688-bender "View Bender's Profile")*

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.5
-- PHP version -- : 7

Hi,
I want to add code to the product page written in php, which will extract information from the database by product code and display it on the screen. Which file do I need to make changes so that when Hikashop updating my changes are not deleted and at the same time Hikashop doesn’t break? Can I do this directly in show_tabular.php?

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

7 years 4 months ago [\#308902](#308902) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[show\_tabular.php](/forum/57-hikashop-3-0-beta/897926-show-tabular-php#308902 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.5 -- PHP version -- : 7  Hi, I want to add code to the product page written in php, which will extract information from the database by product code and display it on the screen. Which file do I need to make changes so that when Hikashop updating my changes are not deleted and at the same time Hikashop doesn’t break? Can I do this directly in show&#95;tabular.php?")*

Hi,

If you do your change via the Display&gt;Views menu, as we recommend on the tutorial below, you won't loose your changes when you update:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

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

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

Less More

- Posts: 239
- Thank you received: 8
-
-

6 years 9 months ago -  6 years 9 months ago [\#315134](#315134) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[show\_tabular.php](/forum/57-hikashop-3-0-beta/897926-show-tabular-php#315134 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.5 -- PHP version -- : 7  Hi, I want to add code to the product page written in php, which will extract information from the database by product code and display it on the screen. Which file do I need to make changes so that when Hikashop updating my changes are not deleted and at the same time Hikashop doesn’t break? Can I do this directly in show&#95;tabular.php?")*

Hi

I checked php error log today and found a lot of warnigns like this

WARNING: [pool www] child (NNNNN) said into stderr: "NOTICE: PHP message: PHP Notice: Undefined index: cid in /.../html/com_hikashop/product/show_tabular.php on line 315"

the 315 line is Code:

var data = "product_id=&lt;?php echo $_REQUEST['cid']; ?&gt;&amp;characteristic_id="+this.value;

from this script
Code:

&lt;script type="text/javascript"&gt; jQuery(document).ready(function(){ if(jQuery('.hikashop_product_characteristics_table select').length == 2){ jQuery('.hikashop_product_characteristics_table select:first').on('change',function(){ var data = "product_id=&lt;?php echo $_REQUEST['cid']; ?&gt;&amp;characteristic_id="+this.value; jQuery.ajax({ type: "POST", url: "index.php?option=com_ajax&amp;plugin=wwmhikavariantfix&amp;format=raw", data: data, success: function(data){ if(data !== 0){ jQuery('.hikashop_product_characteristics_table select:last').html(data); jQuery('.hikashop_product_characteristics_table select:last').trigger('change'); } } }); }); } }) &lt;/script&gt;

How to fix ?

Last edit: 6 years 9 months ago by [Bender](/forum/user/38688-bender "View Bender's Profile").

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

6 years 9 months ago [\#315151](#315151) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[show\_tabular.php](/forum/57-hikashop-3-0-beta/897926-show-tabular-php#315151 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.5 -- PHP version -- : 7  Hi, I want to add code to the product page written in php, which will extract information from the database by product code and display it on the screen. Which file do I need to make changes so that when Hikashop updating my changes are not deleted and at the same time Hikashop doesn’t break? Can I do this directly in show&#95;tabular.php?")*

Hi,

There is no such line in show_tabular.php nor such block of code.
Also, the file path indicates that you're looking at a view override of show_tabular.php
So I suppose that this is some code that you added yourself.
Now, as a simple fix, you can change the line: Code:

var data = "product_id=&lt;?php echo $_REQUEST['cid']; ?&gt;&amp;characteristic_id="+this.value;

to: Code:

var data = "product_id=&lt;?php echo @$_REQUEST['cid']; ?&gt;&amp;characteristic_id="+this.value;

it should remove the notice message.

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

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

Less More

- Posts: 239
- Thank you received: 8
-
-

6 years 9 months ago [\#315173](#315173) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[show\_tabular.php](/forum/57-hikashop-3-0-beta/897926-show-tabular-php#315173 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.5 -- PHP version -- : 7  Hi, I want to add code to the product page written in php, which will extract information from the database by product code and display it on the screen. Which file do I need to make changes so that when Hikashop updating my changes are not deleted and at the same time Hikashop doesn’t break? Can I do this directly in show&#95;tabular.php?")*

Excuse me please Nicolas.
It is indeed not a Hikashop script.
Thanks a lot.

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

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