Announcement

Collapse
No announcement yet.

Block if help

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

    Block if help

    I have added the text "excluding chain" next to the price on some products so that it only shows on the product page.

    Using a block if I have stopped the text showing on section pages.

    I am however unsure how to use a block if to stop the text from showing on "related products" and "also bought"

    Could anyone give me any pointers on how to block if on the marketing please?

    Many thanks

    Jason
    Regards

    Jason

    Titan Jewellery (Swift Design)
    Zirconium Rings
    Damascus Steel Rings

    #2
    Tricky but can be done without a blockif.

    Lets say you put your "excluding chain" text into italics like this:

    <i>excluding chain</i>

    Now in your Related Products and Also Bought layouts put:

    <span class="hideitalics"> ..... </span>

    around the code that displays the price.

    Then add a declaration to the stylesheet like

    .hideitalics i {display:none}

    This will hide code in italics only if they are within the spans you add to the Related Products and Also Bought items.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norman,

      Many thanks for that.

      I am blocking the text from other sections as well using blocks so this would have been my prefered option, however it sounds from your post that this may not be possible after all.

      I will have a play with what you suggest.

      Many thanks

      Jason
      Regards

      Jason

      Titan Jewellery (Swift Design)
      Zirconium Rings
      Damascus Steel Rings

      Comment


        #4
        Hi Norman,

        That worked a treat, many thanks.
        Regards

        Jason

        Titan Jewellery (Swift Design)
        Zirconium Rings
        Damascus Steel Rings

        Comment

        Working...
        X