Skip to content

Commit

Permalink
tweak easypost & shippings options display
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Jan 22, 2019
1 parent 20a2f52 commit 11fcd0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ class easypostcalculator extends shippingcalculator
//overridden methods:
public function name()
{
return gt('easypost');
return gt('EasyPost');
}

public function description()
Expand Down
Expand Up @@ -29,6 +29,7 @@
{$oc=$option.cost|number_format:2}
{control type=radio name="option" columns=1 value=$option.id label="`$oc|currency` - `$option.title`" checked=$selected}
{/foreach}
{br}
<button type="submit" class="{button_style color=blue size=small}">{"Update Shipping Option"|gettext}</button>
{/form}
</div>
Expand All @@ -45,6 +46,7 @@
</div>
{pop id="change_shipping" type=form text="Change Shipping Option"|gettext title="Shipping Options"|gettext buttons="Close"|gettext}
{form name="shpmthdopts" controller=shipping action=selectShippingOption}
<div class="row">
{$width = 12 / count($shipping->pricelist)}
{if $width < 4}{$width = 4}{/if}
{foreach $shipping->pricelist as $carrier=>$carriers}
Expand All @@ -65,9 +67,11 @@
{/if}
</div>
{/foreach}
{br}
<div>
<button type="submit" class="{button_style color=blue size=small}">{"Update Shipping Option"|gettext}</button>
</div>
</div>
{/form}
{/pop}
{/if}
Expand Down

0 comments on commit 11fcd0a

Please sign in to comment.