PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Product Email Notifications missing Product Field Label

  1. stormin
    Member

    I've created a Product called Sugar and entered this as the Field Label for that product. I've then defined different weights with a multiple Drop Down option i.e. 250g, 500g, 1kg, etc and given each weight a price.

    I then use a Quantity field below it so people can choose the quantity of the weight they have defined above. i.e. 5 x 250g with a Total field below it.

    This all works as it should.

    However, when the form is completed it sends the email Notification using the {all_fields} shortcode to the defined email addresses but under the Product section of the email notification it only ever shows the drop down Option that was selected i.e. 250g, 500g with no indication of what Product this option was selected for.

    A quick fix would be to hack the code and put the Product Field Label before the Option Name that was selected so the product field would look something like "Sugar - 500g".

    A more complex fix would be to separate the Product list into separate sections i.e. one for each product which shows the Field Label for the product and underneath it shows the option that was selected for the that Product where as the Qty, Unit Price and Totals can remain the same.

    Can anyone help at least with the Quick Fix? I've tried hacking the code but to no avail yet as I can't seem to find the right variable to put in front of esc_html($product["name"]) in common.php (Line 950) which determins what info is placed in the email notifications.

    Thanks in advanced :)

    Posted 12 years ago on Monday March 19, 2012 | Permalink
  2. Hi, stormin,

    When your Product is a drop down or radio button, the product name in the email notification comes from the choices you enter. So, you need to add Sugar to your weight options so the drop down shows something like "Sugar - 250g". You can do this by editing your form and modifying the choices. The Field Label is used for display on the form.

    Posted 12 years ago on Tuesday March 27, 2012 | Permalink

This topic has been resolved and has been closed to new replies.