X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need Help with Invoice Layout (https://forum.x-cart.com/showthread.php?t=53990)

artistwantab 05-31-2010 09:18 PM

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.

cflsystems 06-01-2010 03:15 AM

Re: Need Help with Invoice Layout
 
You may need to clear the cache after modifying template files
www.yourdomain.com/cleanup.php

balinor 06-01-2010 07:15 AM

Re: Need Help with Invoice Layout
 
Moving to Template Editing

artistwantab 06-01-2010 02:38 PM

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.

artistwantab 06-01-2010 05:17 PM

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>


artistwantab 06-01-2010 05:39 PM

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}


artistwantab 06-01-2010 10:38 PM

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.

artistwantab 06-02-2010 11:31 AM

Re: Need Help with Invoice Layout
 
1 Attachment(s)
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.

Shamun 06-02-2010 03:10 PM

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.

artistwantab 06-02-2010 06:29 PM

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.


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.