Announcement

Collapse
No announcement yet.

prefilled subject incorrect in Contact us

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    prefilled subject incorrect in Contact us

    Hi,

    I have created my own hyperlink on the Smart layout to go to the contact us section with a pre filled out subject field. This works fine in all main areas except when you try and click on the link from the cart area or check out areas.

    When I click on it from there the subject line reads
    "http://www.romtronics.co.uk/cgi-bin/mf000000.pl?ACTION=SHOWFORM&SHOP=hyperom2=p=General%20Enquiry&REFPAGE=http%3a%2f%2fwww%2eromtronics%2eco%2euk%2fdorothy%2facatalog%2fshop%2ehtml"
    instead of just "General Enquiry".


    The link I use for the hyperlink is http://www.romtronics.co.uk/cgi-bin/...rom2=p=General Enquiry

    Does anyone know if there is a way round this, can anyone help me, this is the last thing I need to sort so I can upload the site, any help would be much appreciated

    #2
    Would it be easier to put that text in the value field?.
    Peblaco

    Comment


      #3
      Hiu Peblaco,

      Looks like a much better idea
      Well there are 4 sections each of the have their own layouts for each manufacturer and within each layout there is this link to the contact us with different names depending on the section for example in the samsung section it says "Samsung Enquiry, If they are in the main pages like the home page itself it will say "General Enquiry"

      Is what you have suggested still possible to do within each section, if so where about would I put the code?

      Thanks for your reply

      Comment


        #4
        Can you use a blockif firing off a section level defined variable to fill in the correct text? You'd just select which of the four entries you want to show (on the variable drop down list) and the text would change accordingly?

        Comment


          #5
          You are using this lump of JavaScript to extract the subject from the query string and store it in the appropriate field.
          Code:
          <script type="text/javascript">
          if ((location.href).match("p=")){
          document.getElementById("subject").value=decodeURI((location.href).substring((location.href).lastIndexOf("=")+1,(location.href).length));
          }
          </script>
          Where did this code come from?

          It should be possible to modify it to do what you want.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Hi guys,

            Yeah I have all that filled in, looks like its one of those things, I have removed my link from the checkout and cart pages, Thanks for your help on this.

            Comment

            Working...
            X