Jump to content

bosanci28

Member
  • Content count

    77
  • Joined

  • Last visited

Community Reputation

0 Neutral

Profile Information

  • Gender
    Male
  • Location
    West Coast - Usa
  1. I see, you right there! I think i never put any info in the "short description" box, just the title and the full description. But looks like it works now, i have replaced {$item.description_short} to {$item.description} Now not sure if this is possible,to make the description appear under the image,as if is 3 lines is okay but if is 4 lines it kind looks not aligned,so under the picture will be nice. 2 examples: and Now i have put 5 of this: <br> {foreach from=$order.items item=item} <div class="product"> <span class="price">{$item.price}</span><div>{$item.quantity} &times; {$item.name} {if !empty($item.product_code)}({$item.product_code}){/if}</div> <div style="float:left;"><img src="{$item.image}" /></div> <br> <br> <br> <br> <br> {$item.description} {if isset($item.options)} <div style="float:left;"><ul> {foreach from=$item.options item=option} <li>{$option}</li> {/foreach} and it looks it pushed the words down under the picture, not sure if this is the right way of doing. Now: and Thank you.
  2. I found this: description => "<p>&nbsp;POWER SUPPLY</p> <p>715G3829-P03-W30-003S</p> <p>DEFECTIVE SOLD AS..." description_short => "" item_price => "$26.99" taxes => Array (1) 0 => Array (2) name => "Total Tax" value => "$0.00" percent => "" If you look at top there: description => "<p>&nbsp;POWER SUPPLY</p> <p>715G3829-P03-W30-003S</p> <p>DEFECTIVE SOLD AS..." description_short => ""that line "defective..." normally is not in my title on main website. http://alltvparts.com/power-supply-715g3829-p03-w30-003s.html
  3. Hello, Ok so no more error,but when i added the one line there: {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} {if isset($item.options)} {$item.description_short} <ul> {foreach from=$item.options item=option} <li>{$option}</li> {/foreach} </ul> {/if} </div> {/foreach} Insert the following variable where you want the description to be seen: {$item.description} or {$item.description_short}The info from the description still does not show up. I have added there see above in code. Thank you,
  4. Hello, I try it and looks like the first code , while in admin and wanted to click on "orders" it goes in 500 error white page. /admin/sources/orders.index.inc.php My code: // Hook foreach ($GLOBALS['hooks']->load('admin.order.index.display') as $hook) include $hook; $GLOBALS['smarty']->assign('PLUGIN_TABS', $smarty_data['plugin_tabs']); $GLOBALS['smarty']->assign('DISPLAY_FORM', true); } else if (isset($_GET['print']) && !empty($_GET['print'])) { // Generate a printable page, and display it // Made somewhat trickier by the way the templating system works // so we'll generate the page, stick it in the cache folder, trigger the print, then delete the file foreach ($_GET['print'] as $order_id) $order_list[] = "'".$order_id."'"; if (($summaries = $GLOBALS['db']->select('CubeCart_order_summary', false, array('cart_order_id' => $order_list))) !== false) { foreach ($summaries as $key => $summary) { $summary['raw'] = $summary; $GLOBALS['smarty']->assign('PAGE_TITLE', (count($_GET['print'])>1) ? $lang['orders']['title_invoices'] : sprintf($lang['orders']['title_invoice_x'], $summary['cart_order_id'])); if (($inventory = $GLOBALS['db']->select('CubeCart_order_inventory', false, array('cart_order_id' => $summary['cart_order_id']))) !== false) { foreach ($inventory as $item) { $item['image'] = $GLOBALS['gui']->getProductImage($item['product_id'],'subcategory'); $item['raw'] = $item; $inventory_desc = $GLOBALS['db']->select('CubeCart_inventory','array('description','description_short'),array('product_id'=>$item['product_id'])); $item['description'] = $inventory_desc[0]['description']; $item['description_short'] = $inventory_desc[0]['description_short']; // Does not take into account any translations of the inventory description. $item['item_price'] = Tax::getInstance()->priceFormat($item['price'], true); $item['price'] = Tax::getInstance()->priceFormat(($item['price']*$item['quantity']), true); if (!empty($item['product_options'])) { $options = ($array = cc_unserialize($item['product_options'])) ? $array : explode("\n", $item['product_options']); foreach ($options as $option) { $value = trim($option); if (empty($And for that second file this is where i added : orders.print.php <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><div>{$item.quantity} &times; {$item.name} {if !empty($item.product_code)}({$item.product_code}){/if}</div> <div style="float:left;"><img src="{$item.image}" /></div>{if isset($item.options)} {$item.description} <div style="float:left;"><ul> {foreach from=$item.options item=option} <li>{$option}</li> {/foreach} </ul></div> {/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>Thank you.
  5. Hello Bsmither! and thank you for replying. I guess: "* fetch the current (short) description from the Inventory table" and on the second one ,not sure exactly witch one will be easy to do. So like this is the main product page witch a client see before making the purchase: So those few lines to appear in the print invoice, Is good to have as proof of whatever they got. I am thinking whatever is easier to do and to show that short description on the invoice when i print out to include one in the package that will send out to client. Thank you!
  6. Hello, Need little help in how to add the "full description" on the printed invoice that will sent to client. As you can see in the picture,that's only the title...and there is more in the description to be show in invoice. Appreciate your help!
×