Title: prohapro's Replies | WordPress.org

---

# prohapro

  [  ](https://wordpress.org/support/users/prohapro/)

 *   [Profile](https://wordpress.org/support/users/prohapro/)
 *   [Topics Started](https://wordpress.org/support/users/prohapro/topics/)
 *   [Replies Created](https://wordpress.org/support/users/prohapro/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/prohapro/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/prohapro/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/prohapro/engagements/)
 *   [Favorites](https://wordpress.org/support/users/prohapro/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/prohapro/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/prohapro/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Плагин не работает с версий WordPress 5.5.3](https://wordpress.org/support/topic/%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d1%8f-wordpress/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d1%8f-wordpress/#post-13941486)
 * Посмотрите, в БД записи новых товаров есть? Что в поле post_author?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Новые позиции не отображаются (post_author = 0)](https://wordpress.org/support/topic/%d0%bd%d0%be%d0%b2%d1%8b%d0%b5-%d0%bf%d0%be%d0%b7%d0%b8%d1%86%d0%b8%d0%b8-%d0%bd%d0%b5-%d0%be%d1%82%d0%be%d0%b1%d1%80%d0%b0%d0%b6%d0%b0%d1%8e%d1%82%d1%81%d1%8f-post_author-0/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/%d0%bd%d0%be%d0%b2%d1%8b%d0%b5-%d0%bf%d0%be%d0%b7%d0%b8%d1%86%d0%b8%d0%b8-%d0%bd%d0%b5-%d0%be%d1%82%d0%be%d0%b1%d1%80%d0%b0%d0%b6%d0%b0%d1%8e%d1%82%d1%81%d1%8f-post_author-0/#post-13941418)
 * Чтобы быстро вручную решить эту проблему, можно выполнить скрипт:
    UPDATE `wp_posts`
   SET `post_author` = REPLACE(`post_author`, “0”, “1”)
 * Но как сделать чтобы это значение проставлялось для новых товаров, при синхронизации?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] мультисайт](https://wordpress.org/support/topic/%d0%bc%d1%83%d0%bb%d1%8c%d1%82%d0%b8%d1%81%d0%b0%d0%b9%d1%82/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/%d0%bc%d1%83%d0%bb%d1%8c%d1%82%d0%b8%d1%81%d0%b0%d0%b9%d1%82/#post-13938606)
 * У вас разные склады на сайте? Как это организовано, каким плагином?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Цена со скидкой](https://wordpress.org/support/topic/%d1%86%d0%b5%d0%bd%d0%b0-%d1%81%d0%be-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%be%d0%b9/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/%d1%86%d0%b5%d0%bd%d0%b0-%d1%81%d0%be-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%be%d0%b9/#post-12244825)
 * Завели поле – значит отдельный тип цен сделали? А в выгружаемом файле xml, цены
   со скидкой присутствуют?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Выгрузка “Цены распродажи”](https://wordpress.org/support/topic/%d0%b2%d1%8b%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b0-%d1%86%d0%b5%d0%bd%d1%8b-%d1%80%d0%b0%d1%81%d0%bf%d1%80%d0%be%d0%b4%d0%b0%d0%b6%d0%b8/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/%d0%b2%d1%8b%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b0-%d1%86%d0%b5%d0%bd%d1%8b-%d1%80%d0%b0%d1%81%d0%bf%d1%80%d0%be%d0%b4%d0%b0%d0%b6%d0%b8/#post-12244820)
 * Да, тоже интересно.
 * 1. Как вы реализовали скидки в 1С: через маркетинговые акции, или через дополнительный
   тип цен?
 * 2. Если через дополнительный тип цен, то как при продаже через РМК у вас подцепляются
   цены со скидками?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Цена со скидкой](https://wordpress.org/support/topic/%d1%86%d0%b5%d0%bd%d0%b0-%d1%81%d0%be-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%be%d0%b9/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/%d1%86%d0%b5%d0%bd%d0%b0-%d1%81%d0%be-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%be%d0%b9/#post-12097395)
 * У вас скидка как маркетинговая акция для сегмента номенклатуры, или как отдельный
   вид цен? Тоже интересен вопрос, сейчас вручную на сайте скидки делаю.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] _sale_price не проходит проверку is_on_sale](https://wordpress.org/support/topic/_sale_price-%d0%bd%d0%b5-%d0%bf%d1%80%d0%be%d1%85%d0%be%d0%b4%d0%b8%d1%82-%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d1%83-is_on_sale/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/_sale_price-%d0%bd%d0%b5-%d0%bf%d1%80%d0%be%d1%85%d0%be%d0%b4%d0%b8%d1%82-%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d1%83-is_on_sale/#post-11914442)
 * Добавил:
 *     ```
       $current_post_meta = get_post_meta($post_id);
       foreach ($current_post_meta as $meta_key => $meta_value) {
       $current_post_meta[$meta_key] = $meta_value[0];
       }
       ```
   
 * после
    `if (!is_null($price)) {`
 * и все получилось.
    -  This reply was modified 6 years, 9 months ago by [prohapro](https://wordpress.org/support/users/prohapro/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Обновил Woocommerce, стали пропадать скидки](https://wordpress.org/support/topic/%d0%be%d0%b1%d0%bd%d0%be%d0%b2%d0%b8%d0%bb-woocommerce-%d1%81%d1%82%d0%b0%d0%bb%d0%b8-%d0%bf%d1%80%d0%be%d0%bf%d0%b0%d0%b4%d0%b0%d1%82%d1%8c-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%b8/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/%d0%be%d0%b1%d0%bd%d0%be%d0%b2%d0%b8%d0%bb-woocommerce-%d1%81%d1%82%d0%b0%d0%bb%d0%b8-%d0%bf%d1%80%d0%be%d0%bf%d0%b0%d0%b4%d0%b0%d1%82%d1%8c-%d1%81%d0%ba%d0%b8%d0%b4%d0%ba%d0%b8/#post-11747814)
 * Эта проблема прослеживается в БД: «_sale_price» не обновляет значение в «_price».
   Значение “_price” становится как “_regular_price” после импорта в независимости
   от наличия скидки.
 * Вот кусок кода из плагина/exchange/offers.php, который обрабатывает цены. Но 
   я не вижу здесь то, что можно исправить:
 *     ```
         if (!is_null($price)) {
           $sale_price = @$current_post_meta['_sale_price'];
           $sale_price_from = @$current_post_meta['_sale_price_dates_from'];
           $sale_price_to = @$current_post_meta['_sale_price_dates_to'];
           if (empty($current_post_meta['_sale_price'])) {
             $post_meta['_price'] = $price;
           }
           else {
             if (empty($sale_price_from) && empty($sale_price_to)) {
               $post_meta['_price'] = $current_post_meta['_sale_price'];
             }
             else {
               $now = strtotime('now', current_time('timestamp'));
               if (!empty($sale_price_from) && strtotime($sale_price_from) < $now) {
                 $post_meta['_price'] = $current_post_meta['_sale_price'];
               }
               if (!empty($sale_price_to) && strtotime($sale_price_to) < $now) {
                 $post_meta['_price'] = $price;
                 $post_meta['_sale_price_dates_from'] = '';
                 $post_meta['_sale_price_dates_to'] = '';
               }
             }
           }
         }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Show Stock Status for WooCommerce] Customization: color and out of stock](https://wordpress.org/support/topic/customization-color-and-out-of-stock/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/customization-color-and-out-of-stock/#post-10839897)
 * Color solution:
 * 26 return ‘<div class=”remaining”>’.printf(_(‘**<span style=”color: #5cb85c”>**%
   s in stock**</span>**‘),number_format($product->get_stock_quantity(),0,”,”)).'
   </div>’;
    -  This reply was modified 7 years, 7 months ago by [prohapro](https://wordpress.org/support/users/prohapro/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Show Stock Status for WooCommerce] Customization: color and out of stock](https://wordpress.org/support/topic/customization-color-and-out-of-stock/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/customization-color-and-out-of-stock/#post-10837692)
 * “Out of stock” label solution for non-variable (editing main.php v0.2.4), works
   well!
 * 16 $low_stock_notify = 1;
    24 return ‘<div class=”remaining”>’.printf(_(‘Out 
   of stock’),number_format($product->get_stock_quantity(),0,”,”)).'</div>’; 17-
   22, 29-45 //Disabled
 * How to add backorders check (IF stock quantity = 0 AND backorders = no THEN return“
   Out of stock”; IF stock quantity = 0 AND backorders = yes THEN return “Backorders”)?
   
   How to change color of output text?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Show Stock Status for WooCommerce] Not working Woocommerce 3.5](https://wordpress.org/support/topic/not-working-woocommerce-3-5/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/not-working-woocommerce-3-5/#post-10836862)
 * WC 3.5.1 works fine. Try to change “Stock position”.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Отключить перезапись атрибутов](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%bf%d0%b5%d1%80%d0%b5%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d1%8c-%d0%b0%d1%82%d1%80%d0%b8%d0%b1%d1%83%d1%82%d0%be%d0%b2/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%bf%d0%b5%d1%80%d0%b5%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d1%8c-%d0%b0%d1%82%d1%80%d0%b8%d0%b1%d1%83%d1%82%d0%be%d0%b2/#post-10713363)
 * Решение (нашел [тут](https://wordpress.org/support/topic/%D0%BF%D0%B5%D1%80%D0%B5%D0%B7%D0%B0%D1%82%D0%B8%D1%80%D0%B0%D0%BD%D0%B8%D0%B5-%D0%BA%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D0%B9-%D1%80%D0%B5%D1%88%D0%B5%D0%BD%D0%B8%D0%B5/)):
   в файле import.php, закомментировал строки 836, 843:
    //wp_delete_object_term_relationships(
   $post_id, $old_taxonomies); //update_post_meta($post_id, ‘_product_attributes’,
   $product_attributes);
 * Перезапись атрибутов отключилась.
    -  This reply was modified 7 years, 8 months ago by [prohapro](https://wordpress.org/support/users/prohapro/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic] Description doesn’t show up in source anymore](https://wordpress.org/support/topic/description-doesnt-show-up-in-source-anymore/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/description-doesnt-show-up-in-source-anymore/#post-8447520)
 * Hello, I have the same problem on HOME page, another pages work good! There is
   no: `<meta name="description" content="">` code at the HOME page, but it appear
   on another pages.
    I tried to make description through the basic AiOSP setup,
   and through the Settings page, which I use as a home – no results.
 * Site: [http://xn--80ajbsidkqf.xn--p1ai/](http://xn--80ajbsidkqf.xn--p1ai/)
    Please
   help me =)
    -  This reply was modified 9 years, 6 months ago by [prohapro](https://wordpress.org/support/users/prohapro/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Новый глюк](https://wordpress.org/support/topic/%d0%9d%d0%be%d0%b2%d1%8b%d0%b9-%d0%b3%d0%bb%d1%8e%d0%ba/)
 *  Thread Starter [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/%d0%9d%d0%be%d0%b2%d1%8b%d0%b9-%d0%b3%d0%bb%d1%8e%d0%ba/#post-7693581)
 * В общем, решил проблему. Наименования в 1С НЕ должно начинаться, или заканчиваться
   на пробел. Также не должно быть двойных и более пробелов. То же самое относится
   к описанию товара.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Ошибки при выгрузке товаров из 1С](https://wordpress.org/support/topic/%d0%9e%d1%88%d0%b8%d0%b1%d0%ba%d0%b8-%d0%bf%d1%80%d0%b8-%d0%b2%d1%8b%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b5-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-%d0%b8%d0%b7-1%d0%a1/)
 *  [prohapro](https://wordpress.org/support/users/prohapro/)
 * (@prohapro)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/%d0%9e%d1%88%d0%b8%d0%b1%d0%ba%d0%b8-%d0%bf%d1%80%d0%b8-%d0%b2%d1%8b%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b5-%d1%82%d0%be%d0%b2%d0%b0%d1%80%d0%be%d0%b2-%d0%b8%d0%b7-1%d0%a1/page/2/#post-7621049)
 * Так и что, теперь фильтр групп/категорий заработает?

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/prohapro/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/prohapro/replies/page/2/?output_format=md)