AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: quekbhj on November 11, 2013, 04:02:51 AM

Title: Storefront icon for extension
Post by: quekbhj on November 11, 2013, 04:02:51 AM
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
Title: Re: Storefront icon for extension
Post by: abantecart on November 12, 2013, 08:55:07 AM
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:
Code: [Select]
                                <td><?php echo $quote['radio']; ?></td>
                                <td><label for="shipping_shipping_method<?php echo $quote['id']; ?>" style="cursor: pointer;"><?php echo $quote
['title']; ?>


ADD
Code: [Select]
<?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 } } ?>
Title: Re: Storefront icon for extension
Post by: quekbhj on November 12, 2013, 11:28:09 AM
Hi

Thank you for providing the code.

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

Regards
Title: Re: Storefront icon for extension
Post by: abantecart on November 12, 2013, 02:13:28 PM
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.
Title: Re: Storefront icon for extension
Post by: quekbhj on November 14, 2013, 10:25:43 AM
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