cheque module
This commit is contained in:
@@ -58,13 +58,13 @@ class Cheque extends BaseModule implements PaymentModuleInterface
|
|||||||
// TODO: Implement pay() method.
|
// TODO: Implement pay() method.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* YOU HAVE TO IMPLEMENT HERE ABSTRACT METHODD FROM BaseModule Class
|
|
||||||
* Like install and destroy
|
|
||||||
*/
|
|
||||||
public function install()
|
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()
|
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()
|
public function testInstall()
|
||||||
{
|
{
|
||||||
$fakeCB = new FakeCB();
|
//$fakeCB = new FakeCB();
|
||||||
|
|
||||||
$fakeCB->install();
|
//$fakeCB->install();
|
||||||
|
|
||||||
$out = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -267,17 +267,21 @@
|
|||||||
|
|
||||||
{loop type="payment" name="payments" force_return="true"}
|
{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>
|
<li>
|
||||||
<div class="radio">
|
<div class="radio">
|
||||||
<label for="payment_<?php echo $key; ?>">
|
<label for="payment_{$ID}">
|
||||||
<input type="radio" name="payment" id="payment_<?php echo $key; ?>" value="<?php echo $value; ?>">
|
<input type="radio" name="payment" id="payment_{$ID}" value="test">
|
||||||
<img src="img/payment/<?php echo $value; ?>.png">
|
<img src="{$IMAGE_URL}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|
||||||
|
{/loop}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user