| 开发者 | ssiddiqi4 |
|---|---|
| 更新时间 | 2026年10月18日 20:43 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[sidccofo_downloads]). Access starts when the order is paid (or when it is marked Completed), pauses when it is cancelled or refunded, and past buyers get files you add later. On the order screen, change downloads left and expiry, revoke or restore access, give access to another product's files, see the download history and email the links again. Store → Download log lists every order with downloads.[sidccofo_event_list], [sidccofo_event_calendar], [sidccofo_event_tickets event_id="123"]…). Attendees list with CSV export.[sidccofo_product_grid source="on_sale" limit="8"].
Pages stay cacheable: assets load only where a Unit is used, the cart badge fills in after load, and Cart/Checkout pages are marked no-cache automatically.
Themes can override any template by copying it from templates/ into yourtheme/sidcraft-commerce/.
Edit the product, tick "Downloadable" under Digital product in the Product data box, add your files and save. Tick "Virtual" too if there is nothing to ship. Options are under Store → Settings → Downloads.
On the order-received page and in the order emails once the order is paid, and on the My downloads page (created on activation, with the [sidccofo_downloads] shortcode) where logged-in customers see the files from all their orders.
Files uploaded from the product screen are stored in wp-content/uploads/sidccofo-downloads/, closed to direct visits on Apache and LiteSpeed. On nginx, add the rule shown under Store → Settings → Downloads. Customers only get files through their own private links, after the order, limits and expiry are checked.
No. Sidcraft Commerce needs only Sidcraft Page Builder. Products, orders, coupons and gift cards are stored in your own WordPress database.
PayPal (with Pay in 4 and Venmo), Stripe (cards, Apple Pay, Google Pay, Klarna, Afterpay / Clearpay, Affirm), Razorpay, PayU India and Mercado Pago. Turn on the ones you want under Store → Settings → Payments and paste the API keys from your provider account.
No. Only your payment provider's normal fees apply.
No. Customers pay on the provider's own secure page or buttons, so card details never reach your server.
Yes. Use your provider's test or sandbox keys (PayPal sandbox, Stripe test keys, PayU test mode and so on), place a test order, then switch to live keys.
Tick "This product is a gift card" on a product and set preset amounts, a custom amount range, or both. Buyers enter a recipient, a message and an optional send date. The recipient gets the code by email once the order is paid, or on the chosen date. Codes can be used in the cart or at checkout, and any unused balance stays on the card. You can also issue cards by hand under Store → Gift cards. Cards never expire unless you set an expiry under Store → Settings → Payments.
Open the order, choose the carrier and enter the tracking number in the Shipment tracking box. Links are built automatically for major carriers, or you can enter any carrier name with a custom link. The customer gets a "Your order has shipped" email with the tracking link.
Yes. Extend \SidcraftCommerce\Payments\Gateway and register it with the sidcraft_commerce_gateways filter. See the "Developers: custom payment gateways" section above and docs/example-gateway.php.
Click Store → Add New Product. The product opens in Sidcraft Page Builder with the Product data panel open: enter the price (and stock, SKU, image and so on), design the page with any Units, then click Publish. Add the Add to Cart and Product Price Units where you want them; if your layout has no Add to Cart Unit, the standard buy box is added above it. To use the WordPress editor instead, turn off "Design products with Sidcraft Page Builder" under Store → Settings.
On a product, under Product data → Item options (or in the Product data panel in Sidcraft Page Builder), type one group per line, for example Size*: Small | Medium +2 | Large +4 or Extras [checkbox]: Cheese +1 | Bacon +2. * makes a group required; [radio], [checkbox] and [text] change how it is shown; +2 adds 2 to the price. Customers choose on the product page, and product grids show "Choose options".
Yes. See the "Developers: add-ons" section above, docs/ADDONS.md and the restaurant example in docs/example-addon.php.
Yes. Style the Commerce Units in Sidcraft Page Builder, or copy any template from the plugin's templates/ folder into yourtheme/sidcraft-commerce/ and edit it there.
Yes. Shop and product pages stay cacheable, the cart badge fills in after the page loads, and Cart and Checkout pages are marked no-cache automatically.
The order reserves stock as it is created, and the reservation only succeeds while the stored quantity is still at least the amount being bought. The other buyer is told there is not enough stock. A pending order that is still unpaid after 24 hours is cancelled and the units go back. Cancelled and Refunded do the same for the units that order still holds.
Stripe charge.refunded and PayPal PAYMENT.CAPTURE.REFUNDED record the amount once. If that amount covers the order, the order is marked Refunded and the remaining stock, coupon use and gift-card balance are returned. A smaller amount stays a partial refund and returns stock only for quantities named on the order screen (Refund box) or in the provider payload. Stripe charge.dispute.created / charge.dispute.closed and PayPal customer-dispute events set the order to Disputed. Stock stays reserved. A dispute the buyer wins marks the order Refunded. A dispute the store wins returns the order to its previous status.
Yes. Checkout has “Create an account with this email”. WordPress emails a link to set the password. If that email already has an account, the buyer is asked to log in. Logging in or registering later with the same email attaches guest orders placed on version 1.0.9 or newer.
Open Store → Export catalog and download the JSON file. It contains the product title, description, categories, regular and sale price, SKU, stock and item options. It does not contain the Sidcraft Page Builder layout. Tools → Export also includes the product post type.
BHD, JOD, KWD, OMR and TND are sent to payment providers in thousandths and displayed with 3 decimals. Zero-decimal currencies (JPY, KRW, VND and the rest of that set) use no decimals. Other currencies use the decimal setting under Store → Settings.
Settings, sessions and temporary data are removed. Products, orders, coupons and gift cards are kept, unless you add define( 'SIDCRAFT_COMMERCE_REMOVE_ALL_DATA', true ); to wp-config.php before deleting the plugin.
sidcraft_commerce_checkout_after_fields action and sidcraft_commerce_settings_tabs filter.[sidccofo_downloads]).charge.dispute.created and charge.dispute.closed, and PayPal customer-dispute events, keep stock reserved while a dispute is open. A lost dispute refunds the order. A won dispute restores the previous status.sidcraft_commerce_editor_styles filter so add-on Units are styled in the Sidcraft Page Builder canvas, and add-on Units can use any glyph or emoji as their builder icon.sidcraft_commerce_product_options filter, Cart::add_with_options() and an options parameter on the cart/add REST route.Post_Types::register_order_status(): label, position, colour, whether it counts as paid, and an optional customer email. Stock, sales, gift cards and reviews now follow each status's "paid" setting instead of a fixed list. New sidcraft_commerce_order_status_definitions filter; the older sidcraft_commerce_order_statuses filter still works.select with choices) or text areas, and their values now show on the order-received page and in emails as well as the admin.