diff options
| author | hartmut <noreply@maennchen1.de> | 2017-03-30 08:51:31 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-03-30 08:51:31 +0000 |
| commit | 26a7ba1e072e7420618ab3c0d3e61027ae781fce (patch) | |
| tree | 366657440cd6ec12f177742028fe355a67bc5b1e /views/mods/mod_deliverynote/deliverynote_pdf.phtml | |
| parent | a1a8ddb3a84a5edcc9e5a3ff0105c5ba553ac600 (diff) | |
Korrektur Varianten
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6165 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_deliverynote/deliverynote_pdf.phtml')
| -rw-r--r-- | views/mods/mod_deliverynote/deliverynote_pdf.phtml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/views/mods/mod_deliverynote/deliverynote_pdf.phtml b/views/mods/mod_deliverynote/deliverynote_pdf.phtml index a644dca..3a0d1b5 100644 --- a/views/mods/mod_deliverynote/deliverynote_pdf.phtml +++ b/views/mods/mod_deliverynote/deliverynote_pdf.phtml @@ -162,10 +162,10 @@ }
/*
- if ($this->hasMod('wpsg_mod_varianten') && isset($p['mod_vp_varkey']))
+ if ($this->hasMod('wpsg_mod_productvariants') && isset($p['mod_vp_varkey']))
{
- $variante = $this->callMod('wpsg_mod_varianten', 'getVariantenInfoArray', array($p['mod_vp_varkey']));
+ $variante = $this->callMod('wpsg_mod_productvariants', 'getVariantenInfoArray', array($p['mod_vp_varkey']));
$anr = $variante['akey'];
}
@@ -300,10 +300,11 @@ /**
* Variante ?
*/
- if ($this->get_option("wpsg_mod_deliverynote_pdf_varianten") == "1" && preg_match('/vp_(.*)/', $p['productkey']))
+ //$p['productkey'] = 'pv_6|4:1|7:3';
+ if ($this->get_option("wpsg_mod_deliverynote_pdf_varianten") == "1" && preg_match('/pv_(.*)/', $p['productkey']))
{
- $variInfo = $this->callMod('wpsg_mod_varianten', 'getVariantenInfoArray', array($p['productkey']));
+ $variInfo = $this->callMod('wpsg_mod_productvariants', 'getVariantenInfoArray', array($p['productkey']));
$height += $pdf->wpsg_MultiCell($prod_left + 10, $prod_top + $height + $offset - 1.5, 5, wpsg_translate(__('Variante: #1#', 'wpsg'), $variInfo['key']), 0, 'L', 0, $produkt_text_cell_width);
|
