VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: EvanGR on June 17, 2020, 12:35:56 PM

Title: How do I know I am in checkout page? (PHP)
Post by: EvanGR on June 17, 2020, 12:35:56 PM
We're having some weird browser caching issues in the checkout page.

I want to add a NO-CACHE meta in the header for that page.

How would I detect that in PHP with an if statement?

Also, we're using a 3rd party checkout (OPC), does that make a difference?

Thanks
Title: Re: How do I know I am in checkout page? (PHP)
Post by: pinochico on June 17, 2020, 18:19:57 PM
do you tryied httacess?
Title: Re: How do I know I am in checkout page? (PHP)
Post by: PRO on June 17, 2020, 18:28:57 PM


$jinput = JFactory::getApplication()->input;
$view = $jinput->get('view', '0');
  if ($view=='cart' ){
echo 'HELLO';
}


which OPC?    make sure its working right first