Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Direct Checkout by URL

186 sites Security covered Drupal 8–11
View on drupal.org

This module allows you to create links that automatically add specific products, with optional quantities, to a user's cart and then redirect them to the checkout page. It also supports redirecting to other pages by using Drupal's standard destination parameter.

Makes it possible to share a link to redirect a user directly to the checkout page, with given items in the cart.

We allow two different variations of request. One is to pass a comma
separated list of SKUs in the products parameter. The other one is the
pass an array of products in the query parameters, in which case one
can specify the quantity as well.

An example on the first case:
mysite.com/direct-checkout-by-url?products=1234,5678

That would end up adding the products with sku 1234 and 5678 to the cart, both with a quantity of 1.

An example of the second case:
mysite.com/direct-checkout-by-url?products[0][quantity]=2&products[0][sku]=1234
That would end up adding the product with sku 1234 to the cart with a quantity of 2.

Redirecting to other places than the checkout page

Even though the name would indicate that it exclusively redirects users to the checkout page, you can also redirect to other places using Drupal's built in destination query parameter.

One such example could be to redirect to the cart instead of the checkout page. Given a product with a SKU 123 you would then use this link:

mysite.com/direct-checkout-by-url?products=123&destination=cart

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.5 Stable 8–11 Jun 29, 2025