News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How do I know I am in checkout page? (PHP)

Started by EvanGR, June 17, 2020, 12:35:56 PM

Previous topic - Next topic

EvanGR

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

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

PRO



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


which OPC?    make sure its working right first