The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
capture hidden value on add to cart, then carry through...
Author Message
Reply with quote
Post capture hidden value on add to cart, then carry through... 
I'm not sure if I chose the correct forum to post this...

I know I can use hidden x_comments on the checkout form, and they then carry through and are emailed to me.

However, how do I capture a hidden value on the product page, and then carry it through the checkout process?

i.e. in the product page form, I would like to add
<input type="hidden" name="secret" value="varies">
which is then recorded when someone clicks on "add to cart"

I then want the value of "secret" emailed to me with the order...

Again, I know this is a no-brainer from the checkout form, but how about from the product page add to cart form?

What do I do???

View user's profile Send private message
Reply with quote
Post  
You would probably need to set it up as an option.

IE:
Code:
<input type="hidden" name="option|002|%%PRODUCT_ID%%" value="varies">


HTH!~


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
thanks for the quick suggestion.

I just added the code and it works...
<input type="hidden" name="option|099|%%PRODUCT_ID%%" value="varies">

except the option shows up on the cart display under the other options, and I want it to be hidden!

can I keep it from showing up?

View user's profile Send private message
Reply with quote
Post  
What information, exactly, are you wanting to pass?
Does it affect the price?
Does it vary product to product?
There is a possibility that you could use a user field for the info.
I'm not sure that there is any way to keep it completely secret from the customer but not to you. Even using a user field and not having it defined in the cart display, it would still need to be defined in the email and it would still show up in the customer's email.

HTH!~


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
When a customer first comes to my site, I capture some info about them in a cookie. When they place an order, I read that cookie and save the info in a hidden form field.

So, each customer has a unique value.

whats the best way to record this on the product page and then pass it along...

View user's profile Send private message
Reply with quote
Post  
howdy,

I don't have time to cover this, but here's the pointer that will narrow your search fer a solution:

use serverside cookies. These are latched on in the second freeform logic box. This is an advanced subject that requires you to understand some Perl or C++ (as they are similar in a few ways). There are basically two sub routines you call to add and retrieve teh serverside cookie info. We use this for affiliate modules, ad tracking and other things as needed. The abilities are endless when you use them in conjuctions with codehooks.

Okay I might have confuzzeled ya a bit, but that is the solution if you have an idear of what I just said.

ME


_________________
Vote Mister Ed for Prez 2012, for a REAL change.

Need Low Cost Startup Option? Try NiftyPay's Pay to Play
http://www.NiftyPay.com
View user's profile Send private message Visit poster's website
Reply with quote
Post  
Thanks ME. Can you give a link to more detailed info?

I was thinking that the problem had already been solved for affiliate tracking, but couldn't find a step-by-step explanation of how to implement it.

View user's profile Send private message
Reply with quote
Post  
Sorry, don't have such a beast.

It's an undocumented feature that only a developer or coder would find. There has been mention of it in the members only areas and I tend to help more with it there. I just thought I'd give ya the clues at this point since it can be fairly complex if you don't know Perl or atleast how to use and find the subroutines. Step by step would be impossible too, as it is totally flexible according to your Perl knowledge (like the codehook features). it will do almost anything between these two features.

sorry,

ME


_________________
Vote Mister Ed for Prez 2012, for a REAL change.

Need Low Cost Startup Option? Try NiftyPay's Pay to Play
http://www.NiftyPay.com
View user's profile Send private message Visit poster's website
Reply with quote
Post  
thanks...

actually, I already have a program that sets a cookie, and then reads the value when I need it. The problem I have is that it is domain-dependent, and my checkout page where I want to read the program is ssl / https which is seen as a different domain, so the cookie from my regular http domain is not read... problem make sense?

I guess I'll do some searching and see what I can find. I've seen other posts that mention the problem with cookies and "change of state" which I THINK means my problem, the secure part of my website is seen as a different domain...

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum