News:

Support the VirtueMart project and become a member

Main Menu

Shipping Fields on Invoice for Shipping Label

Started by jaybird2024, February 28, 2012, 07:46:56 AM

Previous topic - Next topic

jaybird2024

Using VM2 on Joomla 2.5.1

How do I change the order of the address fields for the invoice?

Current addresses on invoices looks like this:

joe smith
12345 myStreet
90026, Beverly Hills
United States
California


USA Address should look like this instead:

joe smith
12345 myStreet
Beverly Hills, California
United States

How can I fix this?
Thanks

jaybird2024

Hi,
Does anyone know the file/files being used to generate the address fields perhaps we can start from there?

Improperly formatted addresses on an invoices are very unprofessional, this needs to be fixed, any ideas?

wingreen

Most of the 'editable' files that you need are located in /components/com_virtuemart/views/user/tmpl  You will be able to find the email templates in there too.
Also, if you want to change some of the text, this can be found in the language files: /language/en-GB/en-GB.com_virtuemart.ini

Hope this helps

jaybird2024


jaybird2024

It would seem that the SHIP-TO section is not so accessible.

The file named " edit_address_addshipto.php " loses me at   COM_VIRTUEMART_USER_FORM_SHIPTO_LBL

If anyone has any ideas on how to access the address formatting order, please let us know.

Thanks in advance!

Here is the file:


<?php
/**
 *
 * Enter address data for the cart, when anonymous users checkout
 *
 * @package VirtueMart
 * @subpackage User
 * @author Max Milbers
 * @link http://www.virtuemart.net
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: edit_address_addshipto.php 5401 2012-02-09 08:48:52Z alatak $
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
?>



<fieldset>
    <legend>
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?>
    </legend>
    <?php echo $this->lists['shipTo']; ?>

</fieldset>


jaybird2024

NOTE TO THE VM2 AFFLICTED
Please stop messaging me to find out if I fixed this and the many other VM2 issues.

I can not help it that VM support does not answer technical issues here.

I have given up on VM!
2 - 3 weeks without answers to broken/sloppy code is ridiculous.
Also, I will no longer be writing updates to my extensions for VM either, makes no sense when VM2 does not work and support is practically non-existant.

I am changing over to CS-CART, tons of features, chat support, forum support and even a ticket support system.

Good luck trying to get help here, I hope things change around here because VM used to be great.

CYA