Correction of the order download code (Woocomers)
31 USDThe script forms the order file in the required form from the order woocomers
Interested in field ID
Today, the script takes this field from the exchange base (comparates goodWP from the order and exchange base and returns goodID from the exchange base.
$i = 0
Foreach($order->line_items as $item)
by {
of $i++;
$good=$goodList->getByIdWP($item->variation_id);
if ($good) $goodID = $good->id;
else $goodID = 0;
fWriteLine($file, '[.$i.“They”
fWriteLine ($file, 'GoodID='.$goodID)
fWriteLine($file, 'Price='.currToStr($item->price));
fWriteLine ($file, 'Count='.$item->quantity)
fWriteLine ($ file, '')
The
the fclose ($ file)
According to recharge goods, goodID field appeared in the main loading (wP)
What to sign up?
If we do not find the goods needed in the exchange base, we need to take the value from the column goodID from the WP goods base.
Нужно доработать код выгрузки заказов.
Скрипт формирует файл заказа в нужном формате из заказа woocomers
интересует поле поле ID
Сегодня скрипт берет это поле из базы обмена (сравнивает goodWP из заказа и базы обмена и возвращает goodID из базы обмена.
$i=0;
foreach($order->line_items as $item)
{
$i++;
$good=$goodList->getByIdWP($item->variation_id);
if ($good) $goodID=$good->id;
else $goodID=0;
fWriteLine($file, '['.$i.']');
fWriteLine($file, 'GoodID='.$goodID);
fWriteLine($file, 'Price='.currToStr($item->price));
fWriteLine($file, 'Count='.$item->quantity);
fWriteLine($file, '');
}
fclose($file);
По вновь выгружаемым товарам поле goodID появилось в основной выгрузке ( в базе WP)
Что нужно дописать?
Если не находим в базе обмена нужный товар, нужно взять значение из колонки goodID из базы товаров WP
Client's feedback on cooperation with Aleksandr S.
Correction of the order download code (Woocomers)Super performers ! Fast, clear and accessible. I definitely recommend!
Freelancer's feedback on cooperation with Dmitry Seva
Correction of the order download code (Woocomers)An excellent customer is a clearly set task, acceptance immediately after completion. Very pleasant to collaborate.
Current freelance projects in the category Databases
Viber community parser
25 USD
write a parser for Viber communities following the example of the parser's work on the website https://promouser.com/ as a result, we get a file with phone numbers of community members Databases, Data parsing |
[TM] BA Analyst - create 30 SQL queries for dataset
120 USD
Good day, there is a dataset consisting of 3 tables, need to create 30 SQL queries for it. Domain - ecommerce 5 simple queries for each table 2 complex queries with aggregations for each table 4 queries for table pairs with aggregation 5 queries for all tables at once I need… Databases, Data processing ∙ 3 proposals |
Web applicationIt is necessary to expand the functionality of the existing web application (TypeScript, React, and Next.js) by adding a fuzzy search module. The databases are large, Elasticsearch or Manticore Search should be implemented for data indexing. Databases, Web programming ∙ 5 proposals |
Loading products into an online store in Wordpress
54 USD
Loading products - wigs and accessories. Variative - 273 products, several photos for each product, + color variations. Non-variative 33 products. Option 1: upload products from Excel document to my Wordpress online store www.wigs.lv, 3 languages. Sample document attached.… Databases, Data parsing ∙ 6 proposals |
Develop a mobile application. Backend + Frontend Android/iOSA design has been developed. An application-catalog with user registration, filters, search, the ability to add to saved and comparison. cracking of requests from the state website (most likely parsing), a feed of recommendations based on interests, push notifications. A… Databases, Hybrid mobile apps ∙ 17 proposals |