Jump to content

use virtual url to call an API on Prestashop


eucaly

Recommended Posts

Hello,

 

I come to you because I have an important problem for create my shop.

I want to integrate my API on prestashop in iframe. It's very important to use this iframe to interact with this API. I need to interact with the contents of my iframe to using javascript, javascript is in my page. This page is physically in my prestashop there is php, javascript and html code for the moment. I would use prestashop page when this iframe interaction will be ok.

 

On the server side, I'm busy doing:

 

ProxyPass /test/api http://xx.xxx.com/xxxxx/

ProxyPassReverse /test/api http://xx.xxx.com/xxxxx/

 

So when I call monpresta.php/test/api/test.php&cc=eee my server calls the address: http://xx.xxx.com/xxxxx/test.php&cc=eee

 

But this address /test/api does not really exist in prestashop, it is a vrituel repertory and therefore returns me to the page "Page not found" and therefore it do not load the iframe's content.

 

I really needs this API in my shop and I can not call it.

 

Thank you to those who take the time to help me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...