VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: fabioweb on October 17, 2016, 11:40:50 AM

Title: Edit payment layout virtuemart
Post by: fabioweb on October 17, 2016, 11:40:50 AM
Hello i get some problem to render correctly this page: http://seratadigala.tioitalia.it/it/?option=com_virtuemart&view=cart&task=editpayment
the problem is that i have main content here
<div id="main">Main Content</div>
and payment selection is rendered out..
<div id="tabs"></div>

How can i place it inside div main?

regards
Title: Re: Edit payment layout virtuemart
Post by: Ghost on October 17, 2016, 11:55:19 AM
Fix your HTML errors.
Title: Re: Edit payment layout virtuemart
Post by: GJC Web Design on October 17, 2016, 12:21:21 PM
missing closing div somewhere perhaps?
Title: Re: Edit payment layout virtuemart
Post by: fabioweb on October 17, 2016, 12:29:29 PM
i'm looking..
Layout is rendered through <jdoc:include type="component" /> right?

If yes it's inside div main

Title: Re: Edit payment layout virtuemart
Post by: Ghost on October 17, 2016, 13:03:11 PM
First remove the div tags before body tag. Then check for more errors https://validator.w3.org/nu/.
Title: Re: Edit payment layout virtuemart
Post by: fabioweb on October 17, 2016, 14:26:05 PM
Okay,
Fatal Error: Cannot recover after last error. Any further errors will be ignored...

Title: Re: Edit payment layout virtuemart
Post by: Ghost on October 17, 2016, 14:55:51 PM
That is because you have a div tag before body tag.

</head>
<div style="clear:both;"></div>
<body class="com_virtuemart view-cart no-layout task-editpayment">
<!-- Body -->

Remove it and then you can at least see other errors.
Title: Re: Edit payment layout virtuemart
Post by: fabioweb on October 17, 2016, 16:08:51 PM
Checking...
Otherwise can i set a redirect 301?
So this page will never be displayed in case of error. It has a different format, no product summary and should be confusing..

What do you think?

Thank you :)

Title: Re: Edit payment layout virtuemart
Post by: GJC Web Design on October 17, 2016, 18:52:49 PM
if u only have one payment and set auto select and opc u never see this anyway