@@ -192,10 +192,10 @@ |
||
192 | 192 | |
193 | 193 | if (!$this->woocommerceOrder->has_status($isValidStatus)) { // TO CONFIRM |
194 | 194 | $logMessage = "WARNING checkMerchantOrderStatus." . |
195 | - " Merchant order id:".$this->woocommerceOrder->get_id(). |
|
196 | - " Merchant order status:".$this->woocommerceOrder->get_status(). |
|
197 | - " Pagantis order id:".$this->pagantisOrder->getStatus(). |
|
198 | - " Pagantis order status:".$this->pagantisOrder->getId(); |
|
195 | + " Merchant order id:".$this->woocommerceOrder->get_id(). |
|
196 | + " Merchant order status:".$this->woocommerceOrder->get_status(). |
|
197 | + " Pagantis order id:".$this->pagantisOrder->getStatus(). |
|
198 | + " Pagantis order status:".$this->pagantisOrder->getId(); |
|
199 | 199 | |
200 | 200 | $this->insertLog(null, $logMessage); |
201 | 201 | $this->woocommerceOrder->add_order_note($logMessage); |
@@ -282,9 +282,9 @@ |
||
282 | 282 | if ($promotedProduct == 'true') { |
283 | 283 | $promotedAmount+=$product->getAmount(); |
284 | 284 | $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() . |
285 | - ' - Price: ' . $item->get_total() . |
|
286 | - ' - Qty: ' . $product->getQuantity() . |
|
287 | - ' - Item ID: ' . $item['id_product']; |
|
285 | + ' - Price: ' . $item->get_total() . |
|
286 | + ' - Qty: ' . $product->getQuantity() . |
|
287 | + ' - Item ID: ' . $item['id_product']; |
|
288 | 288 | $promotedMessage = substr($promotedMessage, 0, 999); |
289 | 289 | $metadataOrder->addMetadata('promotedProduct', $promotedMessage); |
290 | 290 | } |
@@ -33,27 +33,27 @@ discard block |
||
33 | 33 | const ORDERS_TABLE = 'posts'; |
34 | 34 | |
35 | 35 | public $defaultConfigs = array( |
36 | - 'PAGANTIS_TITLE'=>'Pago en cuotas', |
|
37 | - 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'sdk.simulator.types.SELECTABLE_TEXT_CUSTOM', |
|
38 | - 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'sdk.simulator.skins.BLUE', |
|
39 | - 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
40 | - 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
41 | - 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
42 | - 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
43 | - 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'sdk.simulator.positions.INNER', |
|
44 | - 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'a:3:{i:0;s:48:"div.summary *:not(del)>.woocommerce-Price-amount";i:1;s:54:"div.entry-summary *:not(del)>.woocommerce-Price-amount";i:2;s:36:"*:not(del)>.woocommerce-Price-amount";}', |
|
45 | - 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'a:2:{i:0;s:22:"div.quantity input.qty";i:1;s:18:"div.quantity>input";}', |
|
46 | - 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
47 | - 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
48 | - 'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0, |
|
49 | - 'PAGANTIS_URL_OK'=>'', |
|
50 | - 'PAGANTIS_URL_KO'=>'', |
|
51 | - 'PAGANTIS_ALLOWED_COUNTRIES' => 'a:3:{i:0;s:2:"es";i:1;s:2:"it";i:2;s:2:"fr";}', |
|
52 | - 'PAGANTIS_PROMOTION_EXTRA' => '<p>Finance this product <span class="pg-no-interest">without interest!</span></p>', |
|
53 | - 'PAGANTIS_SIMULATOR_THOUSANDS_SEPARATOR' => '.', |
|
54 | - 'PAGANTIS_SIMULATOR_DECIMAL_SEPARATOR' => ',', |
|
55 | - 'PAGANTIS_SIMULATOR_DISPLAY_SITUATION' => 'default', |
|
56 | - 'PAGANTIS_SIMULATOR_SELECTOR_VARIATION' => 'default' |
|
36 | + 'PAGANTIS_TITLE'=>'Pago en cuotas', |
|
37 | + 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'sdk.simulator.types.SELECTABLE_TEXT_CUSTOM', |
|
38 | + 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'sdk.simulator.skins.BLUE', |
|
39 | + 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
40 | + 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
41 | + 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
42 | + 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
43 | + 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'sdk.simulator.positions.INNER', |
|
44 | + 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'a:3:{i:0;s:48:"div.summary *:not(del)>.woocommerce-Price-amount";i:1;s:54:"div.entry-summary *:not(del)>.woocommerce-Price-amount";i:2;s:36:"*:not(del)>.woocommerce-Price-amount";}', |
|
45 | + 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'a:2:{i:0;s:22:"div.quantity input.qty";i:1;s:18:"div.quantity>input";}', |
|
46 | + 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
47 | + 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
48 | + 'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0, |
|
49 | + 'PAGANTIS_URL_OK'=>'', |
|
50 | + 'PAGANTIS_URL_KO'=>'', |
|
51 | + 'PAGANTIS_ALLOWED_COUNTRIES' => 'a:3:{i:0;s:2:"es";i:1;s:2:"it";i:2;s:2:"fr";}', |
|
52 | + 'PAGANTIS_PROMOTION_EXTRA' => '<p>Finance this product <span class="pg-no-interest">without interest!</span></p>', |
|
53 | + 'PAGANTIS_SIMULATOR_THOUSANDS_SEPARATOR' => '.', |
|
54 | + 'PAGANTIS_SIMULATOR_DECIMAL_SEPARATOR' => ',', |
|
55 | + 'PAGANTIS_SIMULATOR_DISPLAY_SITUATION' => 'default', |
|
56 | + 'PAGANTIS_SIMULATOR_SELECTOR_VARIATION' => 'default' |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | /** @var Array $extraConfig */ |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | if ($file == plugin_basename(__FILE__)) { |
400 | 400 | $links[] = '<a href="'.WcPagantis::GIT_HUB_URL.'" target="_blank">'.__('Documentation', 'pagantis').'</a>'; |
401 | 401 | $links[] = '<a href="'.WcPagantis::PAGANTIS_DOC_URL.'" target="_blank">'. |
402 | - __('API documentation', 'pagantis').'</a>'; |
|
402 | + __('API documentation', 'pagantis').'</a>'; |
|
403 | 403 | $links[] = '<a href="'.WcPagantis::SUPPORT_EML.'">'.__('Support', 'pagantis').'</a>'; |
404 | 404 | |
405 | 405 | return $links; |