WebSite X5Help Center

 
Caner Kemalbay
Caner Kemalbay
User

Why 'custom php code' does not work in the system ?  ru

Автор: Caner Kemalbay
Просмотрено 157, Подписчики 1, Размещенный 0  

Hello, 

I want to add custom php code, but it works as "a comment" in the system. Why the system does not allow me to add 'custom php code' ?  

For payment, i add custom code to make credict card payment. But there is illogicality between the stages. Before customer go to bank payment page, the message received in the page as "your order has been received and we will arrange the shippment  as soon as possible." But the problem is, the customer has not finished the payment yet. So how can i change the steps in shopping cart  ? I need to change the page steps. 

Waiting your reply, 

Thanks & Best Regards

Caner 

Размещено
7 Ответы
Aleksej H.
Aleksej H.
Moderator

Hello. I sent a notice of your question to the developers. Wait for a response from them here in the comments.

Читать больше
Размещено От Aleksej H.
Incomedia
Stefano G.
Incomedia

Hi Caner

The steps in the checkout process cannot be changed, but the message you're seeing can be customized in order to better explaining the current step of the process to your user.

Just search for whatever string is by default inserted in your website as explained in my screenshot to customize that:

You can find this in Step 1.

About the PHP code instead, it should be displayed correctly. Just keep in mind that it will not work in the preview since the Preview does not support PHP code. It will be displayed correctly once online

I hope I was helpful

Stefano

GOOGLE TRANSLATE ---

Привет канер

Шаги в процессе оформления заказа не могут быть изменены, но сообщение, которое вы видите, может быть настроено, чтобы лучше объяснить текущему этапу процесса для вашего пользователя.

Просто найдите строку, которая по умолчанию вставлена на ваш сайт, как описано на моем скриншоте, чтобы настроить это:

Вы можете найти это в Шаге 1.

О коде PHP вместо этого, он должен отображаться правильно. Просто имейте в виду, что он не будет работать в предварительном просмотре, так как предварительный просмотр не поддерживает код PHP. Будет отображаться правильно один раз онлайн

Я надеюсь, что я был полезным

Стефано

Читать больше
Размещено От Stefano G.
Caner Kemalbay
Caner Kemalbay
User
Автор

Hi Stefano, 

But to run my html code for bank payment, i need  to use 'custom php code' . Now the system will show the custom php code as "message" . So it is not working correctly. Please help me about this. 

Читать больше
Размещено От Caner Kemalbay
Caner Kemalbay
Caner Kemalbay
User
Автор

Hi Stefano, 

I mean this message box we will see. When i add script in index.php, it works like this. I don't want to see the message box. Please help me about this. 

Читать больше
Размещено От Caner Kemalbay
Incomedia
Stefano G.
Incomedia

Hi Caner

Have you tested this online somewhere? As I specified before, the PHP code will not work in preview, since it does not support it. This does not mean that your payment method won't work. It will work alright online if your server supports PHP.

In order to test this custom order code with PHP, export your project online and test it directly there. You can then verify if everything works just correctly

Please try this out and keep me posted on this

Thank you

Stefano

Читать больше
Размещено От Stefano G.
Caner Kemalbay
Caner Kemalbay
User
Автор

Hi Stefano, 

Yes i tested it online. I found the solution by myself. But if we can use our custom php code in the system, it will be much more better.  

Читать больше
Размещено От Caner Kemalbay
Incomedia
Stefano G.
Incomedia

Hi Caner

Unfortunately no. The software's internal preview does not support PHP and for this reason, it could never work.

You might consider using some local Web Server application such as XAMPP and then export your project locally instead of online.

This way, you could test the PHP code on your project without in fact uploading the project anywhere

Let me know if this could be helpful to you

Thank you

Stefano

Читать больше
Размещено От Stefano G.