Announcement

Collapse
No announcement yet.

Hardcode UPS Residential

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

    Hardcode UPS Residential

    I need to add the hardcoded UPS residential to my V8 site. I want all UPS shipments to be residential, with nothing displayed on the screen. I know it goes in this line, but I'm not sure what to change.

    <Actinic:Variable Name="ResidentialPrompt"/>
    <input type="checkbox" name="DELIVERRESIDENTIAL" <Actinic:Variable Name="DeliverResidential"/> />

    If I change "checkbox" to hidden, it still leaves the label on the screen. I don't want the label there either.

    And I'm not sure what to put to hardcode the residential selection.

    Help, please.
    -------

    Pat

    #2
    Hi Pat

    The code that you are using is correct, however you may have to remove the label from Desing | Text as well in order to get it fully working. Please can you give us some more information though. When you say "I want all UPS shipments to be residential" - do you want to prevent UPS shipping from working if the shopper is at a commercial premises? because if you hardcode residentail, shipment to commercial establishments might end up have the wrong shipping rates.

    Regards
    Kiran Chandran
    Technical Support - SellerDeck
    http://www.sellerdeck.co.uk/

    Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

    Comment


      #3
      Residential only

      I am trying to modify the setup to show residential only (or at least default to residential) delivery. Is the file needing modification named "Act_LocationSelectTemplate.html"? If so, I modified it per this thread and refreshed the website but it did not change. So I thought I'd go to the server and find the file and ftp the revised version directly -- nice thought but i can not find the file on the server. I'm sure I'm missing something obvious... Any ideas?

      Comment


        #4
        Here are the notes I saved on this:

        Hard-code UPS Residential
        In: 'Act_LocationSelectTemplate.html'
        Find:
        NETQUOTEDEL:RESIDENTIAL
        <TD>NETQUOTEVAR:RESIDENTIALPROMPT<INPUT TYPE="CHECKBOX" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" NETQUOTEVAR:NETQUOTEVAR:REQLOCATIONRESIDENTIAL></TD>
        NETQUOTEDEL:RESIDENTIAL

        Change to:
        NETQUOTEDEL:RESIDENTIAL
        <TD><!-- NETQUOTEVAR:RESIDENTIALPROMPT--><INPUT TYPE="HIDDEN" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" VALUE="Residential">
        NETQUOTEDEL:RESIDENTIAL

        The template should stay in the 'Site1' folder - it is the generated page which should be up in the 'acatalog' folder.
        -------

        Pat

        Comment


          #5
          Originally posted by pharry
          Here are the notes I saved on this:

          Hard-code UPS Residential
          In: 'Act_LocationSelectTemplate.html'
          Find:
          NETQUOTEDEL:RESIDENTIAL
          <TD>NETQUOTEVAR:RESIDENTIALPROMPT<INPUT TYPE="CHECKBOX" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" NETQUOTEVAR:NETQUOTEVAR:REQLOCATIONRESIDENTIAL></TD>
          NETQUOTEDEL:RESIDENTIAL

          Change to:
          NETQUOTEDEL:RESIDENTIAL
          <TD><!-- NETQUOTEVAR:RESIDENTIALPROMPT--><INPUT TYPE="HIDDEN" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" VALUE="Residential">
          NETQUOTEDEL:RESIDENTIAL

          The template should stay in the 'Site1' folder - it is the generated page which should be up in the 'acatalog' folder.
          Thank you!

          That seemed to work except that the residential box is still visible. It does come back with residential rates regardless of it being ticked or not though. Is there a way to make the box invisible?

          Comment


            #6
            This is a cut/paste of my template, and the box does not display on my site:

            NETQUOTEDEL:RESIDENTIAL
            <TD><!-- NETQUOTEVAR:RESIDENTIALPROMPT--><INPUT TYPE="HIDDEN" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" VALUE="Residential">
            NETQUOTEDEL:RESIDENTIAL

            This looks the same, though, so I'm not sure why your box displays and mine doesn't.
            -------

            Pat

            Comment


              #7
              Originally posted by pharry
              This is a cut/paste of my template, and the box does not display on my site:

              NETQUOTEDEL:RESIDENTIAL
              <TD><!-- NETQUOTEVAR:RESIDENTIALPROMPT--><INPUT TYPE="HIDDEN" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" VALUE="Residential">
              NETQUOTEDEL:RESIDENTIAL

              This looks the same, though, so I'm not sure why your box displays and mine doesn't.
              Okay - I've cut & pasted yours again. I'll now refresh the site and see what happens. FYI, Here's a cut/paste of the entire file:
              ------------------------------
              <!-- LocationSelect HTML begin -->
              <!-- Template for selecting location -->
              <span class="actregular"><b>NETQUOTEVAR:LOCATIONTITLE</b></span><br><br>
              <table border="0" width="CUSTOMVAR:ACTSTDWIDTH" cellspacing="0" cellpadding="2">
              <tr>
              <td width="33%" align="LEFT"><span class="actrequiredcolor">NETQUOTEVAR:LOCATIONPROMPT</span></td>
              <td width="33%" align="LEFT">
              NETQUOTEVAR:LOCATIONCOUNTRY
              </td>
              <td width="33%" align="LEFT">
              NETQUOTEVAR:LOCATIONSTATE
              </td>
              </tr>
              NETQUOTEDEL:SEPARATESHIP
              <TR>
              <TD colspan="2" align="LEFT">NETQUOTEVAR:INVOICEPROMPT016</TD>
              <TD><INPUT TYPE="CHECKBOX" CHECKED="CHECKED" NETQUOTEVAR:INVOICESEPARATECHECKSTATUS NAME="SEPARATESHIP" VALUE="YES"></TD>
              </TR>
              NETQUOTEDEL:SEPARATESHIP

              NETQUOTEDEL:EXTRAADDRESSINFO
              <tr>
              NETQUOTEDEL:POSTALCODE
              <td width="33%" align="LEFT"><span class="actrequiredcolor">NETQUOTEVAR:POSTALCODEPROMPT</span></td>
              <td width="33%" align="LEFT"><INPUT TYPE="TEXT" NAME="NETQUOTEVAR:REQLOCATIONPOSTALCODE" SIZE="10" MAXLENGTH="12" VALUE="NETQUOTEVAR:NETQUOTEVAR:REQLOCATIONPOSTALCODE"></td>
              NETQUOTEDEL:POSTALCODE

              NETQUOTEDEL:RESIDENTIAL
              <TD><!-- NETQUOTEVAR:RESIDENTIALPROMPT--><INPUT TYPE="HIDDEN" NAME="NETQUOTEVAR:REQLOCATIONRESIDENTIAL" VALUE="Residential">
              NETQUOTEDEL:RESIDENTIAL

              </tr>
              NETQUOTEDEL:EXTRAADDRESSINFO
              </table>
              <!-- End of template for selecting location -->
              <!-- LocationSelect HTML end -->
              <!-- Not used: NETQUOTEVAR:REQUIREDCOLOR -->

              Comment

              Working...
              X