X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Extra Field to show on Email receipt only (https://forum.x-cart.com/showthread.php?t=12978)

rubberneck 03-23-2005 05:34 PM

Extra Field to show on Email receipt only
 
I need someone to add the following feature to my Gold 4.0.12 ASAP.

I need a field added to my items. The information in this field needs to NOT show up on the shopper end of the cart. It instead needs to be included in an email when the item is purchased. The information needs to be specific to an item. It may or may not be in each product, but when it is, it needs to be included in the invoice, ESD email, or new email.

I will pay a very reasonable rate. Please PM me if you're interested and able to do this in the next week, or if you have questions.

Thanks,
Jeff

ETInteractive.com 03-24-2005 04:37 AM

You could just add an "extra field".

Then just change your email tpl's to include that extra field.

Set "show" = N, and it wont appear on the customer side.

rubberneck 03-24-2005 02:16 PM

Field names
 
ETInteractive, thanks for the help.

Only question I have is, how do I refer to the extra field in the email templates? What's the coding to call the field?

Thanks!

ETInteractive.com 03-24-2005 05:26 PM

w/o looking into v4 tpls.

try
Code:

$product.param00

the number 00 changes based on how many extra fields you have.

starts 00, 01, 02 etc...

ill try to look in the am, if that dont work.

rubberneck 03-24-2005 05:33 PM

Thanks
 
Thanks for the followup. No luck with that.

Any other ideas?

ETInteractive.com 03-25-2005 04:34 AM

{$extra_fields[field].field}
{$extra_fields[field].field_value}

you will have to play with the value for [field]

try param00, or the paramater name like "my_extra" whatever u called it.

you can find more info in
/skin1/modules/Extra_Fields/

rubberneck 03-25-2005 09:57 AM

hmm
 
Thanks again. Still no luck in getting them to show anything.

I tried {$extra_fields[param00].field_value}, {$extra_fields[param01].field_value} and {$extra_fields[test].field_value}

Any other ideas?

ETInteractive.com 03-25-2005 11:07 AM

i guess you could try

{$extra_fields[field].field}

see what that outputs.

rubberneck 03-25-2005 12:00 PM

ugh
 
Yeah, I tried that too. Nothing.

ETInteractive.com 03-25-2005 12:12 PM

{section name=field loop=$extra_fields}
{$extra_fields[field].field} {$extra_fields[field].field_value}
{/if}
{/section}

im about out of ideas.


All times are GMT -8. The time now is 08:18 AM.

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