View Single Post
  #1  
Old 06-18-2015, 11:26 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default trying to fix the address layout on the gmap.tpl file

When I click on a customers location in the admin/orders/ it opens up a map with the customer name and address in the top left corner. I would like to fix the way the address is laid out. The template that lays out the address is /common_files/gmap.tpl

Code:
{capture name="gmap"} <strong>{$description.name}</strong><br /> ({if $description.type eq "shipping"} {$lng.lbl_shipping_address} {else} {$lng.lbl_billing_address} {/if})<br /> {$description.address}<br /> {$lng.lbl_phone}: {$description.phone} {/capture} <a href="javascript:void(0);" onclick="javascript:GMap.showModal('{$address|escape:htmlcompat|escape:javascript}','{$smarty.capture.gmap|escape:htmlcompat|escape:javascript}');" class="gmarker{if $show_on_map eq "1"} gmarker-show-on{/if}">{if $show_on_map eq "1"}{$lng.lbl_gmap_show}{/if}</a>

the line in question is the
Code:
{$description.address}

How do I adjust the way that variable is laid out? Meaning I want to have
Street
City, State, Zip

instead of
Street
Zip
City
State

Any help would be appreciated. Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote