News:

AbanteCart v1.4.2 is released.

Main Menu
support

Storefront icon for extension

Started by quekbhj, November 11, 2013, 04:02:51 AM

Previous topic - Next topic

quekbhj

Hi

I have uploaded an icon for one of the extension -- "weight based shipping" under "Storefront Icon".
However this shipping icon doesn't display at checkout shipping selection.
Please advise.

Note: I am using template_ac548. Will this template cause this issue?

Regards
Jasmine

abantecart

This template is older and does not support storefront icons.

You can try to add code from default template file.

edit:
extensions/template548/storefront/view/template548/template/pages/checkout/shipping.tpl

Locate:

                                <td><?php echo $quote['radio']; ?></td>
                                <td><label for="shipping_shipping_method<?php echo $quote['id']; ?>" style="cursor: pointer;"><?php echo $quote
['title']; ?>



ADD

<?php $icon $shipping_method['icon'];
if ( count ($icon) ) {  ?>

<?php if ( is_file(DIR_RESOURCE $icon['image']) ) { ?>
<span class="shipping_icon mr10"><img src="resources/<?php echo $icon['image']; ?>" title="<?php echo $icon['title']; ?>" /></span>
<?php } else if (!empty( $icon['resource_code'] )) { ?>
<span class="shipping_icon mr10"><?php echo $icon['resource_code']; ?></span>
<?php } } ?>

quekbhj

Hi

Thank you for providing the code.

How do I get the shipper's logo to appear for the respectively shipping option?

Regards

abantecart

#3
I am not sure I get this. There is a icon per shipping method. Do you need Icons inside the shipping method itself?
This will require some development.

quekbhj

Hi

Enclosed a screenshot for your reference.
Currently the "Singpost" logo is the same level as the store logo.

Is it doable to have "Singpost" logo at the "Weight Based Shipping"?

Another question, I would like to change the description "Pickup From Store". Where can I change it?

Thank you
Jasmine


Forum Rules Code of conduct
AbanteCart.com 2010 -