rafaelrafael
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Attributes and variations don’t appear on the edit product pageThank you, I’ll check the links. Yes, please, it would be awesome if you leave it open, because when I was googling people have different issues with this one
Forum: Plugins
In reply to: [WooCommerce] Attributes and variations don’t appear on the edit product pageI haven’t noticed any problems with caching, besides, when I update the post the page refreshes anyway, but I think it saves the page as it is – empty. But that’s only my guess. Here is the copied system report:
Адрес WordPress (URL):https://rafmedia.test-handyhost.ruАдрес сайта (URL):https://rafmedia.test-handyhost.ruВерсия WooCommerce:8.4.0Пакет WooCommerce REST API: 8.4.0
/var/www/user9663/data/www/rafmedia.test-handyhost.ru/wp-content/plugins/woocommerce/includes
Пакет WooCommerce Blocks: 11.6.2/var/www/user9663/data/www/rafmedia.test-handyhost.ru/wp-content/plugins/woocommerce/packages/woocommerce-blocks/
Пакет планировщика действий: 3.7.0/var/www/user9663/data/www/rafmedia.test-handyhost.ru/wp-content/plugins/woocommerce/packages/action-scheduler
Директория журнала перезаписываема:/var/www/user9663/data/www/rafmedia.test-handyhost.ru/wp-content/uploads/wc-logs/
Версия WordPress:6.4.2WordPress режим сети:–WordPress ограничение памяти:300 МБWordPress режим отладки:–WordPress cron:Язык:ru_RUВнешний кэш объектов:–Forum: Plugins
In reply to: [WooCommerce] How to set specific countries via phpThank YOU, without your help I would dig forever ?? Thanks, have a gread day ??
Forum: Plugins
In reply to: [WooCommerce] How to set specific countries via phpFor anyone who may need this? Here is the coding:
// Set “Selling locations” to “Sell to specific countries”
update_option(‘woocommerce_allowed_countries’, ‘specific’);// Array with your countries (use country codes)
$countries = array(‘US’, ‘CA’, ‘GB’, ‘AU’);// Save our options
update_option(‘woocommerce_specific_allowed_countries’, $countries);- This reply was modified 1 year, 3 months ago by rafaelrafael.
Forum: Plugins
In reply to: [WooCommerce] How to set specific countries via phpThank you very much! I’m not experienced in developing, only learning at the moment, so I’m really appreciated. Thank you)
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Problem with codingor better:
woocommerce_wp_radio(
array(
‘id’ => $_id_prefix . ‘_price_method’,
‘value’ => $_price_method, //here instaed of $_price_method i need ‘manual’
‘class’ => ‘wcpbc_price_method’,
‘label’ => __( ‘Price for’, ‘wc-price-based-country’ ) . ‘ ‘ . $value[‘name’]. ‘ (‘ . get_woocommerce_currency_symbol( $value[‘currency’] ) . ‘)’,
‘options’ => array(
‘exchange_rate’ => __(‘Calculate prices by exchange rate’, ‘wc-price-based-country’),
‘manual’ => __(‘Set prices manually’, ‘wc-price-based-country’)
)
)
);and in input fields i need $_regular_price and $_sale_price change to $myregularprice and $mysaleprice