Assigning document.referrer to ss_field1

General ShopSite user discussion

Assigning document.referrer to ss_field1

Postby OldSalt » Thu Aug 26, 2010 1:35 pm

Hello,

A shop owner has some generic products that are distinguished only by student's artwork.

Each student has a page containing those generic products with the student's artwork on them.

I have made a file upload feature on the thank-you page which prepends the order number and product sku to the image filename, so we can identify which image goes with which ordered product.

That part works fine.

Now I need to identify which student was selected for each ordered product and add that to the prepended string.

So I figured I could add
Code: Select all
ss_field1[number_products-1]=document.referrer;
in the shopping cart template and add those values in my code on the thank-you page.

Problem is, it doesn't work.

Can anyone enlighten me on how to assign document.referrer to ss_field1?

Otherwise, is there a simpler way to get the student's value on the thank-you page?

Thanks.
OldSalt
 
Posts: 23
Joined: Mon Sep 28, 2009 4:37 pm
Location: MA

Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 59 guests