VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Administration & Configuration VM 1.1 => Topic started by: bsteinagel on May 14, 2010, 09:12:35 am

Title: "Customer Checkout in Greybox" option unavailable in template config.
Post by: bsteinagel on May 14, 2010, 09:12:35 am
I am trying to configure my site so that the checkout process is the same way it was under VM 1.1.3 and have tried to disable the greybox checkout popup that appears during the checkout process.  I went to Virtuemart-->Configuration-->Site-->Configuration for my template but I don't have the option "Customer checkout in greybox."  It doesn't even appear on the list.  Is there an alternative way to disable this box (ie. code modification) or does someone else know of a way I can get this option to appear in the list?  I'm using the Aluma Photography template from Shape5.

Thanks,
Brad
Title: Re: "Customer Checkout in Greybox" option unavailable in template config.
Post by: Svetlio on May 14, 2010, 12:57:39 pm
There are two 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.

Change the following line:

useGreyBoxOnCheckout=1

to

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' );
#       }
    }

Title: Re: "Customer Checkout in Greybox" option unavailable in template config.
Post by: bsteinagel on May 16, 2010, 21:29:15 pm
Thanks!  I followed your first suggestion and it worked.  I had to manually add the line "useGreyBoxOnCheckout" and set it to "0" but it worked.

Brad