Hello, I am on VM 2.6.14 and oncheckout_show_steps does not work. Is there something I'm missing?
I entered the following code just as a test and it will not work
<?php if (VmConfig::get ('oncheckout_show_steps', 1) && $this->checkout_task === 'confirm') {
echo 'Here is step 4 so add html code with steps in divs with images that should be displayed on the end';
} else {
echo 'Here is step 1 so add html code with steps in divs with images that should be displayed on the beginning';
}
?>
but even on the confirm page it still outputs Here is step 1 so add html code with steps in divs with images that should be displayed on the beginning
the only way to prove if it works or not is to echo out your vars
(VmConfig::get ('oncheckout_show_steps', 1) && $this->checkout_task === 'confirm')
print 'Debug Line '.__LINE__.' oncheckout_show_steps <pre>'; print_r (VmConfig::get ('oncheckout_show_steps', 1)); print "</pre><br />\n";
print 'Debug Line '.__LINE__.' $this->checkout_task <pre>'; print_r ($this->checkout_task); print "</pre><br />\n";
if not what u expect work backwards
Thank you for your response!
I tried your code and it worked, and then I was stumped. I looked at the code with a fresh eye this morning and I made a really stupid mistake. For anyone that tries this code... it does not work unless the option to "Show Checkout Steps" is checked in Virtuemart Configuration. Once I checked that, it started working as necessary.
<?php if (VmConfig::get ('oncheckout_show_steps', 1) && $this->checkout_task === 'confirm') {
echo 'Here is step 4 so add html code with steps in divs with images that should be displayed on the end';
} else {
echo 'Here is step 1 so add html code with steps in divs with images that should be displayed on the beginning';
}
?>