Subversion Repositories wpShopGermany4

Rev

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

<?php

    declare(strict_types=1);

    /**
     * Template für die Integration des Flächenprodukts in die Text Mail im Bereich der Produkte
     */

    $view = $this->view['wpsg_mod_printshop'];

    // 150,55 m x 1,5 m = 225,83 m²
    $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'].'²');

    // (1 m² ≅ 1,00 EUR)
    $strOut .= ' ('.wpsg_ff($view['price_onepice'], $this->get_option('wpsg_currency').' / '.$view['unit_price'].'²').')';

    echo wpsg_pad_left(__('Größe:', 'wpsg').' ', 12); ?><?php echo $strOut; ?>