Jump to content

Carlos Martins

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Carlos Martins

  1. Hello everyone!

    I'm having some trouble inserting the products unit price when printing the order "orders.print.php" under admin/skins/default/template

    I've tried : 
    {$item.price_unit}
    {$item.price_each}

    how can I place it there?

     

    --- code ---

          <div class="info">
            <span class="orderid"><strong>{$LANG.common.order_id}</strong> &nbsp; {$order.cart_order_id}</span>
            <strong>{$LANG.orders.title_receipt_for}</strong> {$order.order_date}
          </div>

          <div class="product">

            <span class="price">{$LANG.common.price}</span>
            <strong>{$LANG.common.product}</strong>
          </div>

          {foreach from=$order.items item=item}
          <div class="product">
            <span class="price">{$item.price}</span>{$item.quantity} &times; {$item.name} {if !empty($item.product_code)}({$item.product_code}) {/if} ..... INSERT UNIT PRICE HERE

            {if isset($item.options)}
            <ul>
            {foreach from=$item.options item=option}
            <li>{$option}</li>
            {/foreach}
            </ul>
            {/if}
          </div>
          {/foreach}
          <div id="totals">
            <div class="total">{$LANG.basket.total_sub} <strong>{$order.subtotal}</strong></div>
            <div class="total">{$LANG.basket.total_discount} {if !empty($order.percent)}({$order.percent}){/if} <strong>{$order.discount}</strong></div>
            <div class="total">{$LANG.basket.shipping} <strong>{$order.shipping}</strong></div>
            {if isset($order.taxes)} {foreach from=$order.taxes item=tax}
            <div class="total">{$tax.name} <strong>{$tax.value}</strong></div>
            {/foreach}{/if}
            <br>

     

    --- code ---

    Thank you in advance.

    Carlos

     

  2. Thank you both for the quick reply! :)

    bsmither - Is there a reason why the SQL Date/Time value isn't the table field standard?Why are "UNIX timestamps" used instead? It doesn't make sense to me using two formats.....

    I also read this while looking for info : 
    "Many Unix systems store epoch dates as a signed 32-bit integer, which might cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038). "

    havenswift-hosting - Thank you! The Epoch Converter did the trick!!

     

    Best regards,
    Carlos

  3. Hi everyone!

    I'm having trouble editing the "order_date" field ...what format is this?

    "1517740505"  is listed on Admin > Costumers >Orders as "Today,  10:35" , how??

    I need to create Order via Admin panel with specific dates other than the current date/time, how can I do it?

    Thanks in advance,
    Carlos

    Screenshot at 2018-02-04 12-44-49.png

×
×
  • Create New...