VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mati25 on January 30, 2014, 18:01:50 PM

Title: How to remove invoice field?
Post by: mati25 on January 30, 2014, 18:01:50 PM
My shop is for gamers, im selling some virtual things. I dont need invoices in my shop, how can I delete that field?

Field named "Dane do fak­tury"
(http://gyazo.com/8c55d8a05e7386d5091ab06978644f45.png)

I'm doing that for about 10 days, i checked every page on google in my and english language - I found a few answers that did not help.

My joomla: 2.5.17
My virtuemart: 2.0.26a
Title: Re: How to remove invoice field?
Post by: jenkinhill on January 31, 2014, 10:43:10 AM
That looks like a checkout page - and the bit top left with the "house" icon is the billing address.

The default view template for that is components/com_virtuemart/views/cart/tmpl/shopper_adresses.php   - or it may be in your Joomla template html directory if using overrides allready.
Title: Re: How to remove invoice field?
Post by: mati25 on February 02, 2014, 21:37:46 PM
Yes, it's a checkout when someone wants to choose payment and ship method.

Anyway I'm newbie in coding etc. I see my file but i dont know what should be deleted.

<?php

/**

*

* Layout for the shopping cart and the mail

* shows the chosen adresses of the shopper

* taken from the cart in the session

*

* @package VirtueMart

* @subpackage Cart

* @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.

*

*/



// Check to ensure this file is included in Joomla!

defined('_JEXEC') or die('Restricted access');

?>


<table width="100%">

  <tr>

    <td width="50%" bgcolor="#ccc">

<?php echo JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); ?>

</td>

<td width="50%" bgcolor="#ccc">

<?php echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?>

</td>

  </tr>

  <tr>

    <td width="50%">



<?php  foreach($this->BTaddress['fields'] as $item){

if(!empty($item['value'])){

echo $item['title'].': '.$this->escape($item['value']).'<br/>';

}

?>




</td>

    <td width="50%">

<?php

if(!empty($this->STaddress['fields'])){

foreach($this->STaddress['fields'] as $item){

if(!empty($item['value'])){

echo $item['title'].': '.$this->escape($item['value']).'<br/>';

}

}

} else {

foreach($this->BTaddress['fields'] as $item){

if(!empty($item['value'])){

echo $item['title'].': '.$this->escape($item['value']).'<br/>';

}

}

?>


</td>

  </tr>

</table>
Title: Re: How to remove invoice field?
Post by: jenkinhill on February 04, 2014, 15:38:02 PM
You could delete the following but without some billing info I don't think you will be allowed to checkout.


<tr>

    <td width="50%" bgcolor="#ccc">

<?php echo JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); ?>

</td>

<td width="50%" bgcolor="#ccc">

<?php echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?>

</td>

  </tr>