Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

products model and invoice#


ireader

Recommended Posts

Hi

 

I am a regular visitor here but am very shy, :blush:

 

My task is to display the products model and the invoice number, or the order number, together as a reference number like so ref# ABC1234

 

I am trying to get it to display in the subject of the extra emails, and in the body of customers email, also in the invoice.

 

could someone please help me or show me which/all of the files I need to edit

 

I am using osc2.2 ms2

 

Thanks to all you people who contribute to this forum with scripts and help, Its where I spend my late nights, But I dont have knowledge yet to return the favours :(

Regards all

Ian

Link to comment
Share on other sites

"My task is to display the products model and the invoice number, or the order number, together as a reference number like so ref# ABC1234"

 

Your question is a bit confusing....

 

In case it helps, try this....

 

http://www.oscommerce.com/community/contributions,2499

 

.. it will generate the order number in the format you describe and add the order number to the invoice and packing slip (if that's what you want).

 

Rich.

Link to comment
Share on other sites

Thanks CMOTD for your help, I will be looking again at the scrambled order # contrib, it would do what I want but its quite busy and complicated for what I want to do, I have also looked at the serial number contributions but these also are complicated and cause me problems with other contributions installed,

 

I think if I explained better you may understand what I am trying to do,

 

1/ The order number for example 1234 is already generated and connects the customer to the product,

This order number can be called and included in the emails and invoices YES?

 

2/ The product in this case when purchased is registered to a particular geographic area in the UK,

I am using the products_model field for the area code, the value being for example LDR

This can also be called and included in the emails and invoices YES?

 

3/ I just need to be able to enter the two bits of data in the emails in the form of a reference number

for example :-

Your ref number is LDR1234

 

I need this to be displayed in all order details/order history etc

and the customers confirmation email

and the extra emails

and LDR1234 for example, in the subject line of extra emails (I think I can Manage that one)

 

It sounds more complicated than it is I think, well it does to me because I am no coder,

I think serial numbers and random order# and scrambled order# are a bit of overkill for me and what I need at present, I have looked at them and tried them but complications due to other contribs cause me more problems than I am capable of sorting myself, I did have serialisation working but I was stuck on getting the details to show correctly in the emails etc

 

I would appreciate any help at all on this, which files need to be edited to make sure there are no holes and what code should go in which file and what position

 

Thanks again for everyones help,

Ian

Link to comment
Share on other sites

Hi all,

I am trying to get my extra emails sent to other people to include the following In the email subject field,

 

products model & product order number example ABC167

 

Also

 

can I change this line

STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 

to display customers email address in the from field, so recipient can just click reply to? I know tis is more difficult than it looks

 

 

Can I acheive what I am after with this code below?

I am using this piece of script below from webmakers corner, I keep trying and searching but I am unable make it do what I need without your help :blush:

 

 

 

 

also can I enter the product_ model here somehow to show ABC167 in the subject box

 

 

 

this is the code I am using

This makes the subject contain order process number#167

// send emails to other people
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
//"WebMakers.com Added: Include Order # in Subject and customer's email address and phone in body"

 tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO,

 EMAIL_TEXT_SUBJECT . ' number#' . $insert_id,

 $order->customer['firstname'] . ' ' . $order->customer['lastname'] . ' ' .

 'E-mail:' .  $order->customer['email_address'] . "\n\n".
 'Phone:' . $order->customer['telephone'] . "\n\n".
//   'Fax:' . $order->customer['fax'] . "\n\n".
 
 nl2br($email_order),

 STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

}

 

in the above code if I replace

EMAIL_TEXT_SUBJECT . ' number#' . $insert_id,

with

EMAIL_TEXT_SUBJECT . $insert_id,

 

I get order process167 in the subject box.

 

I would like to edit out order process to leave just 167

 

Where/which file does the text " order process " get pulled from, Ive done find in email.php orders.php order_info.php

 

do I need to define something somewhere to get products model to work?

 

Ok thats long enough for now,

Thanks to all

regards

Ian

Regard

Link to comment
Share on other sites

Hi all,

I am trying to get my extra emails sent to other people to include the following In the email subject field,

 

products model & product order number example ABC167

 

Also

 

can I change this line

STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

 

to display customers email address in the from field, so recipient can just click reply to? I know tis is more difficult than it looks

 

 

Can I acheive what I am after with this code below?

I am using this piece of script below from webmakers corner, I keep trying and searching but I am unable make it do what I need without your help :blush:

 

 

 

 

also can I enter the product_ model here somehow to show ABC167 in the subject box

 

 

 

this is the code I am using

This makes the subject contain order process number#167

// send emails to other people
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
//"WebMakers.com Added: Include Order # in Subject and customer's email address and phone in body"

 tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO,

 EMAIL_TEXT_SUBJECT . ' number#' . $insert_id,

 $order->customer['firstname'] . ' ' . $order->customer['lastname'] . ' ' .

 'E-mail:' .  $order->customer['email_address'] . "\n\n".
 'Phone:' . $order->customer['telephone'] . "\n\n".
//   'Fax:' . $order->customer['fax'] . "\n\n".
 
 nl2br($email_order),

 STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

}

 

in the above code if I replace

EMAIL_TEXT_SUBJECT . ' number#' . $insert_id,

with

EMAIL_TEXT_SUBJECT . $insert_id,

 

I get order process167 in the subject box.

 

I would like to edit out order process to leave just 167

 

Where/which file does the text " order process " get pulled from, Ive done find in email.php orders.php order_info.php

 

do I need to define something somewhere to get products model to work?

 

Ok thats long enough for now,

Thanks to all

regards

Ian

Regard

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...