minsuwai
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change the related categories banner imageI am using woocommerce and using elementor page builder with theme from envato. Here is website link https://skautopart.com/
Forum: Fixing WordPress
In reply to: Website is not loadingThe website have active themes and plugin and they are also update version. How to learn and fix that error.
Forum: Fixing WordPress
In reply to: HTTP Error 403How do I troubleshoot and fix that error?
Forum: Plugins
In reply to: [WooCommerce] Can not add the Add to cart button texthttps://kariyarnantawstationery.com/shop/
Here is the page, I was added the add to cart text of the simple product using filter but that filter did not change the add to cart of the variable product. Therefore I was added using css.
In the above link, I was added add to cart text using css for variable product that is the third product in my page.
Forum: Everything else WordPress
In reply to: Restrict PaymentI restricted with this code but there cod is enabled for both state.
// Restrict payment add_filter('woocommerce_states', 'bbloomer_custom_woocommerce_states'); function bbloomer_custom_woocommerce_states($states) { $states['MM'] = array( 'Yangon' => 'Yangon', 'Other City' => 'Other City' ); return $states; } add_filter('woocommerce_available_payment_gateways', 'custom_available_payment_gateways'); function custom_available_payment_gateways($gateways) { // Get the selected state from the user input $selected_state = isset($_POST['billing_state']) ? sanitize_text_field($_POST['billing_state']) : ''; error_log('Selected State: ' . $selected_state); // Disable Cash on Delivery for all states initially if (isset($gateways['cod'])) { $gateways['cod']->enabled = false; // Disable COD for all states } // Enable Cash on Delivery only for 'Yangon' if ($selected_state === 'Yangon') { if (isset($gateways['cod'])) { $gateways['cod']->enabled = true; // Enable COD for 'Yangon' } } return $gateways; }
Forum: Everything else WordPress
In reply to: Restrict PaymentNo ser, I am not replying. I am just ask about restrict payment ser