newtech Posted January 12, 2007 Share Posted January 12, 2007 My invoices and packing slips do not show the state on them. My customer file has the state listed for the customer, but the invoice and packing slip do not show the state. What do I do to get the state to show up on invoice and packing slip? Link to comment Share on other sites More sharing options...
newtech Posted January 12, 2007 Author Share Posted January 12, 2007 My invoices and packing slips do not show the state on them. My customer file has the state listed for the customer, but the invoice and packing slip do not show the state. What do I do to get the state to show up on invoice and packing slip? From what I can tell it pulls the info from tep_address_format <td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td> <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td> What defines the data in tep_address_format? Link to comment Share on other sites More sharing options...
newtech Posted January 12, 2007 Author Share Posted January 12, 2007 From what I can tell it pulls the info from tep_address_format What defines the data in tep_address_format? includes/function/general.php Here is what I have. What is there in this code that stops the state from showing on invoice and packing slip? function tep_address_format($address_format_id, $address, $html, $boln, $eoln) { $address_format_query = tep_db_query("select address_format as format from " . TABLE_ADDRESS_FORMAT . " where address_format_id = '" . (int)$address_format_id . "'"); $address_format = tep_db_fetch_array($address_format_query); Link to comment Share on other sites More sharing options...
newtech Posted January 15, 2007 Author Share Posted January 15, 2007 includes/function/general.php Here is what I have. What is there in this code that stops the state from showing on invoice and packing slip? Any ideas on how I can get the state to appear on invoices and packing slips Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2007 Share Posted January 15, 2007 what country you deliver goods to? Each country has a format id field. Goto your osc admin->Locations/Taxes->Countries select the country you use to deliver the goods to, click edit set the format id to 2 is one of the formats that includes state. Link to comment Share on other sites More sharing options...
newtech Posted January 15, 2007 Author Share Posted January 15, 2007 what country you deliver goods to? Each country has a format id field. Goto your osc admin->Locations/Taxes->Countries select the country you use to deliver the goods to, click edit set the format id to 2 is one of the formats that includes state. That is what I have already. Name: United States ISO Code (2): US ISO Code (3): USA Address Format: 2 Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2007 Share Posted January 15, 2007 Any modifications to the default osc files? Because this functionality works with the stock osc. Do you have add-ons integrated? Link to comment Share on other sites More sharing options...
newtech Posted January 15, 2007 Author Share Posted January 15, 2007 Any modifications to the default osc files? Because this functionality works with the stock osc. Do you have add-ons integrated? Yeah about 15 contribs. But I don't see any of them changing the tep_address_format portion of general.php. However, I just did a test with a slightly modified store and the state does show on the invoice, so must likely I do have a contrib that is doing something. Will need to do more exploring. CAN ANYONE TELL ME MORE ABOUT what the address format feature in Countries is all about. It shows the options of 1-5. What are each of these options? Was just hoping someone had an idea exactly how the state is being handled code wise. My invoice and packing slip are calling for: tep_address_format td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td> <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'); ?></td> which is defined in general.php Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2007 Share Posted January 16, 2007 to see what each format number does browse with your phpmyadmin the address_format table or simply change the format id from your osc admin 1-5 and place few orders to see how osc displays the shipping/billing details once you place an order (in the customer account pages on the catalog end) Link to comment Share on other sites More sharing options...
newtech Posted January 19, 2007 Author Share Posted January 19, 2007 Easy solution. I made the state required and now it shows up on invoices. Realized with it not required there is no state field on create account page. This is crazy. It should be that it still can show up on crete account page, but not have the red asterick. We rather have it not required because it confuses intl order customers at times. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.