VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: mohtashimj on May 20, 2020, 22:10:49 PM

Title: Need Custom thank you page after successful order
Post by: mohtashimj on May 20, 2020, 22:10:49 PM
Hello All,

I need to know how can I redirect on custom thank you page I created after successful orders placed on virtuemart. Right now the url is having product id and hence it is not creating SE404SEF url for that success page.
Right now I am getting Thank you page like below

https://www.domain.com/index.php?option=com_virtuemart&view=opc&controller=opc&task=checkout&nosef=1&virtuemart_product_id=xxxx&lang=en&lang=en

where xxxx is product id and I need system will redirect on below URL.

https://www.domain.com/cart/thank-you

which I have already created.

Please help me on this asap.

I am using Joomla version  3.9.5 and Virtuemart version  3.4.2
Title: Re: Need Custom thank you page after successful order
Post by: pinochico on May 20, 2020, 22:32:25 PM
What are you doing, if you have in orders several different products, what will be the URL?
Title: Re: Need Custom thank you page after successful order
Post by: mohtashimj on May 20, 2020, 22:45:26 PM
If we have several different products in one order then the url is generating like below.

index.php?option=com_virtuemart&view=opc&controller=opc&task=checkout&nosef=1&lang=en&lang=en

virtuemart_product_id=xxxx is not adding in URL.
Title: Re: Need Custom thank you page after successful order
Post by: pinochico on May 20, 2020, 23:40:27 PM
we use opc from rupostel and custom thanks page:

www.kolo-park.cz

try add to cart something and finish order.

But we changed only design inside order-done.php

I think, you can setup inside opc - Redirect to article and article + URL can create in hidden menu
1. cart (basic menu item)
2. thank-you (submenu item)