sukhvir1313/directproductadd
Composer 安装命令:
composer require sukhvir1313/directproductadd
包简介
Share link http://{yourdomain}/dpa/add/tocart/sku/{product_sku}, http://{yourdomain}/dpa/add/tocart/sku/{product_sku}/coupon/{coupon_code}, http://{yourdomain}/dpa/add/tocart/sku/{product_sku}-{quantity}, http://{yourdomain}/dpa/add/tocart/sku/{product_sku_1},{product_sku_2}, http://{yourdomain}/dpa
README 文档
README
Imagine simplifying the shopping experience for your customers by letting them add products to their cart with just one click. Sounds amazing, right? With the Direct Product Add extension, you can do exactly that! This powerful tool lets you share unique links that allow customers to instantly add products to their cart and redirect them to the cart or checkout page—no extra steps, no hassle.
Simply share these links through email, social media, or blogs, and watch your conversion rates soar. When users click the link, the product is added to their cart automatically, and they’re taken straight to where they need to be. You can even customize whether they land on the cart or checkout page from your admin settings. This streamlined shopping process not only enhances the user experience but also helps drive more sales for your store.
Get started today by downloading Direct Product Add from the Adobe Commerce Marketplace!
How It Works: Creating URLs
The Direct Product Add extension supports a variety of URL formats, making it flexible and easy to use. Here are some examples:
-
Add a Single Product by SKU
http://{yourdomain}/dpa/add/tocart/sku/{product_sku} -
Add a Product with a Specific Quantity
http://{yourdomain}/dpa/add/tocart/sku/{product_sku}-{quantity}If the SKU itself contains hyphens, append the quantity as an additional
-numbersegment (for example24-MB01-2). The module checks whether the complete SKU exists before interpreting the trailing number as the quantity. -
Add Multiple Products with Quantities
http://{yourdomain}/dpa/add/tocart/sku/{product_sku_1}-{quantity_1},{product_sku_2}-{quantity_2} -
Add Multiple Products by SKU
http://{yourdomain}/dpa/add/tocart/sku/{product_sku_1},{product_sku_2} -
Add Products with a Coupon Code
http://{yourdomain}/dpa/add/tocart/sku/{product_sku}/coupon/{coupon_code} -
Add a Single Product by Product ID
http://{yourdomain}/dpa/add/tocart/id/{product_id} -
Add a Product by ID with Quantity
http://{yourdomain}/dpa/add/tocart/id/{product_id}-{quantity}Example:
http://{yourdomain}/dpa/add/tocart/id/123-2 -
Add Multiple Products by ID
http://{yourdomain}/dpa/add/tocart/id/{product_id_1},{product_id_2}Example:
http://{yourdomain}/dpa/add/tocart/id/123,223 -
Add Multiple Products by ID with Quantities
http://{yourdomain}/dpa/add/tocart/id/{product_id_1}-{quantity_1},{product_id_2}-{quantity_2}Example:
http://{yourdomain}/dpa/add/tocart/id/123-3,223-3 -
Clear the Cart Before Adding New Items
If you want to empty the cart before adding new items, include theemptyparameter:http://{yourdomain}/dpa/add/tocart/sku/{product_sku}/empty/1
Why Use Direct Product Add?
Here are some key benefits of the Direct Product Add extension:
- Instant Cart Addition: Customers can add products to their cart and be redirected to the cart or checkout page with a single click.
- Time-Saving for Shoppers: Reduce the steps customers need to take to complete their purchase, resulting in faster checkouts.
- Coupon Integration: Apply coupon codes directly through the link, making discounts even easier to redeem.
- Custom Redirection: Decide where the customer lands—cart or checkout—directly from the admin panel.
Tips for Creating URLs
To ensure the best experience for your users, follow these tips when creating URLs:
- Always use simple product SKUs/IDs. If you use configurable product SKUs/IDs, customers will be redirected to the product page instead of the cart.
- Use product SKUs/IDs from the correct store view. If the SKU or ID doesn’t match the store, users will be redirected to the homepage.
- Respect product cart rules. If the product has a minimum order quantity, customizable options, or is out of stock, the customer will be redirected to the product page so they can adjust the quantity or selections before continuing.
See It in Action
Curious to see how it works? Check out our detailed demo video on YouTube:
Watch the Demo
Live Demo Link
Experience the extension yourself with this demo link. It will directly add a product with sku 24-MB01 to the cart and redirect you to the checkout page:
Try It Now
sukhvir1313/directproductadd 适用场景与选型建议
sukhvir1313/directproductadd 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.49k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2021 年 11 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sukhvir1313/directproductadd 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sukhvir1313/directproductadd 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 10.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2021-11-21