• Hi,
    I have been using the plugin successfully for several months but there is an issue that I would like to resolve. I want the ZIP code to be displayed before the city name. I found out how to do this by modifying the PDFBillingAll.php and PDFShippingAll.php files as follows:

    private function CreateCityStateZipRow(&$table,$format)
        {
            if($this->orderValueRetriever->useTestData)
            {
                $city=$this->GetTestValue('City');
                $state=$this->GetTestValue('State');
                $zip=$this->GetTestValue('Zip');
            }else
            {
                $city=$this->GetValue('City');
                $state=$this->GetValue('State');
                $zip=$this->GetValue('Zip');
            }
    
            $value='';
    
            
    		if($this->GetBooleanValue('showZip'))
           
                $value.= $zip;
            
            
    		if($this->GetBooleanValue('showCity'))
    		   {
                if (strlen($value) > 0&&strlen($city)>0)
                    $value.=" ";
                $value .=$city;
    		   }
    		
            if($this->GetBooleanValue('showState'))
            {
                if (strlen($value) > 0&&strlen($state)>0)
                    $value.=", ";
                $value .= $state;
            }
    
            if($format=='plain')
            {
                if(trim($value)!='')
                {
                    if($table!='')
                        $table.=', ';
                }
    
                $table.=$value;
            }else
                $table.=$this->CreateRow('CityStateZip',$value);
    
        }

    It works but the problem is that each time a new update is downloaded, these 2 .php files revert to the initial state.
    What can I do to avoid having to manually correct these 2 files for each update?
    Thank you very much in advance.

    • This topic was modified 5 years, 1 month ago by marylinedis.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ZIP Code before City’ is closed to new replies.