@@ -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 | } |
@@ -198,10 +198,10 @@ |
||
| 198 | 198 | |
| 199 | 199 | if (!$this->woocommerceOrder->has_status($isValidStatus)) { // TO CONFIRM |
| 200 | 200 | $logMessage = "WARNING checkMerchantOrderStatus." . |
| 201 | - " Merchant order id:".$this->woocommerceOrder->get_id(). |
|
| 202 | - " Merchant order status:".$this->woocommerceOrder->get_status(). |
|
| 203 | - " Pagantis order id:".$this->pagantisOrder->getStatus(). |
|
| 204 | - " Pagantis order status:".$this->pagantisOrder->getId(); |
|
| 201 | + " Merchant order id:".$this->woocommerceOrder->get_id(). |
|
| 202 | + " Merchant order status:".$this->woocommerceOrder->get_status(). |
|
| 203 | + " Pagantis order id:".$this->pagantisOrder->getStatus(). |
|
| 204 | + " Pagantis order status:".$this->pagantisOrder->getId(); |
|
| 205 | 205 | |
| 206 | 206 | $this->insertLog(null, $logMessage); |
| 207 | 207 | $this->woocommerceOrder->add_order_note($logMessage); |
@@ -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; |
@@ -257,9 +257,9 @@ discard block |
||
| 257 | 257 | if ($promotedProduct == 'true') { |
| 258 | 258 | $promotedAmount+=$product->getAmount(); |
| 259 | 259 | $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() . |
| 260 | - ' - Price: ' . $item->get_total() . |
|
| 261 | - ' - Qty: ' . $product->getQuantity() . |
|
| 262 | - ' - Item ID: ' . $item['id_product']; |
|
| 260 | + ' - Price: ' . $item->get_total() . |
|
| 261 | + ' - Qty: ' . $product->getQuantity() . |
|
| 262 | + ' - Item ID: ' . $item['id_product']; |
|
| 263 | 263 | $promotedMessage = substr($promotedMessage, 0, 999); |
| 264 | 264 | $metadataOrder->addMetadata('promotedProduct', $promotedMessage); |
| 265 | 265 | } |
@@ -275,10 +275,10 @@ discard block |
||
| 275 | 275 | $orderConfigurationUrls = new Urls(); |
| 276 | 276 | $cancelUrl = $this->getKoUrl($order); |
| 277 | 277 | $callback_arg = array('wc-api'=>'wcpagantisgateway', |
| 278 | - 'key'=>$order->get_order_key(), |
|
| 279 | - 'order-received'=>$order->get_id(), |
|
| 280 | - 'origin' => '', |
|
| 281 | - 'token' => $this->urlToken4x |
|
| 278 | + 'key'=>$order->get_order_key(), |
|
| 279 | + 'order-received'=>$order->get_id(), |
|
| 280 | + 'origin' => '', |
|
| 281 | + 'token' => $this->urlToken4x |
|
| 282 | 282 | |
| 283 | 283 | ); |
| 284 | 284 | |