Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="receipt" class="shopp">
- <table class="transaction">
- <tr><th>Comanda numărul:</th><td><?php shopp('purchase','id'); ?></td></tr>
- <tr><th>Data:</th><td><?php shopp('purchase','date'); ?></td></tr>
- </table>
- <table class="labels"><tr>
- <td><fieldset class="billing">
- <legend>Facturat către</legend>
- <address><h4><?php shopp('purchase','firstname'); ?> <?php shopp('purchase','lastname'); ?></h4><br />
- <?php shopp('purchase','address'); ?><br />
- <?php shopp('purchase','xaddress'); ?>
- <?php shopp('purchase','city'); ?> <?php shopp('purchase','state'); ?> <?php shopp('purchase','postcode'); ?><br />
- <?php shopp('purchase','country'); ?></address>
- </fieldset></td>
- <?php if (shopp('purchase','hasfreight')): ?>
- <td><fieldset class="shipping">
- <legend>Livrat către</legend>
- <address><h4><?php shopp('purchase','firstname'); ?> <?php shopp('purchase','lastname'); ?></h4><br />
- <?php shopp('purchase','shipaddress'); ?><br />
- <?php shopp('purchase','shipxaddress'); ?>
- <?php shopp('purchase','shipcity'); ?>, <?php shopp('purchase','shipstate'); ?> <?php shopp('purchase','shippostcode'); ?><br />
- <?php shopp('purchase','shipcountry'); ?></address>
- <p>Transport: <?php shopp('purchase','shipmethod'); ?></p>
- </fieldset></td>
- <?php endif; ?>
- </tr></table>
- <?php if (shopp('purchase','hasitems')): ?>
- <table class="order widefat cart">
- <thead>
- <tr class="head">
- <th scope="col" class="item">Produse</th>
- <th scope="col">Cantitate</th>
- <th scope="col" class="money">Preţ produs</th>
- <th scope="col" class="money">Total</th>
- </tr>
- </thead>
- <?php while(shopp('purchase','items')): ?>
- <tr>
- <td><?php shopp('purchase','item-name'); ?><?php shopp('purchase','item-options','before= – '); ?><br />
- <?php shopp('purchase','item-sku')."<br />"; ?>
- <?php shopp('purchase','item-download'); ?>
- <?php shopp('purchase','item-addons-list'); ?>
- </td>
- <td><?php shopp('purchase','item-quantity'); ?></td>
- <td class="money"><?php shopp('purchase','item-unitprice'); ?></td>
- <td class="money"><?php shopp('purchase','item-total'); ?></td>
- </tr>
- <?
- // SEND EMAIL DESIGNER
- $prodid = shopp('purchase','item-product','return=true');
- shopp('catalog','product','id='.$prodid.'&load=false');
- if(shopp('product','found','load=tags')) {
- while(shopp('product','tags')) {
- $textemail = "Comanda data de ".shopp('purchase','firstname','return=true')."\r\n\r\n";
- $textemail .= "Produsul: ".shopp('product','name','return=true')."";
- if(shopp('product','tagged','id=1')) {
- $toemail = "camelianedelcu@gmail.com";
- } else if(shopp('product','tagged','id=2')) {
- $toemail = "ralucagheorghe88@yahoo.com";
- } else if(shopp('product','tagged','id=3')) {
- $toemail = "iulius_curt@yahoo.com";
- } else if(shopp('product','tagged','id=4')) {
- $toemail = "theorion7@yahoo.com";
- }
- mail($toemail,"Wallsticker - ".shopp('product','name','return=true'),$textemail);
- }
- }
- //while(shopp('product','categories')) { …
- //;
- ?>
- <?php endwhile; ?>
- <tr class="totals">
- <th scope="row" colspan="3" class="total">Subtotal</th>
- <td class="money"><?php shopp('purchase','subtotal'); ?></td>
- </tr>
- <?php if (shopp('purchase','hasdiscount')): ?>
- <tr class="totals">
- <th scope="row" colspan="3" class="total">Discount</th>
- <td class="money">-<?php shopp('purchase','discount'); ?></td>
- </tr>
- <?php endif; ?>
- <?php if (shopp('purchase','hasfreight')): ?>
- <tr class="totals">
- <th scope="row" colspan="3" class="total">Transport</th>
- <td class="money"><?php shopp('purchase','freight'); ?></td>
- </tr>
- <?php endif; ?>
- <?php if (shopp('purchase','hastax')): ?>
- <tr class="totals">
- <th scope="row" colspan="3" class="total">Tax</th>
- <td class="money"><?php shopp('purchase','tax'); ?></td>
- </tr>
- <?php endif; ?>
- <tr class="totals">
- <th scope="row" colspan="3" class="total">Total</th>
- <td class="money"><?php shopp('purchase','total'); ?></td>
- </tr>
- </table>
- <?php if(shopp('purchase','has-data')): ?>
- <ul>
- <?php while(shopp('purchase','orderdata')): ?>
- <?php if (shopp('purchase','data','echo=0') == '') continue; ?>
- <li><strong><?php shopp('purchase','data','name'); ?>:</strong> <?php shopp('purchase','data'); ?></li>
- <?php endwhile; ?>
- </ul>
- <?php endif; ?>
- <?php else: ?>
- <p class="warning">Nu au fost gasite produse pentru această tranzacţie.</p>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement