Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Direct Checkout by URL

189 sites Security covered
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

Activity

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

Releases

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