| 开发者 | elvinhaci |
|---|---|
| 更新时间 | 2026年9月21日 22:20 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.1.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/cartlink_autogenerate/summer-box/ instead of a random id. Availability is checked as you type; a slug stays locked while its link is active and can be reused after expiry only when you confirm it.cartlink-generator plugin folder./wp-content/plugins/ on your server (or install the ZIP from Plugins → Add New → Upload Plugin).By default, the CartLink Generator menu is added as a top-level menu. To move it under the WooCommerce submenu, add the following code to your theme's functions.php file:
define( 'GUAVEN_CARTLINK_GENERATOR_SHOW_IN_SUBMENU', true );
Yes! To redirect customers to the Cart page after using a generated link, add this code to your theme's functions.php file:
define( 'CARTGENERATOR_REDIRECT_TO_CART_INSTEAD_OF_CHECKOUT', true );
By default, the plugin stores cart data in date-based folders using a file-based pseudo-transient system. If you prefer to use WordPress native transients, define the following constant in your theme's functions.php file:
define( 'GUAVEN_CARTLINK_GENERATOR_USE_REAL_TRANSIENTS', true );
By default, coupons are restricted for carts generated by the plugin. To enable coupon usage for these carts, define the following constant in your theme's functions.php file:
define( 'GUAVEN_CARTLINK_GENERATOR_ALLOW_COUPONS', true );
The plugin automatically deletes expired carts' data created by the plugin itself. This keeps storage lean and uncluttered.
Yes! To lock quantities for generated carts, add this code to your theme's functions.php file:
define( 'CARTGENERATOR_FORBID_QUANTITY_UPDATE', true );
Yes. Click Slug (auto) next to the expiry field and type a slug — the link becomes /cartlink_autogenerate/your-slug/. The plugin checks availability while you type. A slug is locked while its link is active; once the link has expired you can reuse the slug, but only after ticking "Reuse anyway", so a slug printed on a flyer never silently points at a different cart.
Yes. Click Customer & coupon in the builder and enter the customer's first name, last name, email and phone. When they open the link, the checkout form already contains those details. Only empty fields are filled: anything the customer already entered in their session, or a logged-in customer's saved account details, is left untouched. An internal note (e.g. "Instagram DM, 21 Sep") is only shown to you in the Recent links table and in the order notes.
Yes. Enter a coupon code in the Customer & coupon block. It is applied automatically when the link is opened. Other coupons stay blocked on generated carts unless you define GUAVEN_CARTLINK_GENERATOR_ALLOW_COUPONS.
The Status column of the Recent links table shows "Not opened yet", "Opened N times · last …" or "Order #123 · Processing" (linked to the order). The order itself gets an order note "Created from cart link: …" and the meta key _gvnclg_cartlink_uid.
The default file storage is protected by an .htaccess file, which nginx ignores. Link files contain product ids, prices and, if you use the customer block, the customer's contact details. On nginx either deny access to wp-content/uploads/cartlink_autogenerate/ in your server config, or store links as WordPress transients instead:
define( 'GUAVEN_CARTLINK_GENERATOR_USE_REAL_TRANSIENTS', true );
Yes. Links are looked up by their stored identifier, so any link you have already shared continues to work after updating.
Yes — variable products and their variations can be added to a generated cart.
/cartlink_autogenerate/summer-box/ instead of a random id, with live availability check. Active slugs are locked; a slug used by an expired link can be reused only after explicit confirmation, and revoking a link frees its slug.manage_woocommerce capability.define( X, false )).