PrestaShop Forums: Adding products to cart via URL - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Adding products to cart via URL


Adding products to cart via URL

#1 Browser

    PrestaShop Newbie

  • 29 Jul 2010
  • Members
  • Pip
  • 0 posts

Posted 29 July 2010 - 07:00 AM

Is there is a way so, if one of my customers, is browsing through another part of my site. e.g. a wordpress blog, they can click a link, which would automatically add a product to cart, and forward them to the products page or the checkout.

#2 rocky

    PrestaShop Superstar

  • 16 Oct 2008
  • US Moderators
  • 9981 posts
  • Location:Australia

Posted 31 July 2010 - 03:50 AM

You could try adding a link like the following:


http://www.yoursite.com/cart.php?id_product=1&qty=1


Change the id_product parameter to the id of the product you want added and the qty parameter to the quantity of product you want added.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.

Guides Performance Guide | Installation Guide | Development Guide

Modules AJAX Sliding Categories | AJAX Dropdown Categories | Carousel | Image Gallery | Sliding Menu

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users