how to arrange the contact field and make the name and email fields required?

  • Posts: 42
  • Thank you received: 0
8 years 1 month ago #269598

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.4

hello

I have contact page for every products and some custom fields in it.

but the name and the email fields are default for contact page and if I want the email field above the tel field, how to do ?

and how to make the name and the email fields required to be filled with a star mark aside like other custom fields so that users can be informed to fill these fields ?

please see the attachment.

thank you.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 1 month ago #269600

Hi,

You'll have to edit the file "contact" of the view "product" via the menu Display>Views in order to do these changes.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
8 years 4 weeks ago #269744

yes, I know where to edit the view, my problem is which code line can I edit to achieve my purpose ?

because I am not a php developer so I can not figure out how to solve my problem, I need you the developer who can guide me.

thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 4 weeks ago #269753

Hi,

For the required modification, you don't need to know PHP to be able to do that. If you know HTML, you should be able to do that already.
For example, that line displays the label of the name field:

<label for="data[contact][name]"><?php echo JText::_( 'HIKA_USER_NAME' ); ?></label>
So just add the * character at the end of that line if you want to add a * after the label of the name field.

Now regarding changing the order of the elements, it will require a developer to do that for you.
If you need someone to work on that for you, you can contact our partners:
www.hikashop.com/home/our-partners.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum