cheque module
This commit is contained in:
@@ -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()
|
||||
|
||||
BIN
local/modules/Cheque/images/cheque.png
Normal file
BIN
local/modules/Cheque/images/cheque.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
@@ -45,10 +45,8 @@ class FakeCBTest extends BaseModuleTestor
|
||||
|
||||
public function testInstall()
|
||||
{
|
||||
$fakeCB = new FakeCB();
|
||||
//$fakeCB = new FakeCB();
|
||||
|
||||
$fakeCB->install();
|
||||
|
||||
$out = true;
|
||||
//$fakeCB->install();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,17 +267,21 @@
|
||||
|
||||
{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"}
|
||||
|
||||
<li>
|
||||
<div class="radio">
|
||||
<label for="payment_<?php echo $key; ?>">
|
||||
<input type="radio" name="payment" id="payment_<?php echo $key; ?>" value="<?php echo $value; ?>">
|
||||
<img src="img/payment/<?php echo $value; ?>.png">
|
||||
<label for="payment_{$ID}">
|
||||
<input type="radio" name="payment" id="payment_{$ID}" value="test">
|
||||
<img src="{$IMAGE_URL}">
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
{/loop}
|
||||
|
||||
{/loop}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user