Forums / Managing Customers and Orders / Retailers area for our site?

Retailers area for our site?

Started by painted_hills_nb on 3 Sep 2013, 11:28 PM · Views: 2,691

Results 1 to 8 of 8
3 Sep 2013, 11:28 PM
#1
painted_hills_nb avatar

painted_hills_nb

New Zenner

Join Date:
Apr 2012
Location:
Fossil, OR
Posts:
35
Plugin Contributions:
0

Retailers area for our site?

Our Retailer's Info page is separate from our online store so that the general public does not order POS materials. We use an email submission form for this activity.

Everything was working just fine on the page until we added a field for the customer's email to the form.

The objective was that in addition to receiving the order, we would obtain their email address from the form and they would receive an order confirmation email.

Unfortunately after adding the code to create the field in the thankyou.php and updating the EZ-pages/Retailer Info nothing works.

I understand that since our form has:

<input name="toEmail" type="hidden" value="[email protected]" />

It is sending to thankyou.php a different variable which we need to assign with a POST, such as:

$toEmail = $_POST['toEmail'];

Then we would have to get that added to the $to variable somehow so that it will send to both email addresses. Any ideas? :unsure:

Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

4 Sep 2013, 1:47 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Retailers area for our site?

This isn't an answer to your question, but it's something you need to seriously pay attention to ...
By putting the email address into your form like that, you're telling bots, search engines, and malicious hackers not only your email address to spam, but also giving them a way to abuse your server to send spam to any mailbox they want to by simply hacking/altering the form html and submitting it with an outside automated/robot to send crap to anybody's email address anywhere .. and make it look like it came from you!

All the recipient addresses should be added server-side, not browser-side. I suggest rewriting things to do that, and at the same time make the changes you've just posted about also.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Sep 2013, 10:29 PM
#3
painted_hills_nb avatar

painted_hills_nb

New Zenner

Join Date:
Apr 2012
Location:
Fossil, OR
Posts:
35
Plugin Contributions:
0

Re: Retailers area for our site?

DrByte:

This isn't an answer to your question, but it's something you need to seriously pay attention to ...
By putting the email address into your form like that, you're telling bots, search engines, and malicious hackers not only your email address to spam, but also giving them a way to abuse your server to send spam to any mailbox they want to by simply hacking/altering the form html and submitting it with an outside automated/robot to send crap to anybody's email address anywhere .. and make it look like it came from you!

All the recipient addresses should be added server-side, not browser-side. I suggest rewriting things to do that, and at the same time make the changes you've just posted about also.

DrByte, thank you for the head's up. This is a site I inherited and have been asked to update existing pages. I am open to suggestions. Is there an add on plugin that would resolve this issue?

Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

9 Sep 2013, 10:48 PM
#4
painted_hills_nb avatar

painted_hills_nb

New Zenner

Join Date:
Apr 2012
Location:
Fossil, OR
Posts:
35
Plugin Contributions:
0

Re: Retailers area for our site?

What I'd really like to do is add these items as a new category but have them list on a separate page from our online store. I believe this would resolve the issue DrByte brings up. Can this be done?

Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

9 Sep 2013, 11:25 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Retailers area for our site?

Couple options that you might consider ...

1 Mark the products Call for Price, if you do not already use this feature of Zen Cart, and change the image and text to infer: In Store Only

2 Use a different Product Type such as: Document Product, if you do not already use this feature of Zen Cart, and turn off the ability to Add to Cart on this Product Type ...

Now, you have the advantage with either method where you can do the Category separation or enjoy the ability to add Products to any Category and these features will prevent the buying of the Products, which is your goal online but gives the added feature of All customers can see them, the spiders add them to search engines etc. to encourage folks to Call you or Visit you at your off line store ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Sep 2013, 9:18 PM
#6
painted_hills_nb avatar

painted_hills_nb

New Zenner

Join Date:
Apr 2012
Location:
Fossil, OR
Posts:
35
Plugin Contributions:
0

Re: Retailers area for our site?

Ajeh,
Thanks for the suggestions. I'm researching these in the e-Start book. Since this may allow us to create separate Documents side-box this may overcome the objections to having these listed in the store.

Appreciate the input. Will keep you posted on outcome.

Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

10 Sep 2013, 10:46 PM
#7
painted_hills_nb avatar

painted_hills_nb

New Zenner

Join Date:
Apr 2012
Location:
Fossil, OR
Posts:
35
Plugin Contributions:
0

Re: Retailers area for our site?

Ajeh:

Couple options that you might consider ...

1 Mark the products Call for Price, if you do not already use this feature of Zen Cart, and change the image and text to infer: In Store Only

2 Use a different Product Type such as: Document Product, if you do not already use this feature of Zen Cart, and turn off the ability to Add to Cart on this Product Type ...

Now, you have the advantage with either method where you can do the Category separation or enjoy the ability to add Products to any Category and these features will prevent the buying of the Products, which is your goal online but gives the added feature of All customers can see them, the spiders add them to search engines etc. to encourage folks to Call you or Visit you at your off line store ...

Pitched this solution to the powers that be...no go. So, I am back to the original issue. Is there a way to fix the current form and (taking in DrByte's observance) make it secure? Is there another form solution? Is there a coder for hire? This is top priority/urgent for us.

Thanks in advance for your assistance.

Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou

8 Jan 2014, 9:22 PM
#8
painted_hills_nb avatar

painted_hills_nb

New Zenner

Join Date:
Apr 2012
Location:
Fossil, OR
Posts:
35
Plugin Contributions:
0

Re: Retailers area for our site?

DrByte:

This isn't an answer to your question, but it's something you need to seriously pay attention to ...
By putting the email address into your form like that, you're telling bots, search engines, and malicious hackers not only your email address to spam, but also giving them a way to abuse your server to send spam to any mailbox they want to by simply hacking/altering the form html and submitting it with an outside automated/robot to send crap to anybody's email address anywhere .. and make it look like it came from you!

All the recipient addresses should be added server-side, not browser-side. I suggest rewriting things to do that, and at the same time make the changes you've just posted about also.

Welp, DrByte...you did warn us that we were inviting trouble with our form located here http://www.natural-beef.com/index.php?main_page=page&id=4&zenid=e41675b069cb335c2beea98f6eeb7715
On Monday between 2:35 pm and 8:09 pm we received about 21 requests filled with gobblety-goop. So now, non-programmer that I am, I am looking for a remedy.
I found this information. Is this what you mean when you suggest rewriting things?
http://support.cmspath.com/kb/editing-content-2/how-do-i-add-a-form-to-my-website-and-have-submissions-emailed-to-me

Thank you once again for your assistance.

Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou