@@ -16,22 +16,22 @@ |
||
| 16 | 16 | * @var array $defaultConfigs |
| 17 | 17 | */ |
| 18 | 18 | public $defaultConfigs = array('PAGANTIS_TITLE'=>'Instant Financing', |
| 19 | - 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE', |
|
| 20 | - 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE', |
|
| 21 | - 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
| 22 | - 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
| 23 | - 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
| 24 | - 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
| 25 | - 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER', |
|
| 26 | - 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default', |
|
| 27 | - 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default', |
|
| 28 | - 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
| 29 | - 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
| 30 | - 'PAGANTIS_URL_OK'=>'', |
|
| 31 | - 'PAGANTIS_URL_KO'=>'', |
|
| 32 | - 'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!', |
|
| 33 | - 'PAGANTIS_ALLOWED_COUNTRIES' => 'a:2:{i:0;s:2:"es";i:1;s:2:"it";}', |
|
| 34 | - 'PAGANTIS_PROMOTION_EXTRA' => '<p class="promoted">Finance this product <span class="pmt-no-interest">without interest!</span></p>' |
|
| 19 | + 'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE', |
|
| 20 | + 'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE', |
|
| 21 | + 'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons', |
|
| 22 | + 'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3, |
|
| 23 | + 'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12, |
|
| 24 | + 'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default', |
|
| 25 | + 'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER', |
|
| 26 | + 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'default', |
|
| 27 | + 'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'default', |
|
| 28 | + 'PAGANTIS_FORM_DISPLAY_TYPE'=>0, |
|
| 29 | + 'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1, |
|
| 30 | + 'PAGANTIS_URL_OK'=>'', |
|
| 31 | + 'PAGANTIS_URL_KO'=>'', |
|
| 32 | + 'PAGANTIS_TITLE_EXTRA' => 'Pay up to 12 comfortable installments with Pagantis. Completely online and sympathetic request, and the answer is immediate!', |
|
| 33 | + 'PAGANTIS_ALLOWED_COUNTRIES' => 'a:2:{i:0;s:2:"es";i:1;s:2:"it";}', |
|
| 34 | + 'PAGANTIS_PROMOTION_EXTRA' => '<p class="promoted">Finance this product <span class="pmt-no-interest">without interest!</span></p>' |
|
| 35 | 35 | ); |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -234,9 +234,9 @@ discard block |
||
| 234 | 234 | if ($promotedProduct == 'true') { |
| 235 | 235 | $promotedAmount+=$product->getAmount()*$item->getQty(); |
| 236 | 236 | $promotedMessage = 'Promoted Item: ' . $item->getName() . |
| 237 | - ' Price: ' . $item->getPrice() . |
|
| 238 | - ' Qty: ' . $item->getQty() . |
|
| 239 | - ' Item ID: ' . $item->getItemId(); |
|
| 237 | + ' Price: ' . $item->getPrice() . |
|
| 238 | + ' Qty: ' . $item->getQty() . |
|
| 239 | + ' Item ID: ' . $item->getItemId(); |
|
| 240 | 240 | $metadataOrder->addMetadata('promotedProduct', $promotedMessage); |
| 241 | 241 | } |
| 242 | 242 | } |
@@ -401,9 +401,9 @@ discard block |
||
| 401 | 401 | $magentoVersion = $this->productMetadataInterface->getVersion(); |
| 402 | 402 | $moduleInfo = $this->moduleList->getOne('Pagantis_Pagantis'); |
| 403 | 403 | return array( 'magento' => $magentoVersion, |
| 404 | - 'pagantis' => $moduleInfo['setup_version'], |
|
| 405 | - 'php' => phpversion(), |
|
| 406 | - 'curl' => $curlVersion); |
|
| 404 | + 'pagantis' => $moduleInfo['setup_version'], |
|
| 405 | + 'php' => phpversion(), |
|
| 406 | + 'curl' => $curlVersion); |
|
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
@@ -489,8 +489,8 @@ |
||
| 489 | 489 | $this->magentoOrder->addStatusHistoryComment($metadataInfo)->setIsCustomerNotified(false)->setEntityName('order')->save(); |
| 490 | 490 | |
| 491 | 491 | $comment = 'pagantisOrderId: '.$this->pagantisOrder->getId(). ' ' . |
| 492 | - 'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' . |
|
| 493 | - 'via: '.$this->origin; |
|
| 492 | + 'pagantisOrderStatus: '.$this->pagantisOrder->getStatus(). ' ' . |
|
| 493 | + 'via: '.$this->origin; |
|
| 494 | 494 | $this->magentoOrder->addStatusHistoryComment($comment)->setIsCustomerNotified(false)->setEntityName('order')->save(); |
| 495 | 495 | |
| 496 | 496 | if ($this->magentoOrderId == '') { |
@@ -491,8 +491,8 @@ |
||
| 491 | 491 | $this->magentoOrder->addStatusHistoryComment($metadataInfo)->setIsCustomerNotified(false)->setEntityName('order')->save(); |
| 492 | 492 | |
| 493 | 493 | $comment = 'pagantisOrderId: ' . $this->pagantisOrder->getId(). ' ' . |
| 494 | - 'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' . |
|
| 495 | - 'via: '. $this->origin; |
|
| 494 | + 'pagantisOrderStatus: '. $this->pagantisOrder->getStatus(). ' ' . |
|
| 495 | + 'via: '. $this->origin; |
|
| 496 | 496 | $this->magentoOrder->addStatusHistoryComment($comment)->setIsCustomerNotified(false)->setEntityName('order')->save(); |
| 497 | 497 | |
| 498 | 498 | if ($this->magentoOrderId == '') { |