Subversion Repositories wpShopGermany4

Rev

Go to most recent revision | Details | 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²
12
    $strOut = wpsg_ff($view['width'], $view['unit_price'], true, 0).' x '.wpsg_ff($view['length'], $view['unit_price'], true, 0).' = '.wpsg_ff($view['area'], $view['unit_price'].'²');
13
 
14
    // (1 m² ≅ 1,00 EUR)
15
    $strOut .= '('.wpsg_ff($view['price_onepice'], $this->get_option('wpsg_currency').' / '.$view['unit_price'].'²').')';
16
 
17
    echo wpsg_pad_left(__('Größe:', 'wpsg').' ', 12); ?><?php echo $strOut; ?>