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

#   Making required fields - optinal

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago [\#199904](#199904) by [ibrahim3d](/forum/user/37054-ibrahim3d "View ibrahim3d's Profile")  *[Making required fields - optinal](/forum/25-install-update/876616-making-required-fields-optinal#199904 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  In which file can I make address and shipping fields optional &quot;not-required&quot; in back-end? I only use hikashop for managing customers and orders via phone or online, COD payment only.")* was created by *[ibrahim3d](/forum/user/37054-ibrahim3d "View ibrahim3d's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1

In which file can I make address and shipping fields optional "not-required" in back-end?
I only use hikashop for managing customers and orders via phone or online, COD payment only.

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 6 months ago [\#199911](#199911) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Making required fields - optinal](/forum/25-install-update/876616-making-required-fields-optinal#199911 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  In which file can I make address and shipping fields optional &quot;not-required&quot; in back-end? I only use hikashop for managing customers and orders via phone or online, COD payment only.")*

Hi,

I suppose that you want to edit the file administrator/components/com_hikashop/classes/field.php and add a line like this: Code:

$fields[$namekey]-&gt;field_required = false;

before the line: Code:

$fields[$namekey]-&gt;guest_mode = $guest;

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

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago [\#199933](#199933) by [ibrahim3d](/forum/user/37054-ibrahim3d "View ibrahim3d's Profile")  Replied by *[ibrahim3d](/forum/user/37054-ibrahim3d "View ibrahim3d's Profile")* on topic *[Making required fields - optinal](/forum/25-install-update/876616-making-required-fields-optinal#199933 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  In which file can I make address and shipping fields optional &quot;not-required&quot; in back-end? I only use hikashop for managing customers and orders via phone or online, COD payment only.")*

Thank you, I did that but it only removes the star *, nothing more.

---

I was using mijoshop 3 form the day they've relesed it. Since then I searched in "all" core files, edited hundereds of lines to meke the default reqiered fields optional. I succeded in some pages but in most of them I couldn't.
That's why I thought in hikashop core files should be edited.
By "custom fields" I can do what ever I want with all default address fields easily. :woohoo:
There is one thing, If one of the required fields in billing or shipping address lift empty it closes the fields like every thing is OK, but doesn't save or notify. I undid the changes in feild.php files

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

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

[](#top)
