VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: peaceandlove on November 04, 2013, 10:00:09 AM

Title: How to set confirm page after purchase?
Post by: peaceandlove on November 04, 2013, 10:00:09 AM
I want to set our website home page or we will create a new thank you page once we customer pay the payemnt, where did we set that?

Currently when we are cofirmation the payment we are directed to our site with our site index page, which we never set up? can we remove that index simple,

screen shot is attached

[attachment cleanup by admin]
Title: Re: How to set confirm page after purchase?
Post by: peaceandlove on November 08, 2013, 07:41:23 AM
Can any body help in this?
Title: Re: How to set confirm page after purchase?
Post by: GJC Web Design on November 08, 2013, 10:57:57 AM
first do yourself a favour and switch off ALL SEF while your developing the site - then you can see where you are actually being sent

from the screenshot looks like your using Paypal? but it also shows all your css missing etc..
this is the template page
templates/yourtemplate/html/com_virtuemart/cart/order_done.php if your using over rides


  the html is from the paypal plugin but there is a mistake on the current one

plugins/vmpayment/paypal/paypal.php  ~ line 241

$html = '<html><head><title>Redirection</title></head><body><div style="margin: auto; text-align: center;">';
$html .= '<form action="' . "https://" . $url . '" method="post" name="vm_paypal_form"  accept-charset="UTF-8">';
$html .= '<input type="submit"  value="' . JText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE') . '" />';
$html .= '<input type="hidden" name="charset" value="utf-8">';
foreach ($post_variables as $name => $value) {
$html .= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value) . '" />';
}
$html .= '</form>';
$html .= ' <script type="text/javascript">';
$html .= ' document.vm_paypal_form.submit();';
$html .= ' </script></body></html>';


the line $html .= '</form>';  should be

$html .= '</div></form>';

it is missing the closing div and can cause layout problems

but you need to investigate why your css isn't loaded