C
C
Coraelstraze2016-07-27 08:08:24
JavaScript
Coraelstraze, 2016-07-27 08:08:24

Is it possible to make the joomla module work on bitrix?

Hello. need help. there was a request to transfer the site from joomla to bitrix.
I moved everything, left the perfect ajax popup contact form module from Joomla.
All styles and validator scripts work, but when submitting the form, the error "Request error: 200 SyntaxError: Unexpected token < in JSON at position 0"
is thrown pwebcontact&Itemid=435&lang=ru-RU&method=""
As I understand it, this address is only for joomla and it does not go where it should at all .. Are there any experts here on this?)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2016-07-27
@maxfarseer

The error speaks for itself - invalid JSON is being received. Most likely, an html response comes (for example, the layout of the index.php page) and therefore JSON.parse falls.
As you correctly pointed out, you need to figure out what you need to answer the request and do it for bitrix (that is, you need to delve into the source code of the form script). Not the fact that this will be the only mistake. You can probably drag and drop the full functionality of the form, but perhaps bitrix has a ready-made solution that will be much faster? Or take a standard form and finish it up to the state of the component that you are transferring.

N
Nikolai Kovalev, 2016-07-27
@nkmail

Take / buy an extension for Bitrix, do not suffer with the transfer, it is more expensive for yourself and even longer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question