Last updated on September 11th, 2024 at 05:17 pm
What this plugin does is very simple:
If you have sales agents on your backend you can use this plugin to process payment. This plugin specifically doesn’t provide any payment solution. So all the payments will be processed manually or offline.
The sales agents can just process the payment. This woocommerce checkout is password protected. Meaning only sales agents who know the password can go ahead and process the payment, taking out the possibility of fake payment processing.
What kind of business can use this plugin:
- Hotels and Accommodations: Securely handle room reservations and payments.
- Travel Agencies: ✈️ Ensure safe payments for travel packages and tours.
- Event Planners: Handle event registrations and secure venue bookings.
- Rental Services: Secure online payments for rentals and equipment.
- Health and Wellness Centers: Securely book spa treatments and wellness services.
- Restaurants and Dining: Manage reservation payments for special events.
- Entertainment and Recreation: Secure bookings for amusement parks and theaters.
- Professional Services: Secure payments for appointments and consultations.
- Education and Workshops: Handle secure payments for classes and workshops.
- Healthcare Services: Securely book medical appointments and consultations.
- Transportation Services: Secure payments for transportation services.
- Real Estate Rentals: Handle secure payments for property rentals.
How to use the plugin:
Just download the plugin and upload in your wordpress site (Woocommerce enabled) and activate the plugin.
- Go the woocommerce > Settings > Payments
2. Click on agent booking and click on manage
Frontend checkout with agent booking installed :
Please add this code in the theme’s function.php file to show the form
add_action(‘woocommerce_review_order_before_payment’, ‘add_agent_booking_password_form’ );
function add_agent_booking_password_form() {
$gateway = WC()->payment_gateways()->payment_gateways()[‘agent_booking_gateway’];
?>
<div class=”agent-booking-password-form”>
<h3>PAGO ASISTIDO CON COMERCIAL EN TIENDA</h3>
<?php
woocommerce_form_field( ‘agent_booking_password’, array(
‘type’ => ‘password’,
‘label’ => __( ‘Clave de acceso comerciales <strong>(Solo para pago en tienda)</strong>’, ‘woocommerce’ ),
‘required’ => true,
‘class’ => array( ‘form-row-wide’ ),
‘clear’ => true,
) );
?>
</div>
<?php
}
// esto está en el js del tema
function toggleAgentBookingPasswordField() {
if($(‘#payment_method_agent_booking_gateway’).is(‘:checked’)) {
$(‘.agent-booking-password-form’).show();
} else {
$(‘.agent-booking-password-form’).hide();
}
}
// Inicializar al cargar la página
toggleAgentBookingPasswordField();
// Escuchar cambios en la selección del método de pago
$(document).on(‘change’, ‘input[name=”payment_method”]’, function() {
toggleAgentBookingPasswordField();
});
Credit: From a fellow customer. Thanks so much nadal
Reviews
There are no reviews yet.