our address (German layout) is divided into 2 lines at the pdf, although it’s just entered as 1 line only, So street is one line, and number is another on the generated pdf, which should be 1 line only. How can I fix this?
I’ve copied the files into my theme already, but I have no clue what to change.
Thanks in advance.
]]><<?php echo $this->order->get_formatted_billing_full_name(); ?>
<?php echo $this->order->get_billing_address_1(); ?>
<?php $this->billing_phone(); ?>
Now I want to add states so I added <?php $this->get_billing_state(); ?>
My problem is its don’t show the state name. it show only code like BD-123
So how do I get state name or spit customer name from full billing address.
]]>ex:
Name:
Street:
Address:
telephone:
I was trying to do something like this, but cannot make it work properly, I am sure you will know why:
add_filter( ‘wpsl_address_format’, ‘custom_address_format’ );
function custom_address_format( $address_format ) {
if (ICL_LANGUAGE_CODE == “de”) {
$address_format = ‘zip_city_state’;
}
elseif (ICL_LANGUAGE_CODE == “en”) {
$address_format = ‘city_state_zip’;
}
return apply_filters( ‘wpsl_address_format’, $address_format );
}
I appreciate your help!
]]>Thank You
]]>https://www.loom.com/share/5390933ab8364a9c842e1ae6113a9c6a
]]>This works fine, however on the Shopping Cart page where the shipping location appears beneath the Cart Totals, sometimes a residue Asuatralian State location appears, even when the Country is set to somewhere else.
How can I set the Address formatting variable so that it only contains Country information (at least until the full address is entered at the Checkout)?
]]>Thanks
Terri
I can’t get the address format to work correctly, even when adding a new address format through the functions.php.
I have chosen for (city) (state) (zip code) but when I look at the front-end I get the following (city)(state)(zip code) which looks like DrontenFlevoland8313 AL instead of Dronten Flevoland 8313 AL.
]]>