![]() |
Different Invoice Templates for Different Products
I am trying to figure out how I can use different invoice designs for different types of products. For example, I would like to sell a product offered by another department in our organization, but the contact information and logo need to be different.
I was thinking about creating a new order_invoice.tpl file with a new name that would use a different logo and contact information. But I am unsure how to call this invoice template for a specific product purchase. Perhaps it is called for all products in a specific category? Any help would be most appreciated! Thanks! |
Re: Different Invoice Templates for Different Products
Tough to do, as what happens when someone orders a 'regular' product and a 'special' product?
|
Re: Different Invoice Templates for Different Products
Hmm. It seems like somewhere there would be a place for a simple "if" statement. If product category is X, then use the custom invoice design, otherwise use the standard design...
How does Xcart handle regular vs special products? |
Re: Different Invoice Templates for Different Products
Well I didn't mean 'special' literally...I just meant the one you wanted to create a special invoice for. :) My point is, if you have two different products in the cart, it is tough to get an {if} statement to work because one could be from one category, and one from another, so a simple {if $cat...} won't work.
|
Re: Different Invoice Templates for Different Products
In this case, I do not expect this "special" product to ever be combined with any other products...
Basically I am setting this up so that our conference center can process credit card payments for events they host. This category of "products" would only be visible to staff and would not be able to be added to a regular customer's cart. |
Re: Different Invoice Templates for Different Products
I am looking to move forward with this plan, but if anyone has any insight on the code that would be much appreciated! I am looking to do the following:
Thanks! |
All times are GMT -8. The time now is 04:31 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.