diff --git a/local/modules/Cheque/Cheque.php b/local/modules/Cheque/Cheque.php index 10d78c809..1dd915936 100755 --- a/local/modules/Cheque/Cheque.php +++ b/local/modules/Cheque/Cheque.php @@ -58,13 +58,13 @@ class Cheque extends BaseModule implements PaymentModuleInterface // TODO: Implement pay() method. } - /** - * YOU HAVE TO IMPLEMENT HERE ABSTRACT METHODD FROM BaseModule Class - * Like install and destroy - */ public function install() { - // TODO: Implement install() method. + /* insert the images from image folder if first module activation */ + $module = $this->getModuleModel(); + if(ModuleImageQuery::create()->filterByModule($module)->count() == 0) { + $this->deployImageFolder($module, sprintf('%s/images', __DIR__)); + } } public function destroy() diff --git a/local/modules/Cheque/images/cheque.png b/local/modules/Cheque/images/cheque.png new file mode 100644 index 000000000..16d83ba11 Binary files /dev/null and b/local/modules/Cheque/images/cheque.png differ diff --git a/local/modules/FakeCB/Tests/FakeCBTest.php b/local/modules/FakeCB/Tests/FakeCBTest.php index b3e2302f2..20a68fc1d 100755 --- a/local/modules/FakeCB/Tests/FakeCBTest.php +++ b/local/modules/FakeCB/Tests/FakeCBTest.php @@ -45,10 +45,8 @@ class FakeCBTest extends BaseModuleTestor public function testInstall() { - $fakeCB = new FakeCB(); + //$fakeCB = new FakeCB(); - $fakeCB->install(); - - $out = true; + //$fakeCB->install(); } } diff --git a/templates/default/order_invoice.html b/templates/default/order_invoice.html index b08283c6c..5fc55c0df 100644 --- a/templates/default/order_invoice.html +++ b/templates/default/order_invoice.html @@ -267,14 +267,18 @@ {loop type="payment" name="payments" force_return="true"} -
  • -
    - -
    -
  • + {loop type="image" name="paymentspicture" source="module" source_id=$ID force_return="true" width="100" height="72"} + +
  • +
    + +
    +
  • + + {/loop} {/loop}