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

#   Move Custom fields in Admin Add Product

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#141405](#141405) by [punga98](/forum/user/30785-punga98 "View punga98's Profile")  *[Move Custom fields in Admin Add Product](/forum/25-install-update/865366-move-custom-fields-in-admin-add-product#141405 "-- HikaShop version -- : Business 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome 33.0.1750.46 beta-m  Hi When adding a new product in admin, I want to move the Custom Fields nearer to the top of the page. I've searched through all the files and cant find which one to alter. Which is the file where I can do this? Thanks Jim")* was created by *[punga98](/forum/user/30785-punga98 "View punga98's Profile")*

-- HikaShop version -- : Business 2.2.3
-- Joomla version -- : 3.2.1
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Chrome 33.0.1750.46 beta-m

Hi
When adding a new product in admin, I want to move the Custom Fields nearer to the top of the page.
I've searched through all the files and cant find which one to alter.
Which is the file where I can do this?
Thanks
Jim

Last edit: 12 years 9 months ago by [punga98](/forum/user/30785-punga98 "View punga98's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago -  12 years 9 months ago [\#141417](#141417) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Move Custom fields in Admin Add Product](/forum/25-install-update/865366-move-custom-fields-in-admin-add-product#141417 "-- HikaShop version -- : Business 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome 33.0.1750.46 beta-m  Hi When adding a new product in admin, I want to move the Custom Fields nearer to the top of the page. I've searched through all the files and cant find which one to alter. Which is the file where I can do this? Thanks Jim")*

Hi Jim,
To do that you'll have to edit the "form" file of the "product" view of your back-end template through the page "*Hikashop-&gt;DIsplay-&gt;Views*" and move the following code : Code:

if(!empty($this-&gt;fields)){?&gt; &lt;table class="admintable table" width="100%"&gt; &lt;?php foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField){ if(!$oneExtraField-&gt;field_backend){ if($oneExtraField-&gt;field_type != "customtext"){?&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="hidden" name="data[product][&lt;?php echo $fieldName; ?&gt;]" value="&lt;?php echo $this-&gt;element-&gt;$fieldName; ?&gt;" /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;?php } }else{ ?&gt; &lt;tr id="hikashop_product_&lt;?php echo $fieldName; ?&gt;"&gt; &lt;td class="key"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/td&gt; &lt;td&gt; &lt;?php if(!isset($this-&gt;element-&gt;$fieldName)) $this-&gt;element-&gt;$fieldName = $oneExtraField-&gt;field_default; ?&gt; &lt;?php $onWhat='onchange'; if($oneExtraField-&gt;field_type=='radio') $onWhat='onclick'; ?&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;display($oneExtraField,$this-&gt;element-&gt;$fieldName,'data[product]['.$fieldName.']',false,' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'product\',0);"'); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;/table&gt; &lt;?php }

Last edit: 12 years 9 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

12 years 8 months ago [\#141903](#141903) by [punga98](/forum/user/30785-punga98 "View punga98's Profile")  Replied by *[punga98](/forum/user/30785-punga98 "View punga98's Profile")* on topic *[Move Custom fields in Admin Add Product](/forum/25-install-update/865366-move-custom-fields-in-admin-add-product#141903 "-- HikaShop version -- : Business 2.2.3 -- Joomla version -- : 3.2.1 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Chrome 33.0.1750.46 beta-m  Hi When adding a new product in admin, I want to move the Custom Fields nearer to the top of the page. I've searched through all the files and cant find which one to alter. Which is the file where I can do this? Thanks Jim")*

Thank you
On my first 2 attempts the page threw a wobbly. It looks like I have to be more selective where I put it although I thought I was putting it before or after what looked like an important bit of code
Will try again later

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

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

[](#top)
