Jump to content

Integration in WordPress


Recommended Posts

Hello!
Does anybody have an idea how to integrate a "shopwindow" - in Wordpress. I want to show a product (with description and Add to Basket button) in a Wordpress article.
My ideas are:
Writing a WP plugin and calling the presta webservice (high effort)
Loading it with an iframe (How can I do that without seeing the whole page?)

thanks in advance,
ele

  • Like 1
Link to comment
Share on other sites

a buy button that uses the product url?

That is exactly my problem... how can I add a button like that, that is automatically adding a product to the basked?
I tried to fake the POST to the cart.php but its obviously sending a token to make sure nobody fakes a request there...
maybe you have an easier solution - and I'm thinking too much in programmers way :-/
-ele
Link to comment
Share on other sites

Ok I solved my problem as followed:

Adding a line in the header.tpl:

{if isset($smarty.get.minimalview)} <link href="{$base_dir}themes/prestashop/css/minimal.css" rel="stylesheet" type="text/css"/> {/if}



So I can call the page with ?minimalview=true and it shows the whole site without the crap around.
Then I added in WP an iframe with the pages as src.

The result is that I can add products to the basked from WP without changing the presta core or something in WP.
Now I'm putting it in a cool plugin so that it can be added to articles like that: [presta product-id=22]

Thanks for your ideas anyway ChrisLNZ!

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...