Raif D. a11n
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] woocommerce_form_field date optionsHi @franckeg!
WooCommerce’s
woocommerce_form_field()
function is a wrapper for creating form fields in WooCommerce settings and forms, and it doesn’t inherently provide options for setting the minimum and maximum dates for date fields. However, you can achieve this functionality by using HTML attributes directly in the field markup.Here’s an example of how you can create a date field with minimum and maximum date attributes using
woocommerce_form_field()
:woocommerce_form_field( 'custom_date_field', array( 'type' => 'date', 'label' => 'Select a Date', 'required' => true, 'class' => array('form-row-wide'), 'custom_attributes' => array( 'min' => date('Y-m-d'), // Set minimum date to today 'max' => date('Y-m-d', strtotime('+1 year')) // Set maximum date to one year from today ) ) );
Please note that this is just an example. Otherwise, feel free to share more details about what you are trying to achieve and we are happy to take a closer look.
Thank you!
Forum: Plugins
In reply to: [WooCommerce] UPDATE wp_postmeta for specific categoryHi @shimist !
How can I change the _regular_price of products of a specific category with a query in WooCommerce?
Could you please share more details about the end goal with this change?
Thank you!
Forum: Plugins
In reply to: [Braintree for WooCommerce Payment Gateway] Paypal + Place OrderHi @mb00 !
Yes, a Place Order button is possible however, with some restrictions. You can read more about that here: https://woocommerce.com/document/woocommerce-gateway-paypal-powered-by-braintree/#express-checkout
I hope this answers your question!
Forum: Plugins
In reply to: [WooCommerce] My support is not workingHi @wood1e!
Thank you for the feedback. We are continuously receiving tickets and chats through our system thus we still suspect this might be due to the setup or the particular account.
Please feel free to open a support request using your newly created account and we are happy to look further into the old account issue if you still wish to use that.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce GeolocationHi @jaak69!
This was WooCommerce translation misunderstanding.
Oh I see! I am glad that the issue was actually just a misunderstanding. Thank you for the update ??
Forum: Plugins
In reply to: [WooCommerce] A District is missing in Shipping OptionHi @mehedeehassan !
Thank you for the feedback – please feel free to open a new issue on our GitHub repository here: https://github.com/woocommerce/woocommerce/issues and someone will pick it up ??
With that being said, I will go ahead and mark this thread as resolved.
Thank you!
Forum: Plugins
In reply to: [WooCommerce] A District is missing in Shipping OptionHi @mehedeehassan!
Thank you for reaching out – to add custom regions you will have to modify the country (in this case Bangladesh) by adding a custom code snippet to the site as documented here: https://woocommerce.com/document/addmodify-states/
I went ahead and modified that code for you so here it is:
/** * Add or modify States */ add_filter( 'woocommerce_states', 'custom_woocommerce_states' ); function custom_woocommerce_states( $states ) { $states['BD'] = array( 'BD1' => 'Chapainawabganj' ); return $states; }
You will have to use a plugin like Code Snippets to add it to the site. Also, please make sure you have a full backup of the site before adding any custom code ??
I hope this resolves the issue.
Forum: Plugins
In reply to: [WooCommerce] Plugin compatible with NCA standardsHi @rohinideshmane!
Thanks for getting back to us.
Can you tell me exactly whether the WooCommerce plugin is compliant with NCA and ISO standards?
We cannot say for sure whether the exact standards you have mentioned above are all fulfilled by WooCommerce by default however, due to it being an open-source platform I would suggest you reach out to an attorney to make sure that you are within the laws and regulations of the country you are planning to operate your store from.
I hope this points you in the right direction.
Forum: Themes and Templates
In reply to: [Storefront] Scroll position on mobile issueHi @handmadehome!
Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.
Please include a link to this forum thread, so that we can keep track of what’s already been done.
We will be able to help you further there.
Forum: Plugins
In reply to: [WooCommerce] Stock level stuck on rest api updateHi @malw!
Happy to hear that the issue got resolved ??
Forum: Plugins
In reply to: [WooCommerce] Problems with AnalyticsHi @dscreative!
Thank you for the addtional details.
Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.
Please include a link to this forum thread, so that we can keep track of what’s already been done.
We will be able to help you further there.
Forum: Plugins
In reply to: [Braintree for WooCommerce Payment Gateway] PAYPAL_INVALID_PAYMENT_OPTIONHi @miguelgaton!
Thanks for reaching out!
Can you please share your site’ System Status Report with us?
You can get it by navigating to the WooCommerce / Status section of your site. Once there, click on the Get system report button and then copy it by clicking on the Copy for support button, then paste it here.Additionally, was there any update right before the issue started appearing? It seems that there is wrong data being passed to PayPal from the English version of the site and that could be caused by a plugin conflict.
Forum: Plugins
In reply to: [WooCommerce] RoyalMail Click&Drop and VAT for IOSS on CN22Hi @cyrix2000!
Thank you for the additional details. The only official extension we support for Royal Mail is the one mentioned previously however, that will not add the Click & Drop feature.
You are correct in saying that it is a connection made by Royal Mail using API calls and for that, I’d suggest reaching out to Royal Mail directly. Here is more on that: https://woocommerce.com/document/royal-mail/#click-and-drop
Thank you!
Hi @aderjanos & @nanasflowers!
Please feel free to subscribe to the public GitHub issue linked here and once an update is pushed you will receive a notification ??
I hope this points you in the right direction!
Forum: Plugins
In reply to: [WooCommerce] VAT on Products wrong in checkoutPlease contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.
Please include a link to this forum thread, so that we can keep track of what’s already been done.
We will be able to help you further there.