*

oscman

  • ****
  • 227 posts
question: Transaction and Condition required
« on: March 17, 2017, 04:11:57 PM »
Is it possible to add option so the transaction(sell buy) and condition(new-used) of items are rquired? like phone location and name

*

Don Domainer

  • ***
  • 26 posts
Re: question: Transaction and Condition required
« Reply #1 on: March 17, 2017, 10:04:14 PM »
Is it possible to add option so the transaction(sell buy) and condition(new-used) of items are rquired? like phone location and name

most everything you want to need, is already inside Veronika, for example :

On the form you are required to add an email, I think if you want to add the same to Transaction, name, etc..you just have to replicate the configuration on email.


Just watch carefully and compare this :

Code: [Select]
<label for="phone"><?php _e('Mobile Phone''veronika'); ?></label>
whit this

Code: [Select]
<label for="contactEmail"><span><?php _e('E-mail''veronika'); ?></span><span class="req">*</span></label>
result ? .. what you need is "
Code: [Select]
<span class="req">*</span></label>

I am not an expert, but I apply this almost always, and I learn how things work
« Last Edit: March 17, 2017, 10:06:17 PM by Don Domainer »

*

oscman

  • ****
  • 227 posts
Re: question: Transaction and Condition required
« Reply #2 on: March 18, 2017, 01:12:09 AM »
you mean change the class of the span to req? what about php that needs to validate?

*

Don Domainer

  • ***
  • 26 posts
Re: question: Transaction and Condition required
« Reply #3 on: March 18, 2017, 04:51:25 AM »
you mean change the class of the span to req? what about php that needs to validate?


 (Do not be afraid, if you make a mistake, come back ) It was tested and works. ..


Code: [Select]
<span class="req">*</span>





*

MB Themes

Re: question: Transaction and Condition required
« Reply #4 on: March 18, 2017, 06:49:26 AM »
@oscman
In item-post.php you can find javascript that is required for location (.term) to be required ... or for contactName.
You can reuse this code to set your own field to be required.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: question: Transaction and Condition required
« Reply #5 on: March 20, 2017, 04:26:27 AM »
thanks!