Posted By

morktron on 05/11/11


Tagged

joomla virtuemart


Versions (?)

Conditional code to publish to all pages except VirtueMart checkout


 / Published in: PHP
 

URL: http://forum.joomla.org/viewtopic.php?p=1868474

publish to everywhere except VirtueMart checkout pages (I think!)

  1. <?php
  2. $page = JRequest::getVar('page', null);
  3. $view = JRequest::getVar('view', null);
  4. if($view == ('frontpage') && $page!='shop.cart' && $page!='account.order_details' && $page !='shop.browse' && $page !='checkout.thankyou' && $page !='shop.product_details' && $page !='account.index' && $page !='account.billing' && $page !='account.shipping' && $page !='account.shipping' && $page !='account.shipto' && $page !='shop.registration'): ?>
  5.  
  6. put what you want in here
  7.  
  8. <?php endif; ?>

Report this snippet  

You need to login to post a comment.