@@ -299,9 +299,9 @@ |
||
| 299 | 299 | if ($promotedProduct == 'true') { |
| 300 | 300 | $promotedAmount+=$product->getAmount(); |
| 301 | 301 | $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() . |
| 302 | - ' - Price: ' . $item->get_total() . |
|
| 303 | - ' - Qty: ' . $product->getQuantity() . |
|
| 304 | - ' - Item ID: ' . $item['id_product']; |
|
| 302 | + ' - Price: ' . $item->get_total() . |
|
| 303 | + ' - Qty: ' . $product->getQuantity() . |
|
| 304 | + ' - Item ID: ' . $item['id_product']; |
|
| 305 | 305 | $promotedMessage = substr($promotedMessage, 0, 999); |
| 306 | 306 | $metadataOrder->addMetadata('promotedProduct', $promotedMessage); |
| 307 | 307 | } |
@@ -613,7 +613,7 @@ |
||
| 613 | 613 | if ($file == plugin_basename(__FILE__)) { |
| 614 | 614 | $links[] = '<a href="'.WcPagantis::GIT_HUB_URL.'" target="_blank">'.__('Documentation', 'pagantis').'</a>'; |
| 615 | 615 | $links[] = '<a href="'.WcPagantis::PAGANTIS_DOC_URL.'" target="_blank">'. |
| 616 | - __('API documentation', 'pagantis').'</a>'; |
|
| 616 | + __('API documentation', 'pagantis').'</a>'; |
|
| 617 | 617 | $links[] = '<a href="'.WcPagantis::SUPPORT_EML.'">'.__('Support', 'pagantis').'</a>'; |
| 618 | 618 | |
| 619 | 619 | return $links; |
@@ -259,9 +259,9 @@ discard block |
||
| 259 | 259 | if ($promotedProduct == 'true') { |
| 260 | 260 | $promotedAmount+=$product->getAmount(); |
| 261 | 261 | $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() . |
| 262 | - ' - Price: ' . $item->get_total() . |
|
| 263 | - ' - Qty: ' . $product->getQuantity() . |
|
| 264 | - ' - Item ID: ' . $item['id_product']; |
|
| 262 | + ' - Price: ' . $item->get_total() . |
|
| 263 | + ' - Qty: ' . $product->getQuantity() . |
|
| 264 | + ' - Item ID: ' . $item['id_product']; |
|
| 265 | 265 | $promotedMessage = substr($promotedMessage, 0, 999); |
| 266 | 266 | $metadataOrder->addMetadata('promotedProduct', $promotedMessage); |
| 267 | 267 | } |
@@ -277,10 +277,10 @@ discard block |
||
| 277 | 277 | $orderConfigurationUrls = new Urls(); |
| 278 | 278 | $cancelUrl = $this->getKoUrl($order); |
| 279 | 279 | $callback_arg = array('wc-api'=>'wcpagantisgateway', |
| 280 | - 'key'=>$order->get_order_key(), |
|
| 281 | - 'order-received'=>$order->get_id(), |
|
| 282 | - 'origin' => '', |
|
| 283 | - 'token' => $this->urlToken4x |
|
| 280 | + 'key'=>$order->get_order_key(), |
|
| 281 | + 'order-received'=>$order->get_id(), |
|
| 282 | + 'origin' => '', |
|
| 283 | + 'token' => $this->urlToken4x |
|
| 284 | 284 | ); |
| 285 | 285 | |
| 286 | 286 | $callback_arg_user = $callback_arg; |
@@ -250,10 +250,10 @@ |
||
| 250 | 250 | |
| 251 | 251 | if (!$this->woocommerceOrder->has_status($isValidStatus)) { // TO CONFIRM |
| 252 | 252 | $logMessage = "WARNING checkMerchantOrderStatus." . |
| 253 | - " Merchant order id:".$this->woocommerceOrder->get_id(). |
|
| 254 | - " Merchant order status:".$this->woocommerceOrder->get_status(). |
|
| 255 | - " Pagantis order id:".$this->pagantisOrder->getStatus(). |
|
| 256 | - " Pagantis order status:".$this->pagantisOrder->getId(); |
|
| 253 | + " Merchant order id:".$this->woocommerceOrder->get_id(). |
|
| 254 | + " Merchant order status:".$this->woocommerceOrder->get_status(). |
|
| 255 | + " Pagantis order id:".$this->pagantisOrder->getStatus(). |
|
| 256 | + " Pagantis order status:".$this->pagantisOrder->getId(); |
|
| 257 | 257 | $this->insertLog(null, $logMessage); |
| 258 | 258 | $this->woocommerceOrder->add_order_note($logMessage); |
| 259 | 259 | $this->woocommerceOrder->save(); |