Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rafaelrafael

    (@rafaelrafael)

    Thank 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

    Thread Starter rafaelrafael

    (@rafaelrafael)

    I 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Внешний кэш объектов:

    Thread Starter rafaelrafael

    (@rafaelrafael)

    Thank YOU, without your help I would dig forever ?? Thanks, have a gread day ??

    Thread Starter rafaelrafael

    (@rafaelrafael)

    For 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.
    Thread Starter rafaelrafael

    (@rafaelrafael)

    Thank you very much! I’m not experienced in developing, only learning at the moment, so I’m really appreciated. Thank you)

    Thread Starter rafaelrafael

    (@rafaelrafael)

    or 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

Viewing 6 replies - 1 through 6 (of 6 total)