Registration roles
Yes, add the code in functions.php file of the activated theme.
Yes, add the code in functions.php file of the activated theme.
I have English words in Kurdish pages
Random 503 and 504 errors
It’s set by the code that includes the template, and is in-scope when the file is included – from the include documentation: When a file is included, the code it contains inherits the variable scope of the line on which the include occurs. Any variables available at that line in the calling file will be … Read more
I would like to know if you have to install wordpress also in the subfolder, so a wordpress installation for each woocommerce plug or can you manage the two online shops even with a single installation? Both options work, either 2 installations of WordPress with WooCommerce installed, or a single installation of WordPress set up … Read more
use vendor address instead of store main address for shipping and taxes calculation
The WordPress documentation shows that an array is an acceptable argument for the taxonomy in get_the_terms (https://developer.wordpress.org/reference/functions/get_the_terms/). An array works if you are trying to get multiple taxonomies. It even works if you are trying to get just one taxonomy. But getting two single taxonomy arrays sequentially is what breaks this code. In the originally … Read more
Update Your get_checkout_fields method with parameter billing_country so it will look like $fields = $checkout->get_checkout_fields( ‘billing_country’ ); Documentation: https://docs.woocommerce.com/wc-apidocs/source-class-WC_Checkout.html#197-281
Do you know how recursive functions are working? Here is an example: function get_categories_list( $parent ) { $args = array( ‘taxonomy’ => ‘product_cat’, ‘hide_empty’ => false, ‘parent’ => $parent ); $current_level_categories = get_terms( $args ); $result=””; if ( $current_level_categories ) { foreach ( $current_level_categories as $cat ) { if ( $cat->name == ‘Uncategorized’ ) continue; … Read more
Format number to 2 decimal places