Announcement

Collapse
No announcement yet.

Quantity Prompt

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

    Quantity Prompt

    Hey Guys,

    Is there a way i can change the quantity prompt for a "Single" item.

    Please see my attached Screen shot.

    If i change the Current Value it will change that value for the whole shop.

    Its only certain items i want to change "Quantity:" to "Linear Metres"

    Can i do it?
    Attached Files

    #2
    This is how I'd do it....

    You'll need to set up a User Defined Variable (True/False) settable at Product level to indicate whether to show the alternative prompt of "Linear Metres"

    Then, in the product layout and/or product summary layout you need to put a BLOCKIF

    e.g.

    CURRENT CODE :

    Code:
     
    <span class="actrequired">
       <Actinic:Variable Name="QuantityPrompt"/>
     </span>
    NEW CODE :

    Code:
     
         <span class="actrequired">
          <actinic:block if="%3cactinic%3avariable%20name%3d%22UseAlternativeQtyPrompt%22%20%2f%3e%20%3d%3d%20false">
           <Actinic:Variable Name="QuantityPrompt"/>
          </actinic:block>
          <actinic:block if="%3cactinic%3avariable%20name%3d%22UseAlternativeQtyPrompt%22%20%2f%3e%20%3d%3d%20true">
           Linear Metres
          </actinic:block>
         </span>
    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    Comment


      #3
      Look up QuantityPrompt in the Library. If Place Of Setting includes Product, you can already set it per product. If not set, just enable it.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        QuantityPrompt comes from Design Text.... I didn't think that was accessible through the design library (hopefully I'm about to learn something). Not near a computer so can't check at the moment.
        Elysium:Online - Official Accredited SellerDeck Partner
        SellerDeck Design, Build, Hosting & Promotion
        Based in rural Northants

        Comment


          #5
          Andrew is right. It's fixed via Design / Text and that's global. Was posting via a phone so hadn't got Actinic running to see.

          Easiest way to fix this is to create a site level Variable "MyQuantityPrompt" with Place Of Setting: Site-Section-Product, Type: Text, Initial Value: Use Parent, Top Level Value: Quantity:

          Now simply edit your Product Layout(s) and replace:
          Code:
          <Actinic:Variable Name="QuantityPrompt"/>
          with
          Code:
          <Actinic:Variable Name="MyQuantityPrompt"/>
          And all your Sections and Products will now have a setting MyQuantityPrompt containing "Quantity:" that you can override as desired.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Originally posted by Goz View Post
            This is how I'd do it....

            You'll need to set up a User Defined Variable (True/False) settable at Product level to indicate whether to show the alternative prompt of "Linear Metres"

            Then, in the product layout and/or product summary layout you need to put a BLOCKIF

            e.g.

            CURRENT CODE :

            Code:
             
            <span class="actrequired">
               <Actinic:Variable Name="QuantityPrompt"/>
             </span>
            NEW CODE :

            Code:
             
                 <span class="actrequired">
                  <actinic:block if="%3cactinic%3avariable%20name%3d%22UseAlternativeQtyPrompt%22%20%2f%3e%20%3d%3d%20false">
                   <Actinic:Variable Name="QuantityPrompt"/>
                  </actinic:block>
                  <actinic:block if="%3cactinic%3avariable%20name%3d%22UseAlternativeQtyPrompt%22%20%2f%3e%20%3d%3d%20true">
                   Linear Metres
                  </actinic:block>
                 </span>
            Thanks for the reply, you will hae the bare with me as im still learning the basics.

            If i view the section that wish to change, then hit design tab and find the CURRENT CODE. Remove that and replace with the NEW CODE. Then what? As it still says "Quantity" how would i then go about changing individual products?

            Sorry to be a PITA!

            Comment


              #7
              Open up the variable you have created and it will tell you on which tab/menu/panel it is on, you then select a product and then select that corresponding tab/menu/panel to change it.

              Comment


                #8
                Im getting HTML Errors.

                Its saying "The standard layout Using CSS layout has a faulty conditon in it

                And its pointing me to a Blockif?

                Comment


                  #9
                  Please see attached image. Do i paste New Code here?
                  Attached Files

                  Comment


                    #10
                    Thats the right place yes, you've probably not copy pasted correctly or not created the variable with the same name as in the code provided to you. Norman's method is a bit easier to follow, go with that IMO.

                    Comment


                      #11
                      I have Copied Pasted it perfect.

                      2 Errors, and its bringing up both "Quantity" and "Linear Metres"...

                      Sorry im a newb, Normans way makes no sense! I hate being a rookie

                      Comment


                        #12
                        Norman's way is less work and easier to follow and less code to understand, you're basically replacing the system variable for that prompt with your own, put the normal text in your new variable so that all products get that as standard and then simply change it on products where you want it different.

                        Perhaps time to have a read up on creating variables in the inbuilt help, will help you to understand what you are doing. You seem to be doing things with little or no understanding of what you are actually doing. Take 15 mins out and have a read, will help you tenfold if you want to get into this area as it is reasonably advanced for a noob tbh.

                        Comment


                          #13
                          Trust me, if i do anymore reading tonight my Retina's will burn out! So ill read up tomorrow, im sure ill work it out, its all a learning curve eh!

                          Without the help of you guys id be even more lost, your help is much appreciated.

                          Comment


                            #14
                            LOL, i know the feeling, stick with it you will have a eureka moment, its quite simple what you are doing once you get how actinic works. Don't be hard on yourself, like i say you are into advanced changes there, certainly not a 5 minute task to pick up.

                            Comment


                              #15
                              Creating Variables tutorial also in the Starter Guide.
                              Norman - www.drillpine.biz
                              Edinburgh, U K / Bitez, Turkey

                              Comment

                              Working...
                              X