Announcement

Collapse
No announcement yet.

Need a new block if code

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

    Need a new block if code

    Hi All

    I'm trying to update my 2013 to 2014.

    Firstly I'm getting a problem with my social media links ( I had these before the upgrade so don't really need them from sellerdeck)

    My test site is here...

    http://www.brilliantgems.co.uk/acatalog/test/index.html

    On my live site the media buttons don't appear in the fragments on the home page as here...

    http://www.brilliantgems.co.uk/

    But on the test site they do. Ive tried changing the block if to "IsNottheProductPage" but not sure if that's even valid.

    It should only appear on the product pages as here...

    http://www.brilliantgems.co.uk/acata...ng.html#SID=22

    Just below the add to cart button.

    The test site doesn't even have the media buttons on the product pages so not sure whats going on. Any ideas appreciate.

    Lastly Im also getting an issue with the image on the left text wrapped around section for the product pages. I have tried resetting this page in the design library to factory settings and been in touch with sellerdeck support which is going nowhere they just told me to replace line 64 with a code that was already there! Which is the error line when I do a preview. If I ignore the 82 error message then on some product pages there is no text at all, just the image no text wrapped around the product ref, price and add to cart button. Not sure if this can be sorted out from here but again any help much appreciated.

    Best wishes

    Bhu

    Well the latest I've tried does now add the code onto the product pages as here...

    http://www.brilliantgems.co.uk/acata...ia.html#SID=24

    But I need it gone from here...

    http://www.brilliantgems.co.uk/acatalog/test/index.html

    So any ideas for the block if code much appreciated.
    Last edited by Bhujang; 25-Nov-2014, 06:32 PM. Reason: Latest...

    #2
    Your friendly variable is "PageType" ... you can then test for various page types .... including PageType == "Section" which will add the code into section pages only


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      As for the image issue you will need to either post a link to the page or copy you code to the form between [ code] ... [ /code ] tags ... note there are no spaces in the tags .. I added them to stop it showing the code panel

      It sounds as if a <div> is not being closed properly but without seeing it is anyones guess


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Originally posted by jont View Post
        Your friendly variable is "PageType" ... you can then test for various page types .... including PageType == "Section" which will add the code into section pages only
        Do you use this with the block if command? Not really sure how Id use PageType apart from blocking fragments which is the place where they are showing up that need to be removed.

        Is it as simple as PageTypeFragment

        Comment


          #5
          In the design window highlight the chunk of code you want the Block If around (what you want to show and hide) ... click on the green Block If icon at the top of the code window and in the pop-up window start typing PageType ... select the name from the drop down option and hit enter ... that will enter the PageType variable as a blue colour ... hit space and then enter == "Section" .. it will look like

          PageType == "Section"


          apply and OK to close


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            Originally posted by jont View Post
            In the design window highlight the chunk of code you want the Block If around (what you want to show and hide) ... click on the green Block If icon at the top of the code window and in the pop-up window start typing PageType ... select the name from the drop down option and hit enter ... that will enter the PageType variable as a blue colour ... hit space and then enter == "Section" .. it will look like

            PageType == "Section"


            apply and OK to close
            So I tried this and unfortunately it didn't work. I still get the media icons on the home page. On the 2 fragments that I use to say welcome and my magic slide show here...

            http://www.brilliantgems.co.uk/acatalog/test/index.html

            Here is my entered code...

            <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%3d%3d%22section%22" >
            <p> </p> <b></b>
            <div class="pw-widget pw-size-medium">
            <a class="pw-button-pinterest"></a>
            <a class="pw-button-googleplus"></a>
            <a class="pw-button-facebook"></a>
            <a class="pw-button-twitter"></a>
            <a class="pw-button-stumbleupon"></a>
            <a class="pw-button-post"></a>
            </div>
            </actinic:block>

            I need this code to be on my individual product pages only.

            Comment


              #7
              Code:
              <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22">
              	<p> </p> <b></b>	
              <div class="pw-widget pw-size-medium">
              <a class="pw-button-pinterest"></a>
              <a class="pw-button-googleplus"></a>
              <a class="pw-button-facebook"></a>
              <a class="pw-button-twitter"></a>
              <a class="pw-button-stumbleupon"></a>
              <a class="pw-button-post"></a>
              </div>
              		</actinic:block>
              will add to the SPP pages only


              Bikster
              SellerDeck Designs and Responsive Themes

              Comment


                #8
                Not quite sure why you need

                <p> </p> <b></b>

                at the top of the code but this may be for some Javascript insertion so have left it in


                Bikster
                SellerDeck Designs and Responsive Themes

                Comment


                  #9
                  Originally posted by jont View Post
                  Code:
                  <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22">
                  	<p> </p> <b></b>	
                  <div class="pw-widget pw-size-medium">
                  <a class="pw-button-pinterest"></a>
                  <a class="pw-button-googleplus"></a>
                  <a class="pw-button-facebook"></a>
                  <a class="pw-button-twitter"></a>
                  <a class="pw-button-stumbleupon"></a>
                  <a class="pw-button-post"></a>
                  </div>
                  		</actinic:block>
                  will add to the SPP pages only
                  So I copy pasted this exactly and still have the media icons showing on the 2 fragments on the home page! This is very frustrating as it doesn't happen at all in sellerdeck 2013...

                  Thanks for your help so far, any other ideas?

                  Comment


                    #10
                    You didn't follow post #5 carefully. In post #6, above you're using "section" when you need "Section".
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Originally posted by NormanRouxel View Post
                      You didn't follow post #5 carefully. In post #6, above you're using "section" when you need "Section".
                      Re-tried with capital S still same result...

                      Comment


                        #12
                        Using either == "Section" or == "Product Page" will work ... are you sure you are editing the correct code ... you may have it more than one layout and you need to edit each occurance


                        Bikster
                        SellerDeck Designs and Responsive Themes

                        Comment


                          #13
                          Hi Jont

                          Thanks for your reply, sorry for delay in getting back to you, ive been trying to sort this but still no joy! Im using the image on the left text wrapped around layout code only and when I take my media badges off this page then they go from everywhere on my site. I have tried again using Section and Product Page with no luck! Its really weird!

                          This is what I have entered...

                          <!-- ALl social media -->
                          <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22">
                          <p> </p> <b></b>
                          <div class="pw-widget pw-size-medium">
                          <a class="pw-button-pinterest"></a>
                          <a class="pw-button-googleplus"></a>
                          <a class="pw-button-facebook"></a>
                          <a class="pw-button-twitter"></a>
                          <a class="pw-button-stumbleupon"></a>
                          <a class="pw-button-post"></a>
                          </div>
                          </actinic:block>

                          now I will try

                          <!-- ALl social media -->
                          <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22">
                          <p> </p> <b></b>
                          <div class="pw-widget pw-size-medium">
                          <a class="pw-button-pinterest"></a>
                          <a class="pw-button-googleplus"></a>
                          <a class="pw-button-facebook"></a>
                          <a class="pw-button-twitter"></a>
                          <a class="pw-button-stumbleupon"></a>
                          <a class="pw-button-post"></a>
                          </div>
                          </actinic:block>

                          Again but don't have my hopes high! I still end up with the media on my home page fragments as well

                          Comment


                            #14
                            So it didn't work either... In fact it has taken the media badges off my product pages so the complete wrong effect!

                            Here is what I get

                            http://www.brilliantgems.co.uk/acatalog/test/index.html

                            Under the "Welcome to Brilliant Gems"

                            and under my magic slideshow the same icons as should be just on my product pages...



                            Anyone else got any ideas that can help me out here?

                            Comment


                              #15
                              Originally posted by Bhujang View Post
                              Lastly Im also getting an issue with the image on the left text wrapped around section for the product pages. I have tried resetting this page in the design library to factory settings and been in touch with sellerdeck support which is going nowhere they just told me to replace line 64 with a code that was already there! Which is the error line when I do a preview. If I ignore the 82 error message then on some product pages there is no text at all, just the image no text wrapped around the product ref, price and add to cart button. Not sure if this can be sorted out from here but again any help much appreciated.
                              This is a problem that appears on some sites which have been upgraded to V14 from an earlier version, in my case from V12. I had one earlier today and the code from Sellerdeck for the 'blockif' does work if implemented correctly, this has been reported to Sellerdeck as a bug.

                              Original code
                              Code:
                              <actinic:variable name="ProductDescription"/> != ""
                              New code
                              Code:
                              <actinic:variable encoding="html" name="ProductDescription" selectable="false" /> != ""

                              Malcolm

                              SellerDeck Accredited Partner,
                              SellerDeck 2016 Extensions, and
                              Custom Packages

                              Comment

                              Working...
                              X