Announcement

Collapse
No announcement yet.

Blockif's in Shopping Cart/Checkout/Receipt Page Only

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

    Blockif's in Shopping Cart/Checkout/Receipt Page Only

    Good Afternoon,

    I'm looking at implementing a piece of code which will only be shown if the current page is the cart, checkout page 0,1,2,3 or receipt page.

    For this, I have done the following:

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Shopping%20Cart%22%20%20OR%20%22Checkout%20Page%200%22%20%20OR%20%22Checkout%20Page%201%22%20%20OR%20%22Checkout%20Page%202%22%20%20OR%20%22Checkout%20Page%203%22%20%20OR%20%22Receipt%22" >
    
    blah blah blah, the code is here
    
    </actinic:block>
    My (limited) understanding of this is that when Actinic generates the web pages, my 'blah blah blah' code will only be uploaded if the condition is met, in this case

    If PageType = Shopping Cart OR Checkout Page 1 OR... etc

    However, this blockif is in the <head> of the document - should this matter?

    I've currently got this on a virtual server so can't physically show the issue publicly, but will try my best if someone requires further info.

    I've uploaded the site and my 'blah blah blah' code is on every page, thus, it is falling foul to the blockif condition.

    Can anyone shed some light on this please?

    Many thanks,
    Grant

    #2
    I think it should be:

    If PageType = Shopping Cart OR PageType = Checkout Page 1 OR PageType =... etc
    Darren Guppy
    Golf Tee Warehouse
    Golf Tees and Golf Accessories.

    Comment


      #3
      Grant,

      I have just tested the above suggestion on my test site and appears to work.
      The code I used was:

      Code:
      <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Shopping%20Cart%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%200%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%201%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%202%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%203%22%20OR%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22" >
      
      blah blah blah, the code is here
      
      </actinic:block>
      Darren Guppy
      Golf Tee Warehouse
      Golf Tees and Golf Accessories.

      Comment


        #4
        Yup,

        You've done it Darren, this is exactly what I was looking for

        As has become the normal thing to say on this forum: I couldn't see the wood for the trees

        Cheers,
        Grant

        Comment

        Working...
        X