Author Topic: Storefront icon for extension  (Read 2413 times)

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
Storefront icon for extension
« 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

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4164
  • Karma: +252/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Storefront icon for extension
« Reply #1 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 } } ?>
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
Re: Storefront icon for extension
« Reply #2 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

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4164
  • Karma: +252/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Storefront icon for extension
« Reply #3 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.
« Last Edit: November 12, 2013, 04:22:07 PM by eCommerce Core »
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline quekbhj

  • Full Member
  • ***
  • Posts: 133
  • Karma: +4/-1
    • View Profile
Re: Storefront icon for extension
« Reply #4 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


 

Powered by SMFPacks Social Login Mod