Conditional code to publish to all pages except VirtueMart checkout


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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; ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.