ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can EE create product specific contact forms

July 12, 2012 2:39am

Subscribe [3]
  • #1 / Jul 12, 2012 2:39am

    pixelcamp

    26 posts

    Hi,

    I will be building a website which will require a user to view a product page and if interested click to email the seller via a web form, I want some of the details from the product (name, code, colour etc) to be entered into the email form so the user then has only their personal details to add to the form before sending.

    This would then allow the user to choose another product and the same functionality to take place (email via website, key fields being passed to the form so the user can send easily).

    Would this be poss out of the box or with some specific addon functionality?
    Thanks

  • #2 / Jul 12, 2012 9:29am

    Boyink!

    5011 posts

    Sure - one way to do it is to put the contact form into an embedded template then pass in the specifics via embed variables.  I’m doing that here (scroll to bottom):
    http://www.espec.com/na/products/family/humidity_benchtop/

  • #3 / Jul 12, 2012 9:33am

    pixelcamp

    26 posts

    Thanks Mike,

    by the way, loving the clarity of your EE 2 book - for a ‘Romantic’ thinker (Zen and the art of…) designer, its great

  • #4 / Jul 12, 2012 9:40am

    Boyink!

    5011 posts

    Thanks!  In all fairness though I have to give credit in that area to my wife (editor).  She’s awesome at kicking things back to me when they aren’t clearly explained.

  • #5 / Jul 12, 2012 10:02am

    pixelcamp

    26 posts

    Ha ha same here - the clear thinkers of the family…

    Can I just check would that approach also work eg if you had a list of products on a page eg limit of say 10 and a button after each to then add the associated ‘product name’ label to a contact form…? ie button saying ‘enquire’

    Thanks again
    Kevin

  • #6 / Jul 12, 2012 10:04am

    Boyink!

    5011 posts

    Hmm…

    Not sure in that case as you’d need to somehow assemble the selected list into an array that gets passed into the embedded template.

    Almost makes me wonder if a better approach would just be a multi-selectbox on the form where users select products.

  • #7 / Jul 12, 2012 10:15am

    Shane Eckert

    7174 posts

    Hi pixelcamp,

    Enjoying the conversation here between you and Mike. Thanks Mike!

    Is there anything else I can help you with?

    Cheers,

  • #8 / Jul 12, 2012 11:07am

    pixelcamp

    26 posts

    Thanks Shane/Mike, all sorted thanks, I thought it was a tricky one and couldn’t find suitable addons so may invest in a developer, thanks,

    will consider the first option as well - as long as the list as per Mike’s example on the pull down was able to be populated via the latest products (ie the list of products would grow per month) so would need to sourced via product entries via eg the product channel

    Thanks

  • #9 / Jul 12, 2012 12:11pm

    Shane Eckert

    7174 posts

    Hey pixelcamp,

    No worries! Thank you for your interest in ExpressionEngine.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases