Mohamed Endisha
Forum Replies Created
-
This topic is being closed due to inactivity. If you still need help, please reopen it or open a new topic and reference this one if necessary.
Thank you for your understanding.
Forum: Plugins
In reply to: [International Phone Number Format] Use without Woocommerce?Hello @jdowns1
Unfortunately, it supports both WooCommerce fields and custom fields, but WooCommerce must be activated since it is primarily designed for WooCommerce fields.
It’s a bit complicated and needs deep troubleshooting, but try to disable only the frontend validation for the billing_phone field from field settings.
This should stop the JavaScript validation specifically on the checkout page.
Hopefully, this resolves the issue related to the wallee plugin.Thank you for providing these details. I checked your video and the staging website, and it seems that the trigger
update_checkoutis not firing after applying the coupon.You can try adding this to your browser console:
jQuery(document.body).trigger('update_checkout');When you use the code above, you’ll notice that in the XHR tab, the request (
?wc-ajax=update_order_review) is not being sent as expected. But if you reload the entire checkout page before applying the coupon, and then applied the coupon everything works fine. This indicates that the issue is probably related to a conflict between another plugin or the theme, not with the WooCommerce plugin.How to troubleshoot:
- Start by deactivating your theme and see if the issue still occurs.
- If the issue persists, deactivate each plugin one by one, especially those related to the checkout page (e.g., payment methods, shipping plugins, etc.). After deactivating each plugin, see if the issue is resolved.
- This step-by-step process will help you determine if a plugin or a theme is causing the conflict.
Let me know if you have any updates.
Hello @permich
I have checked all the cases and scenarios you mentioned, using the same versions of WooCommerce and WordPress. The plugin works perfectly without any errors, and coupons are applied correctly in the order overview, whether the address is filled in or not.
I have also double-checked using WooCommerce Checkout Blocks (which are still not supported yet) and have not encountered any coupon conflicts.
Let me know if you need any further assistance
Forum: Reviews
In reply to: [International Phone Number Format] Best one yet, now lets make it perfect!Thank you,
I haven’t received your direct message yet.
Please feel free to share your suggestions here or via email.
Thanks again!
This topic is being closed due to inactivity. If you still need help, please reopen it or open a new topic and reference this one if necessary.
Thank you for your understanding.
Is this error from backend or JS validation error in the form under the input field? this message means the billing phone is empty, Are you sure you fill the input with the correct phone number?
If backend disabled and still the issue that is mean if may be an issue with the WooCommerce Stripe Payment Plugin, please contact the plugin developer as well.
FYI, this is invalid URL.
Thanks,
It’s complicated since I don’t have a Stripe account to reproduce the issue. Do you have a live demo of the problem?
The plugin uses the E.164 standard, which includes a
+at the beginning of the phone number so let’s troubleshoot the issue.Go to WooCommerce > International Phone Number Format tab, locate the Billing Phone [billing_phone] field (first field), and disable the Backend Validation option only. Then, test again to see if the issue still persists.
Also, please provide more details by going to your browser, opening the “Inspect” tool, navigating to the “Network” tab, and checking the “XHR” section. Look at the payload and response for the
wc-ajax=checkoutrequest.Check the plugin settings. If _billing_phone is enabled and the field is blank or invalid in the order details, the order update will not be sent. Try disabling the field (Enabled) or (Frontend Validation) to allow blank or invalid phone numbers.
- Plugin Settings: https://ibb.co/DCPRT6C
- Edit Order: https://ibb.co/ypRqLqh
Forum: Plugins
In reply to: [International Phone Number Format] Compatibility with YITH Point of SaleIt seems the YITH Point of Sale might be using a different method, such as VueJS – SPA, etc.., instead of the default WordPress. Please contact the developers of the YITH Point of Sale plugin for assistance. If they are using a custom approach, the plugin might not function properly in your case.
Editing the plugin code is not recommended. Instead, you should use hooks to override the function. Look for a hook that runs before your desired action and use it to override and update the phone number exactly where you need to.
If the plugin works well for you, please consider leaving a positive review.
Forum: Plugins
In reply to: [International Phone Number Format] Compatibility with YITH Point of SaleThank you for your offer to provide staging access, I must inform you that custom support is not provided as part of my plugin. If you have any specific questions or need assistance with the plugin, please feel free to let me know, and I’ll be happy to help within the scope of our standard support.
Thank you for your understanding.
I think this needs some clarification. Is it a custom payment method that uses a custom field or the checkout billing phone number? Also, when do you want to save it—after processing the order?
For example, my country code is +218[XXXXXXX] and i will remove +218. I can update the billing phone number (or custom field) after the order is processed and save the new field using the WooCommerce
woocommerce_checkout_update_order_metahook, something like the following:add_action('woocommerce_checkout_update_order_meta', function ($order_id) {
$phone = get_post_meta($order_id, '_billing_phone', true);
if ($phone) {
// Remove the country code, the +, and the first three digits.
$phone_without_country_code = preg_replace('/^\+\d{1,3}\s?/', '', $phone);
// Update the order meta with the modified phone number by update _billing_phone.
update_post_meta($order_id, '_billing_phone', $phone_without_country_code);
// or update the payment method phone number if it uses another field.
//update_post_meta($order_id, 'custom_field', $phone_without_country_code);
}
});Forum: Plugins
In reply to: [International Phone Number Format] Compatibility with YITH Point of SaleUnfortunately, the YITH Point of Sale is available only in the premium version, and I cannot access the source code to assist you precisely with this issue. However, it is doable if you follow these steps:
Add the custom field using the
intl_phone_number_format_fieldsfilter. Here’s an example code snippet:<?php
add_filter('intl_phone_number_format_fields', function ($fields){
$fields[] = array(
'id' => 'mobile',
'enable' => true,
'desc' => 'Mobile phone number on the customer page',
'label' => 'Mobile',
'frontend_validation' => true, // JS frontend validation
'backend_validation' => true, // Backend validation
'countries' => 'all', // Countries related to fields (all, billing, or shipping)
'type' => 'custom', // Field type (custom, billing, or shipping)
);
return $fields;
});The id should be similar to the phone number field in the “Create Customer” page. You can inspect the input element to get the input ID.
To include the International Phone Number Format JS files on that page, you need to know the exact page and apply this hook., you can include it using the following method:
<?php
add_filter('intl_phone_number_format_validate_enqueue_js', function ($valid){
// Your condition here, check page URL to detect the "create customer" page.
// if (create customer page)
// $valid = true;
return $valid;
});