Giter Club home page Giter Club logo

Comments (4)

alekckuc avatar alekckuc commented on August 25, 2024

у нас УТ 10.3 заполняю поле https://www.screencast.com/t/BepnYiFj

оно попадает сюда https://www.screencast.com/t/NC4A6emm7F

а затирается поле https://www.screencast.com/t/vpNkbDmjn

from woocommerce-1c.

itkos avatar itkos commented on August 25, 2024

Доброго времени суток! Уже как третьи сутки мучаюсь с этим обменом. У меня woocommerce и 1С УНФ. Пробовал выгрузить 1000 позиций - ошибка копирования файла. Общался с хостером besthosting.ua все лимиты подняты до предела!

Решил сбелать ручной обмен. Выгрузил в каталог файлы для обмена, загрузил их в папку на хостинг, перехожу по ссылкам ***/?type=catalog&mode=import&filename=import.xml и ***/?type=catalog&mode=import&filename=offers.xml и ничего не происходит вообще, просто открывается страница и всё....

Ребята!ПОМОГИТЕ ПОЖАЛУЙСТА ЗАПУСТИТЬ ЭТОТ ОБМЕН!!! ЗАСТРЕЛЮСЬ....

from woocommerce-1c.

mdimai666 avatar mdimai666 commented on August 25, 2024

@itkos удалите папку /var/www/skincare/wp-content/uploads/woocommerce-1c
п.с. оставляю на будущее

from woocommerce-1c.

sichinawa avatar sichinawa commented on August 25, 2024

Поищите тему там все решено.
Внизу решение для изменения поля выгрузки описания

if (!defined('WC1C_PRODUCT_DESCRIPTION_TO_CONTENT')) define('WC1C_PRODUCT_DESCRIPTION_TO_CONTENT', true);

// Передача описания с разбиением на 2 части в 1С обратить внимание на ковычки

function wc1c_replace_post($guid, $post_type, $is_deleted, $is_draft, $post_title, $post_name, $post_excerpt, $post_content, $post_meta, $category_taxonomy, $category_guids, $preserve_fields) {
$post_id = wc1c_post_id_by_meta('_wc1c_guid', $guid);

if (!$post_excerpt) $post_excerpt = '';
if (WC1C_PRODUCT_DESCRIPTION_TO_CONTENT) {
//NEW!
$content_arr = explode("|", $post_excerpt);
if( count($content_arr) >= 2 ) {
$post_excerpt = $content_arr[0]; // Краткое описание (после знака |)
$post_content = $content_arr[1]; // Полное описание (до знака |)
}
else {
$post_content = $post_excerpt;
$post_excerpt = '';
}
}

from woocommerce-1c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.