TOPIC:

Hiding some field and reCaptcha v3 1 year 3 months ago #266450

  • Topic Author
  • rdekker
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 11
  • Thanks: 0
Hello,

I'm testing the Commerce for Joomla free version for a simple webshop for a sports club.
I disabled the check-out login feature with the CSS tweak. It would be nice is this could be done with a menu-option in the Admin part.

I have 3 questions:
- How to hide/remove the Fax and Company fields in the eform
- How to remove the option "Ship to a different address"
- Is it possible to add reCaptcha v3 before placing the order

Regards

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

Hiding some field and reCaptcha v3 1 year 3 months ago #266452

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

1) if you want to remove this Fax and Company, please go to:
/components/com_breezingcommerce/views/checkout/tmpl/default.php
around line 166-179 you will see:
<div class="crbc-span4 span4">
                    
                            <div class="control-group">
                                <div class="control-label">
                                    <label for="company"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_COMPANY' ); ?></label>
                                </div>
                                <div class="controls">
                                    <input type="text" name="company" id="company" maxlength="250" value="<?php echo htmlentities( $this->item->company, ENT_QUOTES, 'UTF-8');?>" />
                                </div>
                            </div>
                            
                        </div>

                    </div>
Comment those lines like:
<!--    <div class="crbc-span4 span4">
                    
                            <div class="control-group">
                                <div class="control-label">
                                    <label for="company"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_COMPANY' ); ?></label>
                                </div>
                                <div class="controls">
                                    <input type="text" name="company" id="company" maxlength="250" value="<?php echo htmlentities( $this->item->company, ENT_QUOTES, 'UTF-8');?>" />
                                </div>
                            </div>
                            
                        </div>

                    </div>
					-->

For fax go to lines 349-360, you will see those lines:
<div class="crbc-span6 span6">
                    
                            <div class="control-group">
                                <div class="control-label">
                                    <label for="fax"><?php echo JText::_( 'COM_BREEZINGCOMMERCE_FAX' ); ?></label>
                                </div>
                                <div class="controls">
                                    <input type="text" name="fax" id="fax" maxlength="250" value="<?php echo htmlentities( $this->item->fax, ENT_QUOTES, 'UTF-8');?>" />
                                </div>
                            </div>
                            
                        </div>
Comment it as company code with <!-- and -->

2) I need to find the code for this and come back to you
UPDATE: on same php file around line 461-483:
<div class="crbc-span6 span6">

                        <div class="control-group">

                            <div class="control-label">
                                <label></label>
                            </div>

                            <div class="controls">

                                <label class="control-label" for="use_shipping_address_0">
                                    <input type="radio" value="0" name="use_shipping_address" id="use_shipping_address_0"<?php echo !$this->item->use_shipping_address ? ' checked="checked"' : '';?>/>
                                    <?php echo JText::_( 'COM_BREEZINGCOMMERCE_SHIP_TO_THIS_ADDRESS' ); ?>
                                </label>

                                <label class="control-label" for="use_shipping_address_1">
                                    <input type="radio" value="1" name="use_shipping_address" id="use_shipping_address_1"<?php echo $this->item->use_shipping_address ? ' checked="checked"' : '';?>/>
                                    <?php echo JText::_( 'COM_BREEZINGCOMMERCE_SHIP_TO_DIFFERENT_ADDRESS' ); ?>
                                </label>
                            </div>
                        </div>

                    </div>
Comment those lines

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Hiding some field and reCaptcha v3 1 year 3 months ago #266479

  • Topic Author
  • rdekker
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 11
  • Thanks: 0
Hello Tihana ,

I modified the file and it's working, thanks

The reCAPTCHA question is still open.


Thanks
Ron

btw I will open a new topic for an issue were I ran into when finalizing the order

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

Hiding some field and reCaptcha v3 1 year 3 months ago #266481

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi,

oh sorry, I forgot on question 3, I will check it and come back to you

Regards,
Tihana

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

Hiding some field and reCaptcha v3 1 year 3 months ago #266486

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
Hi again,

I investigate it and for you can use Recaptcha in breezingforms only, but not in BrreezingCommerce :(

Regards,
Tihana

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

Hiding some field and reCaptcha v3 1 year 3 months ago #266488

  • Topic Author
  • rdekker
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 11
  • Thanks: 0
Hi, thanks for checking. Have to see if I get spam or not. If I get spam it's a no-go.

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

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

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!