How to add with a link a product to Cart with Quantity

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
crazyforester
Posts: 60
Joined: 18 Jan 2016, 10:29

How to add with a link a product to Cart with Quantity

Post by crazyforester » 05 Sep 2018, 11:05

Hi,
I don’t know if it is possible, but I would like to create links to Detail view of an article
i.e. demo site link
http://typo3.demo.aimeos.org/demo/detai ... article/0/
but “Add to basket” quantity to be changed to 5
It is possible in other system with url, i.e. ../?add-to-cart=2&quantity=5
Articles are small numbers, so links could be created manually in my page
Thank you in advance even for a small hint how it could be done.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: How to add with a link a product to Cart with Quantit

Post by aimeos » 05 Sep 2018, 20:17

You may use something like this for TYPO3:

Code: Select all

...&ai[b_action]=add&ai[b_prod][0][prodid]=15&ai[b_prod][0][quantity]=5
More details about the used parameters is available in the docs:
https://aimeos.org/docs/Developers/Html ... mes#Basket
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply