<?php
// \wp-content\plugins\ekan-woocommerce\actions\ekan-functions-order.php:236
if( $is_intra_ue ) {
$remote_name = $custom_order_id . "_doc.pdf";
}
else {
//$remote_name = $custom_order_id . "_fac.pdf";
/**/$remote_name = "DtoC-" . $custom_order_id . "_fac.pdf"; /**/// forcer préfixe - Arkanite 20220705 + 20230215
}
return $remote_name;
// \wp-content\plugins\ekan-woocommerce\xml\ekan-xml-order.class.php:214
// 20191102 dropshipping
$orderPrefix = eKanConfiguration::getOrderPrefix();
/**/$orderPrefix = 'DtoC'; /**/// forcer préfixe - Arkanite 20220621 + 20230215
if( !empty( $orderPrefix ) ) {
$NrCommande = $orderPrefix . '-' . $NrCommande;
}
// \wp-content\plugins\ekan-woocommerce\api\ekan-api-functions.php:83
if( in_array( $product_id, $excluded_products ) ) {
echo "<br />" . $article['refEcommercant'] . ' (' . $article['titre'] . ") : <b>Produit ($product_id) exclu de la synchronisation</b>";
continue;
}
/**/// ignorer si produit est une variation et que le parent de la déclinaison est dans les produits exclus - code présent à deux endoits de ce fichier - Arkanite 20230227
if ($WC_Product and in_array($WC_Product->get_parent_id()?:0,$excluded_products?:array())) {
echo "<br />" . $article['refEcommercant'] . ' (' . $article['titre'] . ") : <b>Arkanite : Parent de cette variation ($product_id) exclu de la synchronisation</b>";
continue;
}
if( !$WC_Product || $WC_Product->is_virtual() || $WC_Product->is_downloadable() ) {
$articles_not_found[] = $article;
echo "<br />" . $article['refEcommercant'] . ' (' . $article['titre'] . ') : <b>Article non trouvé sur le site</b>';
continue;
}
// \wp-content\plugins\ekan-woocommerce\api\ekan-api-functions.php:155
if( in_array( $product_id, $excluded_products ) ) {
$log_bits[] = "Produit exclu de la synchronisation ($product_id )";
continue;
}
/**/// ignorer si produit est une variation et que le parent de la déclinaison est dans les produits exclus - code présent à deux endoits de ce fichier - Arkanite 20230227
if ($WC_Product and in_array($WC_Product->get_parent_id()?:0,$excluded_products?:array())) {
$log_bits[] = $article['refEcommercant'] . ' (' . $article['titre'] . ") : Arkanite : Parent de cette variation ($product_id) exclu de la synchronisation";
continue;
}
if( !$WC_Product || $WC_Product->is_virtual() || $WC_Product->is_downloadable() ) {
$log_bits[] = "Produit introuvable ou virtuel ($product_id )";
continue;
}
Comments