Announcement

Collapse
No announcement yet.

Conditional Required Field

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

    Conditional Required Field

    Hi,

    I have a shipping option available 'Collection by Courier' which allows the customer to define their own courier service for goods collection.

    I am then using the 'Special shipping instructions' box (Phase:2 ID:1) to collect their courier information, however we are getting problems with customers not entering any information into this text box.

    Is there a way we could have a conditional requirement for this box, eg.
    if (shipping = 'collection by courier') then 'Special shipping instructions' is required?
    <a href="http://www.rfsolutions.co.uk">RF Solutions Ltd - Remote Control, Bluetooth, Zigbee, RFID, GSM and GPS Products</a>

    #2
    Does anyone know if this is possible?
    <a href="http://www.rfsolutions.co.uk">RF Solutions Ltd - Remote Control, Bluetooth, Zigbee, RFID, GSM and GPS Products</a>

    Comment


      #3
      Hi,

      I don't think this is possible but will ask our development team for you.
      ********************
      Tracey
      SellerDeck

      Comment


        #4
        If this is not possible, would it be possible to change the order that the shipping options are displayed in the drop-down box?

        At the moment we have 'Collection by Courier' as the first option and quite a few people are not changing the option, even though they don't really want to collect themselves.

        If we have 'Collection by Courier' at the bottom of the list maybe it would not be selected erroneously quite as much...
        <a href="http://www.rfsolutions.co.uk">RF Solutions Ltd - Remote Control, Bluetooth, Zigbee, RFID, GSM and GPS Products</a>

        Comment


          #5
          Hi,

          If we have 'Collection by Courier' at the bottom of the list maybe it would not be selected erroneously quite as much...
          I'm still waiting a reply from our development team about the conditional field but you might want to take a look at the ways you can sort your shipping options by. Open the ShippingTemplate.pl file in a text editor such as notepad (can be found in 'c:\program files\actinic v7\sites\site1\shipcontrol') and search for:

          # ACTINIC CUSTOMISE: Sort the shipping options

          This then provides information on how to sort the shipping options. They can be done either by:

          - Ascending order of total cost
          - Descending order of total cost
          - Ascending alphabetical order
          - Descending alphabetical order.

          I hope this helps.
          ********************
          Tracey
          SellerDeck

          Comment


            #6
            Thanks Tracy, this is a good interim solution for us.

            We would really like to be able to put a non-blank condition on the VAT exemption field as well if the customer chooses for VAT exemption.

            Mike
            <a href="http://www.rfsolutions.co.uk">RF Solutions Ltd - Remote Control, Bluetooth, Zigbee, RFID, GSM and GPS Products</a>

            Comment


              #7
              Hi,

              To make your 'special shipping instructions' conditional on a class you need to do the following:

              - open OrderScript.pl in the site directory with a text editor
              - Search for the first instance of:

              Code:
               if ($$::g_pSetupBlob{MAKE_SHIPPING_CHARGE} &&
              - insert the following on a line directly before the above:

              Code:
                     my $sShipClassName;
              - then find the first instance of:

              Code:
              my @Response = ActinicOrder::CallShippingPlugIn();
              - and insert the following on a line directly after the above:

              Code:
               $sShipClassName = $Response[5];             # saving the shipping class name
              - then find:

              Code:
               if ($bActuallyValidate &&
                              (ACTINIC::IsPromptRequired(2, 1)&&
                              $::g_ShipInfo{'USERDEFINED'} eq "")
              - and change it to:

              Code:
               if ($bActuallyValidate &&
                              (ACTINIC::IsPromptRequired(2, 1) ||
                              $sShipClassName =~ /collection/i)  &&
                              $::g_ShipInfo{'USERDEFINED'} eq "")
              This is assuming that you only have one shipping class with the word collection in it.

              Save the file and update the site.

              We would really like to be able to put a non-blank condition on the VAT exemption field as well if the customer chooses for VAT exemption.
              As far as I can see, if you tick the box for 'VAT Exemption' then you cannot proceed through the checkout unless you complete the exemption field. Is that what you meant?
              ********************
              Tracey
              SellerDeck

              Comment


                #8
                Thanks Tracey,

                I tried it out and it works fine (once I copied the right text into the script!)

                Regarding the VAT exemption, sorry it was only when someone selected the wrong country that the VAT wasn't charged!
                <a href="http://www.rfsolutions.co.uk">RF Solutions Ltd - Remote Control, Bluetooth, Zigbee, RFID, GSM and GPS Products</a>

                Comment

                Working...
                X