Jump to content

bosanci28

Member
  • Posts

    77
  • Joined

  • Last visited

Posts posted by bosanci28

  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:

    6qck69.jpg

    and

    28jvh4.jpg

    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:

    2rpyxwo.jpg

    and

    r1hs15.jpg

    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:

    9zwqs1.jpg

    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. Just a quick question, as i know in v4 is working normal but in v6.0.6 witch i have now not sure if something is not right.

    So in v6.0.6 if someone comes and creates a new order and i get email "new order" and in admin it say "pending" no the buyer never makes a payment , the

    script puts item "out of stock" , witch it not suppose to, in till the buyer has paid,and only then the item should go "out of stock"!  so this way if buyer don't pay and someone else comes in they can buy and pay.

    Any settings? that i missed ? in admin or is a bug.

     

    Thanks

  7. Hello,

    Yes, i had "info" in many places,as i was testing that code posted my @bsmither

    But now i have it as:

    a41pud.jpg

    I am still looking to see how to take the "add to basket" out from that line... and put the info box under the price, on the grid.

    And also i need to figure out for the main page , how to do it as is all on grid there.

     

    Thank you,

  8. So the normal view looks that it works just fine. Where exactly i can add little more to that "info" word? wanted to add: "Info & Buy".

    ht70wz.jpg

    Now been trying to figure out regarding the grid,as is still show  "add to basket" there and could not figure out witch code to change...

     

    Here is the code:

                </div>
                <div class="product_grid_view hide">
                   <form action="{$VAL_SELF}" method="post" class="panel add_to_basket">
                   <div data-equalizer-watch>
                      <div class="text-center">
                         <a href="{$product.url}" title="{$product.name}"><img class="th" src="{$product.thumbnail}" alt="{$product.name}"></a>
                      </div>
                      <h3><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></h3>
                      {if $product.review_score}
                      <div class="rating">
                         <div>
                            {for $i = 1; $i <= 5; $i++}
                            {if $product.review_score >= $i}
                            <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star.png" alt="">
                            {elseif $product.review_score > ($i - 1) && $product.review_score < $i}
                            <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_half.png" alt="">
                            {else}
                            <img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_off.png" alt="">
                            {/if}
                            {/for}
                         </div>
                         {*
                         <p class="rating-info">{$product.review_info}</p>
                         *}
                      </div>
                      {/if}
                   </div>
                   <h3>
                      {if $product.ctrl_sale}<span class="old_price">{$product.price}</span> <span class="sale_price">{$product.sale_price}</span>
                      {else}
                      {$product.price}
                      {/if}
                   </h3>
                   {* Uncomment this if you want to show a more info link
                   <a href="{$product.url}" title="{$product.name}" class="button tiny secondary left">{$LANG.common.info}</a>
                   *}
                   {if $product.available <= 0}
                   <div class="row collapse marg-top">
                      <div class="small-12 columns">
                         <input type="submit" value="{$LANG.common.unavailable}" class="button small postfix disabled expand" disabled>
                      </div>
                   </div>
                   {elseif $product.ctrl_stock && !$CATALOGUE_MODE}
                   <div class="row collapse marg-top">
                      <div class="small-3 columns">
                         <input type="text" name="quantity" value="1" class="quantity text-center" disabled>
                      </div>
                      <div class="small-9 columns ">
                         <button type="submit" value="{$LANG.catalogue.add_to_basket}" class="button small postfix">{$LANG.catalogue.add_to_basket}</button>
                         <input type="hidden" name="add" value="{$product.product_id}">
                      </div>
                   </div>
                    {elseif !$CATALOGUE_MODE}
                   <div class="row collapse marg-top">
                      <div class="small-12 columns">
                         <input type="submit" value="{$LANG.catalogue.out_of_stock_short}" class="button small postfix disabled expand marg-top" disabled>
                      </div>
                   </div>
                   {/if}
                </div>
             </form>
          </li>
          {foreachelse}
          {if !isset($SUBCATS) || !$SUBCATS}
          <li>{$LANG.category.no_products}</li>
          {/if}
          {/foreach}
       </ul>
       {* Remove "hide" class for traditional pagination *}
       <div class="row hide">
          <div class="small-12 large-9 columns">
             {$PAGINATION}
          </div>
          <div class="large-3 columns show-for-medium-up">
             <dl>
                <dd>
                   <select class="url_select">
                   {foreach from=$PAGE_SPLITS item=page_split}
                   <option value="{$page_split.url}"{if $page_split.selected} selected{/if}>{$page_split.amount}</option>
                   {/foreach}
                   </select>
                </dd>
             </dl>
          </div>
       </div>
       {* Add "hide" class to hide more button ajax load *}
       {if ($page < $total)}
       {$params[$var_name] = $page + 1}
       <a href="{$current}{http_build_query($params)}{$anchor}" class="button tiny expand" id="ccScroll-next">{$LANG.common.more} <i class="fa fa-angle-down"></i></a>
       {/if}
    </div>
    <div class="hide" id="lang_loading">{$LANG.common.loading}</div>

    Thanks for any help!

  9. Thank you.

    I have look and looks that the first above code ,the last line is missing in my code:

     <input type="hidden" name="add" value="{$product.product_id}">

     

           {if $product.available <= 0}
                      <div class="row collapse">
                         <div class="small-12 columns">
                            <input type="submit" value="{$LANG.common.unavailable}" class="button small disabled expand marg-top" disabled>
                         </div>
                      </div>
                      {elseif $product.ctrl_stock && !$CATALOGUE_MODE}
                      <div class="row collapse">
                         <div class="small-4 columns">
                            <input type="text" name="quantity" value="1" class="quantity text-center">
                         </div>
                         <div class="small-8 columns">
                            <button type="submit" value="{$LANG.catalogue.add_to_basket}" class="button small postfix">{$LANG.catalogue.add_to_basket}</button>
                         </div>
                      </div>
                      {elseif !$CATALOGUE_MODE}
                      <div class="row collapse">
                         <div class="small-12 columns">
                            <input type="submit" value="{$LANG.catalogue.out_of_stock_short}" disabled class="button disabled expand small">
                         </div>
                      </div>
                      {/if}
                   </div>
                </div>
                <div class="product_grid_view hide">
                   <form action="{$VAL_SELF}" method="post" class="panel add_to_basket">
                   <div data-equalizer-watch>
                      <div class="text-center">
                         <a href="{$product.url}" title="{$product.name}"><img class="th" src="{$product.thumbnail}" alt="{$product.name}"></a>
                      </div>
                      <h3><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></h3>
                      {if $product.review_score}

     

  10. Hello Bsmither ,

    Thank you for replying!  and the above edit!

    Now regarding the "To change all of your existing inventory from "new" to "used", will require a SQL statement executed directly on the database."

    Do you think that can help? if will send the database over to you? really appreciated.

    I was searching maybe to export the store csv file and replace the "new" with "used" and import it back,but could not find how to do it...

     

    Thanks,

  11. While back i transferred from v4 to v6, and it did screw my stock , i had items out of stock and after update people where buying some stuff that was in stock,but i did not have them...

    Now i notice that a lot of my stuff is listed as "new" items, witch i do not sell new items, un-less i specify in the description.

    So my question is , how do i remove the "new" from here:

    2vjaezl.jpg

    and just let it all be as "used" all the time when i list something?

     

    Thanks for help!

  12. Hello,

     

    How do link up to the full description of the item,and to remove that "add to basket" ? 

    14o14rs.jpg

    From this:

    http://www.alltvparts.com/va320m.html

    to this:

    http://www.alltvparts.com/vizio-va320m-1-877-663-11-a-1553-982-a.html

    I have some people that they click add to basket ,but they never read all the description of the item,before they buy! for

    me is important that they read full description and then buy.

     

    Thank you for any help!.

  13. Ok, Thanks for that info!

    I have the mod from @SemperFi and then a week later he come with a plugin out too, so now i was waiting for him on some replies, as i purchased some mods from him, and now  he is creating other plugins witch is much better!  I have 2,3 mods that i have to re-do everytime a new cc6 version is out, and is just to much work,to go with the process.

    Got this mods:

    Site Document Manager CC6

    Vertical categories

    Site Maps 

    And as plugin ,got the nivo slider.

     

    Anyway,

×
×
  • Create New...