Description

With the parameterized product URLs we have the possibility to configure a URL in such a way that a product lands directly in the shopping cart when this URL is called up. The URL can also be given additional parameters to add premium components or coupon codes directly to the shopping cart.

The number of products to be passed is described here in the field definition as Qty = Quantity.

Not all parameters are available for multiple products, described as Qty > 1.

Several Products are divided by the pipe symbol |.

Field definition

Name

Description

Qty = 1

Qty > 1

product

REQUIRED

STRING 

The URL of the product page. For multiple products divided by pipe symbol |.

Pay attention to the correct URL ending, e.g. .html or /.

(tick)

(tick)

couponcode

STRING

The couponcode from the sales rule.

(tick)

(tick)

customer_number

INTEGER

The customer number of the customer with which the hash was generated.

(tick)

(tick)

token

STRING

The token generated before with the customer number.

(tick)

(tick)

redirect

STRING  

The passed redirect urls need to be set in magento backend. A validation is active against the known urls.

(tick)

(tick)

plan_id

INTEGER 

The id of the plan.

(tick)

(tick)

abo_calendar_option

INTEGER

The id of the calendar option.

(tick)

(error)

freemagazines

INTEGER

The id of the freemagazines option.

(tick)

(error)

promotion

INTEGER

The id of the promotion option.

(tick)

(error)

paidmagazines

INTEGER

The id of the paidmagazines option.

(tick)

(error)

paidmagazines_link_id

INTEGER

The id of the paidmagazines_link_id option.

(tick)

(error)

Where to find the needed ID’s?

You can find the corresponding IDs in the backend in the product view below the item "Related Products, Up-Sells, Cross-Sells, Promotions, Paid Magazines and Free Magazines". Here you first have to select the corresponding products in the various categories, then you will also see its ID.


Request

Request syntax

POST /abo/cart/add?
Host: shop-url

Parameters seperated by &
CODE

Parameter examples

Name

Example

product

REQUIRED

Qty =1: product=ein-buch

Qty > 1: product=buch2&coupon=123|product=buch2&coupon=123

couponcode

&couponcode=Get50

customer_number

&customer_number=123456

token

&token=abc123

redirect

&redirect=https://google.de

plan_id

&plan_id=3

abo_calendar_option

abo_calendar_option=80618

freemagazines

&freemagazines=1750

promotion

&promotion=1278

paidmagazines

&paidmagazines=1751

paidmagazines_link_id

&paidmagazines_link_id=2635