Change Order of Blocks – ‘before’ and ‘after’ attributes

Use ‘before’ and ‘after’ block attributes to change the order of blocks. You can set the position of a block within a structural block by assigning the name of another block to either ‘before’ or ‘after’ attribute.

For example, if you’d like to put ‘Product Viewed’ box below ‘Cart’ box on the right menu, you can define the layout XML files as follows:

You can define block position at the very top or bottom by using before=”-” or after=”-”.


7 Replies to “Change Order of Blocks – ‘before’ and ‘after’ attributes”

  1. Pingback: viagra online
  2. Pingback: buy cialis online
  3. Pingback: when to buy viagra

Leave a Reply