Announcement

Collapse
No announcement yet.

Create & use a "Promotion" button - is it possible?

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

    Create & use a "Promotion" button - is it possible?

    We want to select certain products for a sales promotion.
    Accordingly, it would be nice to replace the 'Add to cart' with a custom 'Promo' button for the selected products only.

    It might be nice to have it as an image button,but not essential, just as long as the promo 'add to cart' is totally different from the regular 'add to cart' button.

    It is not a Global change, only for selected products.

    Pointers & advice welcome - Thanks
    www.yandles.co.uk
    www.websilk.co.uk
    Today is the tomorrow that I worried about yesterday.
    So far, all is well. Am I still worried? YES! Watch some b.....d mess it up!

    #2
    Good question, my first port of attack would be to change the add to cart image variable so it can be set at product level, use an image for the button (whether original or new one is to show) and set which image to use at product level on those you wish to change. That will be easiest i reckon unless you delve into blockifs which i am pretty sure you won't want to.

    Comment


      #3
      You need to set up 2 cart buttons .... duplicate the existing and change the image filename... you then create a user defined variable set to product level and a true/false option... wrap the button layouts in a blockif to test the variable changing the variable accordingly at the products on promotion. You can even set the <img src="n"> as a variable and scope to overide ... lots of permutations on the same basic theme


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        I think Lee and jont are the same person....anyone else feeling that?
        Tracey

        Comment


          #5
          LOL, Bumpsy.

          Comment


            #6
            We are one. The same. I have the looks... Lee got the brains!


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              Originally posted by jont View Post
              We are one. The same. I have the looks... Lee got the brains!
              Jont suffers from dillusion and gets things mixed up the wrong way round, we could never be the same person. So we would have you believe .

              Comment


                #8
                Originally posted by jont View Post
                I have the looks.
                yeh...I'm really digging that stubbly look, 'Jontlee'
                Tracey

                Comment


                  #9
                  Originally posted by leehack View Post
                  Jont suffers from dillusion
                  that's a side effect of forum overuse, I find
                  Tracey

                  Comment


                    #10
                    Originally posted by leehack View Post
                    ..... unless you delve into blockifs which i am pretty sure you won't want to.
                    @Lee: No way - (not yet anyway - I have no time to learn, try, cock-it-up, learn again how to fix it, try again, give up & revert scenario )

                    @Lee & Jonty: thanks for the pointers...
                    www.yandles.co.uk
                    www.websilk.co.uk
                    Today is the tomorrow that I worried about yesterday.
                    So far, all is well. Am I still worried? YES! Watch some b.....d mess it up!

                    Comment


                      #11
                      In the library create a new variable called "OfferButton" .. set


                      prompt = set to false to set as offer button
                      place of setting = product
                      tab name = properties
                      type = true / false
                      initial value = true
                      top level = true

                      replace the content of "add to cart button image" with

                      Code:
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22CartButtonVisibleToAllCustomers%22%20%2f%3e" >
                      <!-- This code is used when the cart button is visible to all customers -->
                      <input type="image" 
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22OfferButton%22%20%2f%3e%20%20%3d%3d%20true">
                      	src="<actinic:variable name="CartButtonImage" />"
                         </actinic:block> 
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22OfferButton%22%20%2f%3e%20%20%3d%3d%20false" >
                      	src="x-pc1-small.jpg"
                         </actinic:block>
                      
                         name="_<Actinic:Variable Name="ProductReference"/>" 
                         alt="Add to Cart"
                         />
                      </actinic:block> 
                      
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22EnabledForCustomerGroupID%22%20%2f%3e%20%21%3d%20%22%22">
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e">
                      <!-- This code is used when the cart button is visible to retail customers, but not all other customer groups -->
                      <Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />">
                      <input type="image" 
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22OfferButton%22%20%2f%3e%20%20%3d%3d%20true">
                      	src="<actinic:variable name="CartButtonImage" />"
                         </actinic:block>
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22OfferButton%22%20%2f%3e%20%20%3d%3d%20false" >
                      	src="x-pc1-small.jpg"
                         </actinic:block>
                         name="_<Actinic:Variable Name="ProductReference"/>" 
                         alt="Add to Cart"
                         />
                      </Actinic:ShowForPriceSchedule>
                      </actinic:block>
                      
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20FALSE" >
                      <!-- This code is only used when the cart button needs to hidden from certain customer groups -->
                      <Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />" HTML="<input type='image' <actinic:block if="%3cactinic%3avariable%20name%3d%22OfferButton%22%20%2f%3e%20%20%3d%3d%20true">
                      	src='<actinic:variable name="CartButtonImage" />'
                      </actinic:block> 
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22OfferButton%22%20%2f%3e%20%20%3d%3d%20false" >
                      	src="x-pc1-small.jpg"
                         </actinic:block>
                      name='_<Actinic:Variable Name="ProductReference"/>' alt='Add to Cart' />"></Actinic:ShowForPriceSchedule>
                      </actinic:block>
                      </actinic:block>
                      .. here I have used the offer button using filename "x-pc1-small.jpg" .. change this to use your image (I was in the clean site and just grabbed an existing image) .. ensure the file is in the root of the site folder.


                      Bikster
                      SellerDeck Designs and Responsive Themes

                      Comment


                        #12
                        Helps if I tell you how to use it I guess

                        In the product on offer switch to the products property tab and change the offer button to "false" in the drop down... that will set to use your offer button image.


                        Bikster
                        SellerDeck Designs and Responsive Themes

                        Comment


                          #13
                          Thanks for that Jonty _ i will now go away an digest that and report back later...
                          www.yandles.co.uk
                          www.websilk.co.uk
                          Today is the tomorrow that I worried about yesterday.
                          So far, all is well. Am I still worried? YES! Watch some b.....d mess it up!

                          Comment

                          Working...
                          X