Pull div class from referring page

I had a request to add a feature to a current website. The current website is basically a giant catalog with no price options give and a customer must “Request a quote”. That request a quote is a Salesforce web to lead form that goes into the pool for routing to the correct dealer based on the location.

The request a quote button is everywhere on the site to draw as much attention as possible. The issues they have is they want it to pull information from the referring page IF the referrer is a product page or the compare page. There are two classes that contain the information.

Read More

Compare page
“”

Product page
“”

The product page will have only 1 item while the compare page could have 1,2, or 3.

I guess it would be a IF/ OR statement that if the referring page contains one of those classes, display it here, which would be in the message field. Google has not turned up much on this. The website is www.rainbowplay.com Any help would be great!

Related posts

Leave a Reply