Subversion Repositories wpShopGermany4

Rev

Rev 7706 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7706 daniel 1
<?php
2
 
3
    declare(strict_types=1);
4
 
5
    /**
6
     * Template für die Integration des Flächenprodukts in die Text Mail im Bereich der Produkte
7
     */
8
 
9
    $view = $this->view['wpsg_mod_printshop'];
10
 
11
    // 150,55 m x 1,5 m = 225,83 m²
7717 daniel 12
    $strOut = wpsg_ff($view['width'], $view['unit_input'], true, 0).' x '.wpsg_ff($view['length'], $view['unit_input'], true, 0).' = '.wpsg_ff($view['area'], $view['unit_price'].'²');
7706 daniel 13
 
14
    // (1 m² ≅ 1,00 EUR)
7717 daniel 15
    $strOut .= ' ('.wpsg_ff($view['price_onepice'], $this->get_option('wpsg_currency').' / '.$view['unit_price'].'²').')';
7706 daniel 16
 
17
    echo wpsg_pad_left(__('Größe:', 'wpsg').' ', 12); ?><?php echo $strOut; ?>