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;
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.