Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dynamic email subject line


mugitty

Recommended Posts

I have my cart set up to show various expected shipping times and means based on the quantity entered for a given product. I have created an email link for inquiries of products being shipped by common carrier and would like to dynamically have the product number appear in the subject line of the email.

 

I've tried about a half-dozen different ways with no success, so I'm hoping someone can show me the proper syntax to use - if it's possible at all

<?php

 $prod_quantity = tep_get_products_stock($products_id);

 switch ($prod_quantity) {

     case 0:

     print "<b><font size=4 color=red>CC</font> - This item ships via common carrier and should be ordered separately from other products.</b>

            <br>Select "<font color=red>CC</font>" for a shipping method at checkout, as shipping costs for other methods will not be accurate.

            We will contact you with a freight quote prior to shipping or you may <a href="mailto:[email protected]?subject=Freight Quote Request"><font color=red>email</font></a> us for a quote";

     break;

This is from my product_info.php - What I want to do is have the products_model appear in the subject line immediately after "Freight Quote Request"

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...