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).

Bevestigingsemail order fabrikant

Bevestigingsemail order fabrikant

26 nov 2013 19:13
#1
Hallo Allen,

Ik wil graag in mijn confirmation email ook de fabrikant gedisplayed hebben omdat we zelfde product door diverse fabrikanten worden aangeboden. Door fabrikant te plaatsen is het makkelijker om het op te zoeken. Dit is mijn invoice_items.php

<?php
/**
*
* Order items view
*
* @package VirtueMart
* @subpackage Orders
* @author Max Milbers, Valerie Isaksen
* @link www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license 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');

if ( VmConfig::get('show_tax')) {
$colspan=7;
} else {
$colspan=8;
}
?>
<table class="html-email" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr align="left" class="sectiontableheader">
<td align="left" width="5%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SKU') ?></strong></td>
<td align="left" colspan="2" width="10%" ><strong><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></strong></td>
<td align="left" colspan="2" width="28%" ><strong><?php echo JText::_('COM_VIRTUEMART_PRODUCT_NAME_TITLE') ?></strong></td>
<td align="center" width="10%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_STATUS') ?></strong></td>
<td align="right" width="10%" ><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRICE') ?></strong></td>
<td align="right" width="6%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_QTY') ?></strong></td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right" width="10%" ><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_TAX') ?></strong></td>
<?php } ?>
<td align="right" width="11%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL_DISCOUNT_AMOUNT') ?></strong></td>
<td align="right" width="11%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></strong></td>
</tr>

<?php
foreach($this->orderDetails 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 valign="top">
<td align="left">
<?php echo $item->order_item_sku; ?>
</td>
<td align="left" colspan="2" >
<a title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturer->mf_name; ?></a>


<td align="left" colspan="2" >
<a href="<?php echo $product_link; ?>"><?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 $product_attribute;
}
?>
</td>


<td align="center">
<?php echo $this->orderstatuses[$item->order_status]; ?>
</td>
<td align="right" class="priceCol" >
<?php echo '<span >'.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'</span><br />'; ?>
</td>
<td align="right" >
<?php echo $qtt; ?>
</td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right" class="priceCol"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($item->product_tax ,$this->currency, $qtt)."</span>" ?></td>
<?php } ?>
<td align="right" class="priceCol" >
<?php echo $this->currency->priceDisplay( $item->product_subtotal_discount, $this->currency ); //No quantity is already stored with it ?>
</td>
<td align="right" class="priceCol">
<?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,$this->currency,$qtt) .'</span><br />' ;
}

echo $this->currency->priceDisplay( $item->product_subtotal_with_tax ,$this->currency); //No quantity or you must use product_final_price ?>
</td>
</tr>

<?php
}
?>
<tr><td colspan="<?php echo $colspan ?>"></td></tr>
<tr class="sectiontableentry1"><td align="left" colspan="2" >
<td colspan="6" align="right"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_PRICES_TOTAL'); ?></td>


<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderDetails->order_tax, $this->currency)."</span>" ?></td>
<?php } ?>
<td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderDetails->order_discountAmount, $this->currency)."</span>" ?></td>
<td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails->order_salesPrice, $this->currency) ?></td>
</tr>
<?php
if ($this->orderDetails->coupon_discount <> 0.00) {
$coupon_code=$this->orderDetails->coupon_code?' ('.$this->orderDetails->coupon_code.')':'';
?>
<tr>
<td align="right" class="pricePad" colspan="5"><?php echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT').$coupon_code ?></td>
<td align="right"></td>

<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"> </td>
<?php } ?>
<td align="right"><?php echo '- '.$this->currency->priceDisplay($this->orderDetails->coupon_discount, $this->currency); ?></td>
<td align="right"></td>
</tr>
<?php } ?>


<?php
foreach($this->orderDetails as $rule){
if ($rule->calc_kind== 'DBTaxRulesBill') { ?>
<tr >
<td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td>

<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"> </td>
<?php } ?>
<td align="right"> <?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?></td>
<td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td>
</tr>
<?php
} elseif ($rule->calc_kind == 'taxRulesBill') { ?>
<tr >
<td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td>
<?php } ?>
<td align="right"><?php ?> </td>
<td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td>
</tr>
<?php
} elseif ($rule->calc_kind == 'DATaxRulesBill') { ?>
<tr >
<td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"> </td>
<?php } ?>
<td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td>
<td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td>
</tr>

<?php
}

}
?>


<tr><td align="left"><td align="left">
<td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails ?></td>

<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails->order_shipment_tax, $this->currency) ?></span> </td>
<?php } ?>
<td align="right"></td>
<td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails->order_shipment + $this->orderDetails->order_shipment_tax, $this->currency); ?></td>
</tr>

<tr><td align="left">
<td align="left">
<td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails ?></td>

<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails->order_payment_tax, $this->currency) ?></span> </td>
<?php } ?>
<td align="right"></td>
<td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails->order_payment + $this->orderDetails->order_payment_tax, $this->currency); ?></td>
</tr>

<tr><td align="left">
<td align="left">
<td align="right" class="pricePad" colspan="6"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></strong></td>

<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails->order_billTaxAmount, $this->currency); ?></span></td>
<?php } ?>
<td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails->order_billDiscountAmount, $this->currency); ?></span></td>
<td align="right"><strong><?php echo $this->currency->priceDisplay($this->orderDetails->order_total, $this->currency); ?></strong></td>
</tr>

</table>
<?php /** @todo Handle the manufacturer view */ ?>
<input type="hidden" name="virtuemart_manufacturer_id" value="<?php echo $this->product->virtuemart_manufacturer_id ?>" />
<input type="hidden" name="virtuemart_category_id[]" value="<?php echo $this->product->virtuemart_category_id ?>" />


De rood gemarkeerde regels heb ik zelf toegevoegd. Maar krijg helaas niet de fabrikant staan op de bevestigingsemail.

Ik gebruik joomla 2.5
en virtuemart 2.0.2

Zie bijlage, er wordt een kolom gemaakt Fabrikant, maar fabrikant wordt niet weergegeven, waarschijnlijk is de tweede stukje rood gemarkeerde code niet goed.

Kan iemand mij hiermee helpen? Dankje

Dit bericht bevat een afbeelding als bijlage.
Log in of registreer om die te bekijken

Discussie gesloten.
  • krista
  • krista's berichtenfoto Heeft onderwerp gestart
  • Nieuw op Joomla!NL
  • Nieuw op Joomla!NL
  • Berichten: 7

Bevestigingsemail order fabrikant

26 nov 2013 20:17 - 26 nov 2013 20:18
#2
Je loopt met Virtuemart achter (VM 2.0.24c per 24.11.2013)

De code in het tweede deel in rood klopt inderdaad niet helemaal
Lees hier hoe je e.e.a. kunt aanroepen

bijvoorbeeld
Code:
$mf_url
groetjes,
Anne
www.numijneigenwebsite.nl + www.nmew.nl - KvK Brabant: 17281897Wil je Joomla!NL steunen? Dat kan met een donatie.
Laatst bewerkt 26 nov 2013 20:18 door AnneM.
Discussie gesloten.
  • AnneM
  • AnneM's berichtenfoto
  • Joomla!NL vriend(in)
  • Joomla!NL vriend(in)
  • Berichten: 1863

Bevestigingsemail order fabrikant

26 nov 2013 21:05
#3
Kun je me helpen wat de tweede gedeelte code dan moet zijn?
Discussie gesloten.
  • krista
  • krista's berichtenfoto Heeft onderwerp gestart
  • Nieuw op Joomla!NL
  • Nieuw op Joomla!NL
  • Berichten: 7

Bevestigingsemail order fabrikant

26 nov 2013 22:56
#4
Ik zie wel dat de sluitende </td> ontbreekt.
Maar helaas weet ik het ook verder niet. :S
groetjes,
Anne
www.numijneigenwebsite.nl + www.nmew.nl - KvK Brabant: 17281897Wil je Joomla!NL steunen? Dat kan met een donatie.
Discussie gesloten.
  • AnneM
  • AnneM's berichtenfoto
  • Joomla!NL vriend(in)
  • Joomla!NL vriend(in)
  • Berichten: 1863

Bevestigingsemail order fabrikant

27 nov 2013 11:42
#5
Zal niet eenvoudig worden omdat de velden opgehaald worden uit de tabel orders en je dus ergens iets moet verzinnen om product_id aan manufacturer_id te koppelen. Misschien dat er op het VM forum een oplossing te vinden is.
Maar ik zou me eerder druk maken om de veiligheid van je site als om dit soort details. Zowel je Joomla versie als je VM versie zijn zwaar verouderd.
Groetjes, Astrid
Gebruik de zoekfunctie van dit forum voordat je een nieuwe vraag plaatst.
Vragen uitsluitend via dit forum.
yndi.nl - kvk 17157725
Is je vraag beantwoord? Dan kan je het draadje zelf sluiten .
Wil je Joomla!NL steunen? Dat kan met een donatie.

Discussie gesloten.
  • Astrid
  • Astrid's Profielfoto
  • Moderator + Technisch team
  • Moderator + Technisch team
  • Berichten: 37150
Moderators: Juliank92PeterJelleRomke
Tijd voor maken pagina: 0.833 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