Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
CMartell (Guest)
CMartell (Guest)
Checkout :: Login
 
How can I stop this page from ever appearing. I dont' want my buyers to ever log in but it always takes me to this screen when CHECKOUT clicked.
 
Is there a quick way??
 
Ned
Ned
If you are using 3.5 clicking the "Check out" button redirects the customer to checkout.php which displays "templates/user/checkout.html".
In that page checking out by clicking the "Checkout without creating account" takes them to "order_info.php".
 
You should be following the guidelines suggesting you copy changed templates files to a new folder in "/templates/" and changing your layout to that folder name. Any template needed is looked for first in your new folder and then in "/templates/user/".
 
To modify checkout.html after <head> put
<meta http-equiv="Refresh" content="0;url=http://{site_url}/order_info.php">
which should redirect the customer to the next page.
 
As you are not displaying checkout.html edit it to make a quicker tpage load
Between the <body> and </body> tags strip out all the tags except those containing
<!---- begin and <!---- end
which the php is looking for and will create an error if removed.
HTH
 
jty (Guest)
jty (Guest)
Thank-you Ned. That is extremely helpful
I modified it a bit as the URL was a bit out. I changed it to:
 
<meta http-equiv="Refresh" content="0;url={site_url}order_info.php">
 
Much appreciated
 
CMartell (Guest)
CMartell (Guest)
Thanks!!!
 
jimpe606 (Guest)
jimpe606 (Guest)
I recommend using .htaccess. Instead of meta refresh.
 
Adding the redirect in .htaccess instead have many benefits:
 
No changes of template files. No delays, no problem with back etc.
 
Line to add in .htaccess:
 
Redirect 301 /checkout.php http://www.domain.com/order_info.php
 
Be careful while updating, so no existing cofig get impacted. Test all .htaccess settings. e.g. friendly urls, 404 page etc.
 
My file looklike this:
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /friendly_url.php [L]
</IfModule>
Redirect 301 /checkout.php http://www.domain.se/order_info.php
 
Except the domain, which I change for the example.