Author Topic: How do I know I am in checkout page? (PHP)  (Read 146 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 339
How do I know I am in checkout page? (PHP)
« 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

pinochico

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 498
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: How do I know I am in checkout page? (PHP)
« Reply #1 on: June 17, 2020, 18:19:57 pm »
do you tryied httacess?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10412
  • VirtueMart Version: 3+
Re: How do I know I am in checkout page? (PHP)
« Reply #2 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
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)