Welkom bij Joomla!NL

Om alle mogelijkheden van dit forum te kunnen gebruiken, moet je je eerst registreren.

Zet de naam van de webshopextensie in de titel en vermeld verder in iedere vraag:
  1. De exacte versie van Joomla! die je gebruikt
  2. De exacte versie van de webshopextensie.
  3. De volledige url van je website (indien mogelijk).

opgelost orderstatus verwijderen uit Factuur

orderstatus verwijderen uit Factuur

14 apr 2015 16:50
#1
Hoi allemaal,

Ik heb een aardige layout maar ik krijg de orderstatus niet uit de code gesleuteld
Ik vind dat echt niet mooi.
Ik zie waar ze zitten maar krijg niet voor elkaar om ze eruit te halen.
hieronder de code van invoice_order.php
Ik via taaloverride mijn eigen labels aan de velden gegeven.

misschien kan iemand een expert blik werpen?

het gaat om de status "bevestigd door klant" (dat stuur je niet naar een klant toch? vindt ik echt niet netjes.)
Code:
<?php /** * * Order detail view * * @package VirtueMart * @subpackage Orders * @author Oscar van Eijk, Valerie Isaksen * @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: details_order.php 5341 2012-01-31 07:43:24Z alatak $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); ?> <style> table.addressestable,table.datatable,table.terms { padding: 3pt; width: 100%; } table.invoice_data { width: 100%; text-align: center; } .documenttitle { width: 100%; font-size:xx-large; background-color: #e0e0e0; } .documenthead{font-size:x-small;} .shipmentaddress, .billingaddress{ background-color: #e0e0e0;} .envelope_window_sender { font-size: xx-small; } .shipmentaddresshead{font-size:x-small;} .billingaddresshead{font-size:x-small;} .extrafield{font-size:small;} .terms { font-size:small; } .billingaddresshead { border-bottom: 1pt black solid; font-size: x-small; } </style> <?php $info = $this->orderDetails['details']['BT']; ?> <table class="datatable"> <tr width="100%"> <td align="left" width="45%"> <?php /* <div><img src="'.$a['logo'].'" alt="" /></div>' */?> </td> <td width="5%"></td> <td width="5%"></td> <td align="center" width="45%"> <div class="documenttitle"><?php if ($this->doctype == 'invoice') { if ($this->invoiceNumber) { echo JText::_('COM_VIRTUEMART_INVOICE').' '.$this->invoiceNumber; } else { echo JText::_('COM_VIRTUEMART_ORDER_CONFIRMATION').' '.$this->order_number; } } elseif ($this->doctype == 'deliverynote') { echo JText::_('COM_VIRTUEMART_DELIVERYNOTE'); } elseif ($this->doctype == 'confirmation') { echo JText::_('COM_VIRTUEMART_CONFIRMATION'); }; if (!in_array ($this->orderDetails['details']['BT']->order_status, array('C','S'))) { echo "<br/>"; echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_STATUS'); echo ": "; echo $this->orderstatuses[$this->orderDetails['details']['BT']->order_status]; }; ?></div> <table class="invoice_data"> <tr> <td class="documenthead"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PRINT_BILL_NUMBER_LBL') ?></td> <td class="documenthead"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PRINT_ORDER_NUMBER_LBL') ?></td> <td class="documenthead"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PRINT_CUSTOMER_NUMBER_LBL') ?></td> </tr> <tr> <td><?php if ($this->invoiceNumber) echo $this->invoiceNumber; ?></td> <td><?php echo $info->order_number; ?></td> <td><?php echo $info->virtuemart_user_id; ?></td> </tr> <tr> <td class="documenthead"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PRINT_INVOICE_DATE_LBL') ?></td> <td class="documenthead"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PRINT_ORDER_DATE_LBL') ?></td> <td class="documenthead"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PRINT_DUE_DATE_LBL') ?></td> </tr> <tr> <td><?php echo vmJsApi::date($this->invoiceDate, 'LC4', true); ?></td> <td><?php echo vmJsApi::date($this->orderDetails['details']['BT']->created_on, 'LC4', true); ?></td> <td><?php /* $a['bill_due']*/ ?></td> </tr> </table> </td> </tr> </table> <div></div> <?php function print_addressfields($addr) { if ($addr['company']['value'] != '') { echo $addr['company']['value']."<br />"; } $titlearray=array(); foreach (array('title', 'first_name', 'middle_name', 'last_name') as $t) { if (isset($addr[$t])) $titlearray[]=$addr[$t]['value']; } echo (implode (" ", $titlearray)."<br/>"); /* if ($addr['extra_field_1']['value'] != '') { echo '<span class="extrafield">'.$addr['extra_field_1']['title'].': '.$addr['extra_field_1']['value'].'</span><br />'; } if ($addr['extra_field_2']['value'] != '') { echo '<span class="extrafield">'.$addr['extra_field_2']['title'].': '.$addr['extra_field_2']['value'].'</span><br />'; }*/ echo $addr['address_1']['value'] . '<br />'; if ($addr['address_2']['value']) { echo $addr['address_2']['value'].'<br/>'; } echo $addr['zip']['value'] . ' ' . $addr['city']['value'] . '<br />'; if ($addr['virtuemart_state_id']['value'] != '' && $addr['virtuemart_state_id']['value'] != '-') { echo $addr['virtuemart_state_id']['value'] . '<br />'; } echo $addr['virtuemart_country_id']['value'] . '<br />'; } ?> <table class = "addressestable" cellpadding="5"> <tr width="100%"> <td align="left" width="45%" class="billingaddress billingaddresshead envelope_window_sender">Afz</td> <td width="5%"></td> <td width="5%"></td> <td align="left" width="45%" class="shipmentaddresshead shipmentaddress"> <?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL') ?> </td> </tr> <tr> <td align="left" width="45%" class="billingaddress"><?php print_addressfields($this->userfields['fields']); ?> </td> <td width="5%"></td> <td width="5%"></td> <td align="left" width="45%" class="shipmentaddress"><?php print_addressfields ($this->shipmentfields['fields']); ?> </td> </tr> </table> <div>&nbsp;</div> <table class="terms"> <tr width="100%"> <td width="20%"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPMENT_LBL') ?>: </td> <td width="35%"><?php echo $this->orderDetails['shipmentName']; ?></td> <?php if (in_array ($this->orderDetails['details']['BT']->order_status, array('C','S'))) { ?> <td colspan=2 width="45%"><?php echo JText::_('COM_VIRTUEMART_INVOICE_PAID_LBL'); ?></td> <?php } else { ?> <td width="20%"><?php {}/* echo JText::_('PLG_PHOCAPDF_VM_DELIVERY_PRINT_BILL_TERMS_LBL').': */?></td><td width="25%"><?php {}/*$a['due_date'] JText::_('PLG_PHOCAPDF_VM_DELIVERY_DAYS') */?></td> <?php } ?> </tr> <tr width="100%"> <td width="20%"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT_LBL')?>: </td> <td width="35%"><?php echo $this->orderDetails['paymentName']; ?></td> </tr> </table> <?php if ($this->orderDetails['details']['BT']->customer_note) { ?> <p class="customer_note"><b><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_CUSTOMER_NOTE') ?></b>: <?php echo $this->orderDetails['details']['BT']->customer_note; ?></p> <?php } ?> <div>&nbsp;</div>

en dan hoort er de invoice_items.php ook bij:
Code:
<?php /** * * Order items view * * @package VirtueMart * @subpackage Orders * @author Max Milbers, Valerie Isaksen * @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: details_items.php 5432 2012-02-14 02:20:35Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); $colspan=8; if ($this->doctype != 'invoice') { $colspan -= 4; } elseif ( ! VmConfig::get('show_tax')) { $colspan -= 1; } ?> <?php /* Changes by RK: -) No discount column desired -) No product status column desired */ $label_colspan=5; $colspan -= 1; ?> <style> table.invoice_itemtable { border-collapse: none; border-spacing: 1pt; padding: 3pt;} .invoice_itemtable .sectiontableheader { border: 1px solid #000000; background-color: #a0a0a0; } .invoice_itemtable .cell_sku, .invoice_itemtable .cell_quantity, .invoice_itemtable .cell_tax, .invoice_itemtable th.cell_total, .invoice_itemtable th.cell_price { text-align: center; } .invoice_itemtable .cell_price, .invoice_itemtable .cell_total { text-align: right; } .invoice_itemtable .cell_productname { text-align: left; } /* Have to use a class to remove underline/blue from links! a:link doesn't work */ .link_plain { color: black; text-decoration: none; } .evenodd0 { background-color: #FFFFFF; } .evenodd1 { background-color: #e0e0e0; } .cell_label { text-align: left; } .row_order_total { font-size: larger; } tr.row_order_total td.cell_label, tr.row_order_total td.cell_total { border-top: 1px black solid; } tr.row_separator td { border-top: 1px #e0e0e0 solid; } .row_order_total td { font-weight: bold; } .vmshipment_description, .vmpayment_description { display: none; } /* .vmshipment_name, .vmpayment_name { color: gray; } */ td.priceCol { white-space: nowrap; } table.invoice_itemtable td { padding: 3px; } </style> <table class="html-email invoice_itemtable" width="100%"> <tr class="sectiontableheader" height="20px"> <th width="11%" class="cell_sku"><?php echo JText::_('COM_VIRTUEMART_ORDER_HEADER_QTY') ?></th> <th colspan="2" width="44%" class="cell_productname"><?php echo JText::_('COM_VIRTUEMART_ORDER_HEADER_PRODUCT_NAME') ?></th> <?php if ($this->doctype == 'invoice') { ?> <th width="11%" class="cell_price"><?php echo JText::_('COM_VIRTUEMART_ORDER_HEADER_PRICE') ?></th> <?php } ?> <th width="11%" class="cell_quantity"><?php echo JText::_('COM_VIRTUEMART_ORDER_HEADER_SKU') ?></th> <?php if ($this->doctype == 'invoice') { ?> <?php if ( VmConfig::get('show_tax')) { ?> <th width="10%" class="cell_tax"><?php echo JText::_('COM_VIRTUEMART_ORDER_HEADER_TAX') ?></th> <?php } ?> <th width="12%" class="cell_total"><?php echo JText::_('COM_VIRTUEMART_ORDER_HEADER_TOTAL') ?></th> <?php } ?> </tr> <?php $n=0; foreach($this->orderDetails['items'] as $item) { $qtt = $item->product_quantity ; $product_link = JURI::root().'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id; ?> <tr class="evenodd<?php print ($n++ % 2) ?>"> <td class="cell_sku"><?php echo $qtt; ?></td> <td class="cell_productname" colspan="2" > <a href="<?php echo $product_link; ?>" class="link_plain"><?php echo $item->order_item_name; ?></a> <?php // vmdebug('$item',$item); if (!empty($item->product_attribute)) { if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE'); echo '<br/>'.$product_attribute; } ?> </td> <?php if ($this->doctype == 'invoice') { ?> <td class="cell_price priceCol" ><?php echo $this->currency->priceDisplay($item->product_item_price); ?></td> <?php } ?> <td class="cell_quantity" ><?php echo $item->order_item_sku; ?></td> <?php if ($this->doctype == 'invoice') { ?> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax priceCol"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($item->product_tax ,0, $qtt)."</span>" ?></td> <?php } ?> <td class="priceCol cell_total"> <?php $item->product_basePriceWithTax = (float) $item->product_basePriceWithTax; $class = ''; if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) { echo '<span class="line-through" >'.$this->currency->priceDisplay($item->product_basePriceWithTax,0,$qtt) .'</span>' ; } echo $this->currency->priceDisplay( $item->product_subtotal_with_tax ,0); //No quantity or you must use product_final_price ?> </td> <?php } ?> </tr> <?php } ?> <?php if ($this->doctype == 'invoice') { ?> <tr class="row_separator"><td colspan="<?php echo $colspan ?>"></td></tr> <tr class="row_total"> <td colspan="2"></td> <td colspan="<?php echo $colspan-4; ?>" class="sums_label"><?php echo JText::_('COM_VIRTUEMART_ORDER_RESULT_PRODUCTPRICES'); ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_tax) ?></td> <?php } ?> <td class="cell_total"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_salesPrice) ?></td> </tr> <?php if ($this->orderDetails['details']['BT']->coupon_discount <> 0.00) { $coupon_code=$this->orderDetails['details']['BT']->coupon_code?' ('.$this->orderDetails['details']['BT']->coupon_code.')':''; ?> <tr class="row_coupon"> <td colspan="2"></td> <td colspan="<?php echo $colspan-4; ?>" class="pricePad"><?php echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT').$coupon_code ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"> </td> <?php } ?> <td align="right"><?php echo $this->currency->priceDisplay(-$this->orderDetails['details']['BT']->coupon_discount); ?></td> <td align="right"></td> </tr> <?php } ?> <?php foreach($this->orderDetails['calc_rules'] as $rule){ if ($rule->calc_kind== 'DBTaxRulesBill') { ?> <tr class="row_tax_total"> <td colspan="2"></td> <td colspan="<?php echo $colspan-4; ?>" class="pricePad"><?php echo $rule->calc_rule_name ?> </td> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax"> </td> <?php } ?> <td class="cell_total"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?> </td> </tr> <?php } elseif ($rule->calc_kind == 'taxRulesBill') { ?> <tr class="row_tax_total" > <td colspan="2"></td> <td colspan="<?php echo $colspan-4; ?>" class="pricePad"><?php echo $rule->calc_rule_name ?> </td> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?> </td> <?php } ?> <td class="cell_total"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?> </td> </tr> <?php } elseif ($rule->calc_kind == 'DATaxRulesBill') { ?> <tr class="row_tax_total" > <td colspan="2"></td> <td colspan="<?php echo $colspan-4; ?>" class="pricePad"><?php echo $rule->calc_rule_name ?> </td> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax"> </td> <?php } ?> <td class="cell_total"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?> </td> </tr> <?php } }/* */ ?> <tr class="row_shipping"> <td colspan="2"></td> <td class="cell_label" colspan="<?php echo $colspan-4 ?>"><?php printf (JText::_('COM_VIRTUEMART_ORDER_RESULT_SHIPPING'), $this->orderDetails['shipmentName']) ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment_tax) ?></span> </td> <?php } ?> <td class="cell_total"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment + $this->orderDetails['details']['BT']->order_shipment_tax); ?></td> </tr> <tr class="row_payment"> <td colspan="2"></td> <td class="cell_label" colspan="<?php echo $colspan-4 ?>"><?php printf (JText::_('COM_VIRTUEMART_ORDER_RESULT_PAYMENT'), $this->orderDetails['paymentName']) ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td class="cell_tax"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment_tax) ?></span> </td> <?php } ?> <td class="cell_total"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment + $this->orderDetails['details']['BT']->order_payment_tax); ?></td> </tr> <tr class="row_order_total"> <td colspan="2"></td> <td class="cell_label" colspan="<?php echo $colspan-4 ?>"><?php echo JText::_('COM_VIRTUEMART_ORDER_RESULT_TOTAL') ?></td> <?php /*if ( VmConfig::get('show_tax')) { ?><td class="cell_tax"></td> <?php } */?> <td class="cell_total" colspan="2"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total); ?></td> </tr> <tr class="row_tax_total"> <td colspan="2"></td> <td class="cell_label" colspan="<?php echo $colspan-4 ?>"><?php echo JText::_('COM_VIRTUEMART_ORDER_RESULT_TAX') ?></td> <?php /*if ( VmConfig::get('show_tax')) { ?><td class="cell_tax"><span class='priceColor2'></span></td><?php } */?> <td class="cell_total" colspan="2"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billTaxAmount); ?></td> </tr> <?php } ?> </table>
  • edensan
  • edensan's berichtenfoto Heeft onderwerp gestart
  • Bekend met Joomla!NL
  • Bekend met Joomla!NL
  • Berichten: 90

orderstatus verwijderen uit Factuur

24 mei 2015 13:52
#2
Wat gebeurd er als je de volgende code weglaat?
Code:
if (!in_array ($this->orderDetails['details']['BT']->order_status, array('C','S'))) { echo "<br/>"; echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_STATUS'); echo ": "; echo $this->orderstatuses[$this->orderDetails['details']['BT']->order_status]; };
Managing partner Nederland - Pixlogix.com
(KVK / CIN: U72200GJ2014PTC081526)
Ons team heeft meer dan 15 jaar ervaring in oplossingen op maat!
  • hielkio
  • hielkio's berichtenfoto
  • Regelmatige bezoeker van Joomla!NL
  • Regelmatige bezoeker van Joomla!NL
  • Berichten: 299

orderstatus verwijderen uit Factuur

24 mei 2015 23:03
#3
THX
  • edensan
  • edensan's berichtenfoto Heeft onderwerp gestart
  • Bekend met Joomla!NL
  • Bekend met Joomla!NL
  • Berichten: 90
Moderators: Juliank92PeterJelleRomke
Tijd voor maken pagina: 0.824 seconden

Wil je Joomla!NL steunen?

Steun Joomla!NLAlle teamleden werken enthousiast, op vrijwillige basis, mee aan Joomla!NL. Maar een website met forum kost nu eenmaal geld. Dus als je Joomla!NL wilt steunen, dan kan dat, graag zelfs!

Lees hier meer informatie