Payment modules without image are now displayed ad text "Pay with ..."
This commit is contained in:
@@ -173,8 +173,9 @@
|
|||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
{/form}
|
{/form}
|
||||||
|
|
||||||
{form name="thelia.order.payment"}
|
{form name="thelia.order.payment"}
|
||||||
{assign var="isPost" value="{$smarty.post|count}"}
|
{assign var="isPost" value=$smarty.post|count}
|
||||||
<form id="form-cart-payment" action="{url path="/order/invoice"}" method="post" {form_enctype form=$form}>
|
<form id="form-cart-payment" action="{url path="/order/invoice"}" method="post" {form_enctype form=$form}>
|
||||||
|
|
||||||
{form_hidden_fields form=$form}
|
{form_hidden_fields form=$form}
|
||||||
@@ -262,25 +263,25 @@
|
|||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<ul class="list-payment">
|
<ul class="list-payment">
|
||||||
|
|
||||||
{loop type="payment" name="payments" force_return="true"}
|
{loop type="payment" name="payments" force_return="true"}
|
||||||
|
|
||||||
{assign "paymentModuleId" $ID}
|
{assign "paymentModuleId" $ID}
|
||||||
{loop type="image" name="paymentspicture" source="module" source_id=$ID force_return="true" width="100" height="72"}
|
<li>
|
||||||
|
<div class="radio">
|
||||||
|
<label for="payment_{$paymentModuleId}">
|
||||||
|
<input type="radio" name="{$name}" id="payment_{$paymentModuleId}" value="{$paymentModuleId}">
|
||||||
|
|
||||||
<li>
|
{loop type="image" name="paymentspicture" source="module" source_id=$ID force_return="true" width="100" height="72"}
|
||||||
<div class="radio">
|
<img src="{$IMAGE_URL}" alt="{intl l="Pay with %module_title" module_title=$TITLE}">
|
||||||
<label for="payment_{$paymentModuleId}_{$ID}">
|
{/loop}
|
||||||
<input type="radio" name="{$name}" id="payment_{$paymentModuleId}_{$ID}" value="{$paymentModuleId}">
|
|
||||||
<img src="{$IMAGE_URL}">
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
{/loop}
|
|
||||||
|
|
||||||
|
{elseloop rel="paymentspicture"}
|
||||||
|
{intl l="Pay with %module_title" module_title=$TITLE}
|
||||||
|
{/elseloop}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
{/loop}
|
{/loop}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -289,14 +290,8 @@
|
|||||||
<a href="{url path="/order/delivery"}" role="button" class="btn btn-back"><span>{intl l="Back"}</span></a>
|
<a href="{url path="/order/delivery"}" role="button" class="btn btn-back"><span>{intl l="Back"}</span></a>
|
||||||
<button type="submit" class="btn btn-checkout-next"><span>{intl l="Next Step"}</span></button>
|
<button type="submit" class="btn btn-checkout-next"><span>{intl l="Next Step"}</span></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{/form}
|
{/form}
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user