M
M
Michael2017-02-20 21:16:37
1C-Bitrix
Michael, 2017-02-20 21:16:37

How to make a redirect after placing an order in Bitrix?

Hello.
How can I make a redirect so that after placing an order, the system redirects the buyer to another page?
Sale.order.ajax is used.
Thanks for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2017-02-21
@docmikhail

If you have an old sale.order.ajax template (not written in js), then add a redirect to the desired page in the confirm.php file.
If you have a new js template, then you need to see if data is being loaded from confirm.php after placing an order, if so, do the same in it with a redirect. Otherwise, you need to look at the scripts in script.js and find where the data is output with the result of placing an order and add a redirect to the page you need using location.href = url

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question