TOPIC:

field to be required 1 week 6 days ago #250791

  • yanick8's Avatar Topic Author
  • yanick8
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 17
  • Thanks: 1
Hy,

On the BrezingCommerce form, I would like the "phone" field to be required.
Like, for example, e-mail.

regards

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

field to be required 1 week 5 days ago #250807

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

just want to be sure.
On checkout page you would like the phone field to be required?

Regards,
Tihana

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

field to be required 1 week 5 days ago #250813

  • yanick8's Avatar Topic Author
  • yanick8
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 17
  • Thanks: 1
Hi,

Yes.

Regards,
Yanick

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

field to be required 1 week 5 days ago #250815

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

if you want the phone to be required then:
go to joomla root/components/com_breezingcommerce/views/checkout/tmpl/default.php

on line 322 you will see:
 <label for="phone"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_PHONE' ); ?> <!--<i class="crbc-fa crbc-fa-asterisk"></i></label>-->

Please remove <!-- and -->
The whole code when I remove this looks like:
                                    <label for="phone"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_PHONE' ); ?> <i class="crbc-fa crbc-fa-asterisk"></i></label>

Do the same in line 702
you will see this:
<label for="shipping_phone"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_PHONE' ); ?> <!--<i class="crbc-fa crbc-fa-asterisk"></i></label>-->

change it to this:
                                    <label for="shipping_phone"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_PHONE' ); ?> <i class="crbc-fa crbc-fa-asterisk"></i></label>

Regards,
Tihana

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

field to be required 1 week 4 days ago #250853

  • yanick8's Avatar Topic Author
  • yanick8
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 17
  • Thanks: 1
Thank you, that's very good, the asterisk is displayed.

I have tested my form, there is no control that validates the phone entry. Did I make a mistake?

Regards,
Yanick

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

field to be required 1 week 4 days ago #250854

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2267
  • Karma: 3
  • Thanks: 210
Hi,

sorry I forgot to tell you:
go to joomlaroot/components/com_breezingcommerce/models/checkout.php
Around line 1157,1158,1159 remove slashes

After you remove it the code should looks like:
if(!isset($data[$shipping.'phone']) || trim($data[$shipping.'phone']) == ''){
                $errors[] = array('field' => $shipping.'phone', 'type' => 'missing', 'message' => JText::_('COM_BREEZINGCOMMERCE_PHONE_REQUIRED'));
            }

Let me know if you need more help

Regards,
Tihana
The following user(s) said Thank You: yanick8

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

  • Page:
  • 1
  • 2
Time to create page: 0.100 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!