Jump to content

Add to Cart Button from External Website


OAVHome

Recommended Posts

I have an info-site for my website http://OAVHome.com and I use Prestashop 1.7 for my Online Retail and Sales Processing.

What I am trying to accomplish is connecting links from my infosite to the checkout button of products on my store. 

 

Can anyone assist me in completing this?

 

Maybe you find this useful https://addons.prestashop.com/en/share-buttons-comments/26537-share-cart-link-a-cart-at-newsletters-forums-etc.html

Link to comment
Share on other sites

So could you provide an example URL just to make sure I am understanding you right?

 

It should be possible, although I did not try on 1.7.

If you follow my tut here

http://nemops.com/prestashop-1-7-product-list-add-to-cart-button/#.WYTPG4iGOUk

You will see it adds a url to post to. If you get that url statically, and add &id_product=1 say, for product id 1, it should add that to the cart.

But again, I didn't try it

Could you provide an Example URL just so that I am positive that I understand what you are performing to complete this?

Link to comment
Share on other sites

  • 3 months later...

Hello,

I have the same question i'm trying to do it in my store in prestashop 1.7 but not is possible ,that i need to do is can add a product since my lead pages and redirect the client to another landing page after the product is added,where he go to can add another product and finally direct to the cart to pay

 

I was trying to do it using this source code in the order.php file

$ipa = addslashes($_REQUEST['ipa']);
if ($ipa == 40) {
Header( "HTTP/1.1 301 Moved Permanently" );
header("Location: oferta21.html");
exit;
} else if ($ipa == 132) {
Header( "HTTP/1.1 301 Moved Permanently" );
header("Location: oferta2.html");
exit;

and in prestashop 1.6 work but in prestashop 1.7 not because if we try to add a product using the link like this  http://www.yourdomain.com/cart?add=1&id_product=11&token=196284d258c7e41a3d95f6279069be1c that i put in the  buttton of my external landing,the product not is added and i can't redirect to my landing page 2

 

I was experimenting that with the controller link like this https://www.yourdomain.com/index.php?controller=cart&add&id_product=10&qty=1  if it is possible to add the product in prestashop 1.7 but I do not find how to redirect to landing page 2 and not to the cart directly

 

anybody here can help me to to this redirections

 

thanks

 

Kind regards

 

 

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