Knowledgebase

How to disable ”Customer Checkout in a popup (GreyBox)” in VirtueMart?

The Customer Checkout in a popup (GreyBox) box seen during the checkout procedure can be disabled from the Joomla administrator area-> Components-> VirtueMart->Admin->Configuration->Site->Select the theme for your Shop->Configuration.

If the above option is not present, there are two manual approaches.

First, you can open the components/com_virtuemart/themes/YOUR_VIRTUEMART_THEME/theme.config.php file. Replace the YOUR_VIRTUEMART_THEME string with your actual VirtueMart theme name.

Enter the following line:

useGreyBoxOnCheckout=0

Alternatively, edit the administrator/components/com_virtuemart/classes/htmlTools.class.php file and put comment signs (#) in front of each line of the function loadGreybox( ) code:

function loadGreybox( ) {
        global $mosConfig_live_site, $vm_mainframe;
#       if( !defined( '_GREYBOX_LOADED' )) {

#           $vm_mainframe->addScriptDeclaration( 'var GB_ROOT_DIR = ''.$mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/';', 'top' );
#           $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/AJS.js' );
#           $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/AJS_fx.js' );
#           $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/gb_scripts.js' );
#           $vm_mainframe->addStyleSheet( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/greybox/gb_styles.css' );

#           define ( '_GREYBOX_LOADED', '1' );
#       }
    }

You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to remove recently viewed products from the homepage in VirtueMart?

You can disable the visualization of the recently viewed products from your web site's front end...

How to set maximum purchase value in VirtueMart?

The VirtueMart script allows you to set the minimum sum per a purchase. This can be done from the...

How to hide the Add to Cart button for non-registered users in VirtueMart?

In order to hide the Add to Cart button for non-registered users edit...

How to install a language pack in VirtueMart?

First you should install the chosen language pack for Joomla. You can find detailed instructions...

How to change the ”Recommend to a friend” message in VirtueMart?

The Recommend to a friend link in the products details pages can be enabled from the Joomla...

Copyright © 2013<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, HostLantern. All Rights Reserved.