VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: michelerighetti on October 13, 2021, 11:56:58 AM

Title: Default Layout file is not exists!
Post by: michelerighetti on October 13, 2021, 11:56:58 AM
Hello to all.
I have a problem with the purchase mechanism, I am doing an ecommerce with virtuemart version 3.8.8, on Joomla version 3.10.2. Everything works fine, but at the end, after I have confirmed the order, filled in all the fields for account and shipping, a white page appears with the inscription "Default Layout file is not exists! Please goto to template manager and create a new layout first."
the order is correctly arrived in the backend, the buyer receives the e-mail of the completed order correctly.
Anyone have any idea what I could do to fix this?

I summarize the site data : Virtuemart Version 3.8.8 Joomla Version 2.10.2 PHP version 7.3.18-1+0.
Thanks to who can give me suggestions
Title: Re: Default Layout file is not exists!
Post by: GJC Web Design on October 13, 2021, 19:00:25 PM
first try with the standard beez3 template

your template could be out of date .. perhaps missing the /cart/orderdone.php etc
Title: Re: Default Layout file is not exists!
Post by: michelerighetti on October 14, 2021, 16:48:40 PM
Thanks GJC for your quick reply. with beez3 it works. My actual template is Shaper helixultimate. What can I do to create the /cart/orderdone.php ...?
Title: Re: Default Layout file is not exists!
Post by: GJC Web Design on October 14, 2021, 19:19:03 PM
if that is the problem just copy it across into your template

templates/YOUR_TEMPLATE/html/com_virtuemart/cart/
Title: Re: Default Layout file is not exists!
Post by: michelerighetti on March 20, 2022, 18:40:24 PM
Quote from: GJC Web Design on October 14, 2021, 19:19:03 PM
if that is the problem just copy it across into your template

templates/YOUR_TEMPLATE/html/com_virtuemart/cart/
thankyou for your answer. I had a break from designing the site, I worked on other aspects. Now I always have the same problem. I did as it suggested I copied the orderdone.php file into /templates/shaper_helixultimate/html/com_virtuemart/cart but it does not work. Joomla core is updated to 3.10.6, the template is also updated to the latest version. What can I do?
I might as well pay someone to fix the problem.
Thankyou.
Title: Re: Default Layout file is not exists!
Post by: GJC Web Design on March 20, 2022, 19:12:16 PM
if it works fine with Beez then it is a template problem that needs tracking down ...
You can PM me if you want me to take a look ( paid)  .. shouldn't take long...
Title: Re: Default Layout file is not exists!
Post by: semen_123 on January 18, 2023, 20:31:21 PM
Quote from: GJC Web Design on March 20, 2022, 19:12:16 PM
if it works fine with Beez then it is a template problem that needs tracking down ...
You can PM me if you want me to take a look ( paid)  .. shouldn't take long...
Have you solved your problem? Share the solution:

Title: Re: Default Layout file is not exists!
Post by: semen_123 on January 19, 2023, 11:54:18 AM
if(VmConfig::isSiteByApp()) {


$currentTemplate = $app->getTemplate();
if ($currentTemplate !== $template)
{
if (JVM_VERSION >= 4) {
$templateObj = (object)$res;
$app->setTemplate($templateObj);
$currentTemplateObj = $app->getTemplate(true);
$currentTemplateObj->id = $templateObj->id;
}
else {
$app->setTemplate($template, $registry);
}

}
}


in file: vmtemplate.php
Title: Re: Default Layout file is not exists!
Post by: michelerighetti on January 19, 2023, 22:45:03 PM
Hi, I changed the template and it works fine. Thank you for your answers.