halehaleomiyage
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Endpoints error on My Account and CartI talekd to the support of Bluehost and the issue was fixed!
The reason was Varnish on the server. It appears to be incompatible with my site so he have
disabled it.
That can be managed from your cPanel > https://my.bluehost.com/cgi/server_settings
> Varnish section.I hope this solves your trouble too @pietka!
Forum: Plugins
In reply to: [WooCommerce] Endpoints error on My Account and CartI have been testing around and found out something (it is not solved yet though).
I now know that the redirect problem happens only on the site on Web server. If I test on the localhost, it works well.
I’m using Bluehost “optimized wordpress” service.
Not sure if it is same but I found this article.
https://sarasotawebpros.com/wp-admin-redirect-loop-on-bluehost-wordpress-hosting/On this article, it says wordpress hosting by Bluehost and SSL setting cause redirect loop.
Although mine doesn’t work even without SSL setting.Have someone had a same problem?
Forum: Plugins
In reply to: [WooCommerce] How to change order of field in "edit shipping address"Thank you for your reply.
I thought this code is for changing the order…
So could you tell me how to change the order?Forum: Plugins
In reply to: Woocommerce My Account Page WHITE SCREENHi, I could find out myself. It was just because I didn’t choose any page on the setting.
Woocommerce=>Settings=>Account=>choose the account page on “My Account Page”
Forum: Plugins
In reply to: [WooCommerce] How to customize "edit shipping address" in account page?Thank you Caleb! I could make it!
You helped me last time too. I appreciate so much.Forum: Plugins
In reply to: Woocommerce My Account Page WHITE SCREENI have a same same problem… jsnbrn and kat99, did you find any solution?
Forum: Plugins
In reply to: [WooCommerce] How to customize checkout field?Yes. I could get it to work correctly. Thank you for your help!!!
Forum: Plugins
In reply to: [WooCommerce] How to customize checkout field?Never mind… I could change to optional. Ha, I still don’t know why sometimes it doesn’t work and sometimes works….
Trying my best.Forum: Plugins
In reply to: [WooCommerce] How to customize checkout field?Hi Caleb, thank you for your advice. I followed your advice and tried everything like disabling all plugins and switching to a default theme…. Those didn’t change the situation but today I could customize the field finally somehow…. I don’t know why though.
Anyways, now I could customize the field except ‘required’ for ‘shipping_address_1’.
I want to change it to optional, but it is not allowed to do it?My snippet is like this.
// Hook in Customize checkout fields
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );// Our hooked in function – $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
$fields[‘shipping’][‘shipping_address_1’][‘placeholder’] = ‘Hotel address’;
$fields[‘shipping’][‘shipping_address_1’][‘label’] = ‘Address (Please put the address if there is no name on the list.)’;
$fields[‘shipping’][‘shipping_address_1’][‘required’] = false;
$fields[‘shipping’][‘shipping_address_2’][‘placeholder’] = ‘Room No.’;
unset($fields[‘shipping’][‘shipping_company’]);
unset($fields[‘billing’][‘billing_company’]);
return $fields;
}Forum: Plugins
In reply to: [WooCommerce] How to customize checkout field?Thank you for your support.
I enabled debugging and found why the screen was white. I was writing the function twice
that’s why it became white.
So I rewrote the code like this..// Hook in
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );// Our hooked in function – $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
$fields[‘shipping’][‘shipping_address_1’][‘placeholder’] = ‘test’;
$fields[‘shipping’][‘shipping_hotel’] = array(
‘label’ => __(‘Hotel’, ‘woocommerce’),
‘placeholder’ => _x(‘Hotel name’, ‘placeholder’, ‘woocommerce’),
‘required’ => false,
‘class’ => array(‘form-row-wide’),
‘clear’ => true
);return $fields;
}It’s not white anymore but still doesn’t change any field which I override..
Do you have any idea?