Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Need Help with Invoice Layout

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-31-2010, 09:18 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Need Help with Invoice Layout

I need some help modifying the invoice look.

1. I would like to add a thumbnail of the item sold.
2. I want to include the full price before the discount also and then the discounted price.

I tried doing something simple like duplicating the sku line below to see if it shows the sku twice with no luck.

{$lng.lbl_sku|truncate:$max_truncate:"...":true|ca t:":"|string_format:$max_space}{$products[prod_num].productcode}

Thank you in advance.
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #2  
Old 06-01-2010, 03:15 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Need Help with Invoice Layout

You may need to clear the cache after modifying template files
www.yourdomain.com/cleanup.php
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 06-01-2010, 07:15 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Need Help with Invoice Layout

Moving to Template Editing
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 06-01-2010, 02:38 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Need Help with Invoice Layout

Ok...I finanly got a second column to show but I am struggling to figure out how to get the column to show the product thumbnail.
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #5  
Old 06-01-2010, 05:17 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Need Help with Invoice Layout

Ok...I got this far. The column shows an image box but it says "no image available"

Code:
<td> <img {if $id ne ''} id="{$id}"{/if} src=" {if $tmbn_url} {$tmbn_url|amp} {else} {if $full_url} {$http_location} {else} {$xcart_web_dir} {/if} /image.php?type={$type|default:"T"}&id={$productid} {/if} " {if $image_x ne 0} width="{$image_x}"{/if} {if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" /> </td>
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #6  
Old 06-01-2010, 05:39 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Need Help with Invoice Layout

Trying to add the retail price on the invoice also but all I get is a $ sign.

Code:
<td> {strip} {if $plain_text_message eq ""} <span class="currency"> {/if} {if $display_sign} {if $value gte 0} + {else} - {/if} {/if} {assign var="cf_value" value=$value|abs_value|formatprice} {if $tag_id ne "" && $plain_text_message eq ""} {assign var="cf_value" value="<span id=\"`$tag_id`\">`$cf_value`</span>"} {/if} {$config.General.currency_format|replace:"x":$cf_value|replace:"$":$config.General.currency_symbol} {if $plain_text_message eq ""} </span> {/if} {/strip}
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #7  
Old 06-01-2010, 10:38 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Need Help with Invoice Layout

Ok...I am nearly done with this project. I only need the two above questions answered and....

I want my invoice to have the following lines...

Sku-----Thumbnail Image-----Description--------Retail-----Total


So I would also like to remove the qty and price.

All my items only have one unique item so have the qty and price per item is obvious.

Any help completing the project would be so appreciated.

Thank you so much.
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #8  
Old 06-02-2010, 11:31 AM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Need Help with Invoice Layout

This is as far as I can do.

Just need it to show the retail price and image.

If anyone has any ideas I would appreciate it.
Attached Thumbnails
Click image for larger version

Name:	Invoice-correction.jpg
Views:	187
Size:	62.6 KB
ID:	1948  
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
  #9  
Old 06-02-2010, 03:10 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Need Help with Invoice Layout

Check here for image on invoice layout: http://forum.x-cart.com/showthread.php?t=52319&highlight=invoice+product+i mage

Removing the quantity should be fairly simple since there should only be 1 column for that.
__________________
- Shane Munroe
Reply With Quote
  #10  
Old 06-02-2010, 06:29 PM
 
artistwantab artistwantab is offline
 

eXpert
  
Join Date: Jul 2009
Posts: 320
 

Default Re: Need Help with Invoice Layout

Awesome!

Thank you so much.

Now all I need is to figure out how to display the full price.
__________________
X-Cart version 4.7.2
x-special Offers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:59 AM.

   

 
X-Cart forums © 2001-2020