• Resolved whitehallsd

    (@whitehallsd)


    I have connections installed and it looks really good. However, I noticed the address block is incorrectly displayed.

    I would like the typical:

    address
    city, state zip

    The layout I get is:
    address
    city
    state
    zip

    What code do I edit to fixt the address block layout.

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter whitehallsd

    (@whitehallsd)

    Ok, so I found the code. Not exactly sure what I need to change to get the city, state zip on same line. Any help would be great! Thanks!

    public function getAddressBlock()
    	{
    		if ($this->getAddresses())
    		{
    			foreach ($this->getAddresses() as $address)
    			{
    				$out .= '<div class="adr" style="margin-bottom: 10px;">' . "\n";
    					if ($address->name != NULL || $address->type != NULL) $out .= '<span class="address_name"><strong>' . $address->name . '</strong></span><br />' . "\n"; //The OR is for compatiblity for 0.2.24 and under
    					if ($address->line_one != NULL) $out .= '<div class="street-address">' . $address->line_one . '</div>' . "\n";
    					if ($address->line_two != NULL) $out .= '<div class="extended-address">' . $address->line_two . '</div>' . "\n";
    					if ($address->city != NULL) $out .= '<span class="locality">' . $address->city . '</span>&nbsp;' . "\n";
    					if ($address->state != NULL) $out .= '<span class="region">' . $address->state . '</span>&nbsp;' . "\n";
    					if ($address->zipcode != NULL) $out .= '<span class="postal-code">' . $address->zipcode . '</span><br />' . "\n";
    					if ($address->country != NULL) $out .= '<span class="country-name">' . $address->country . '</span>' . "\n";
    					$out .= $this->gethCardAdrType($address->type);
    				$out .= '</div>' . "\n\n";
    
    			}
    		}
    		return $out;
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Connections] Address Format’ is closed to new replies.