Store and stocked licenses
Mergen brings a store design fully compatible with WooCommerce: showcase, category pages, filters, product page, quick view, wishlist, compare, side cart and checkout. Alongside physical products you can sell digital products such as license keys, e-pins and game codes, and deliver them automatically from stock once payment is confirmed. Your customers see what they bought under My account › My orders and My account › My licenses, and open a return request in one click when needed.

Goal
- Install WooCommerce and apply the store design.
- Turn on payment methods (bank transfer, cash on delivery).
- Create a digital product and deliver it automatically from a key pool.
- Monitor key stock and handle missing keys and refunds.
- Understand the customer's order, license and return experience.
Prerequisites
- WooCommerce 8.0 or later. If you import a shop demo, WooCommerce is installed automatically.
- Mergen Core is active (the license key pool lives in this plugin).
- Distance sales agreement, preliminary information form and return terms pages. Shop demos create these pages with template texts; enter your company details and have your legal advisor review them.
- SMTP so that order emails are delivered. See Email and SMTP.
1. Set up the store
- Importing a ready-made shop demo is the fastest way: the Mergen › Demos › Shop tab has license market, e-pin, game store, electronics, boutique and bookstore demos. See Demo import.
- If you want to start without a demo, install and activate WooCommerce from Plugins › Add New Plugin and complete WooCommerce's setup steps (store address, currency, countries you sell to). Then choose Shop or Digital products & games as the site type in the setup wizard.
- Add your products on the Products › Add New screen.
The shop page has a filter column, a grid/list switch, sorting and filters that work without reloading the page:

2. Store settings
When WooCommerce is active, a Store tab appears in Mergen › Theme settings. The main groups:
| Group | Settings |
|---|---|
| General | Cart and wishlist icons in the header, Side cart panel, Open panel after adding to cart, adding to cart without reloading the page, Free shipping progress bar and threshold |
| Shop and category pages | Filter column (Left, Right, None), default view (Grid/List), number of columns, products per page, pagination (numbered, "Load more", load on scroll), category header area, subcategory chips |
| Filters | Filter without reloading, category, price range, attributes, platform, in stock only, rating |
| Product card | Card style, image ratio, second image, category name, stars, add to cart button, Quick view, Wishlist, Compare |
| Badges | Sale badge and its display (percentage, amount, text), "New", "Bestseller", "Instant delivery", "Only X left" |
| Product page | Gallery, thumbnails, zoom, full screen, sticky "Add to cart" bar, delivery and warranty boxes |
| Digital delivery and license keys | Low key alert threshold and delivery settings (below) |

Tip: If you leave the Free shipping threshold at 0, the minimum amount of the "Free shipping" method in WooCommerce › Settings › Shipping zones is used. The shipping bar isn't shown to customers whose cart contains only digital products.
3. Payment methods: bank transfer and cash on delivery
- Open the WooCommerce › Settings › Payments tab.
- Enable the Direct bank transfer (bank transfer/EFT) and Cash on delivery methods. For card payments, install the virtual POS plugin of your bank or payment provider.

WooCommerce › Settings › Payments: bank transfer and cash on delivery. Turkish interface shown. - Click the Manage link of Direct bank transfer; enter the title, the description, and the bank name, IBAN and account holder in the Account details table. These details are shown to the customer on the order confirmation page and in the email.

Direct bank transfer settings: description and account details. Turkish interface shown. - Click Save.
The customer sees the methods you enabled on the checkout page (1: bank transfer, 2: cash on delivery):

The cart page shows the products, the free shipping progress and the total:

Confirming a bank transfer order
An order placed by bank transfer/EFT arrives with the On hold status; keys and digital products are not delivered at this stage.
- Check that the payment has arrived in your bank account.
- Open the order under WooCommerce › Orders.
- Choose Processing from the Status list and click Update.
- If the order contains a product with a key pool, keys are assigned at that moment and the customer gets the "Your order has been delivered — your license keys" email. Orders containing only digital products become Completed after delivery.

Caution: Cash on delivery orders arrive directly with the Processing status. Use cash on delivery only for physical products; for digital products, the key would be delivered before payment is received.
4. Creating a digital product
-
Open Products › Add New (or Edit an existing product).
-
Enter the product name, description, price and images. For digital products, tick the Virtual box in the Product data box (the shipping step is skipped).
-
Click Digital delivery among the tabs on the left of the Product data box (1).
-
Choose the Digital product type (2):
- Standard product — a physical or regular product.
- License key (software, subscription) — such as Windows, Office, antivirus or VPN.
- E-pin / in-game currency — in-game currency and gift cards; with amount and player ID fields.
- Game (digital code) — with platform, region and system requirements.
-
Tick the Deliver from key pool box (3). When payment is received, as many keys as the quantity are assigned automatically; WooCommerce stock is kept equal to the number of available keys.
-
If you like, enter a number in the Low key alert (this product) field (4). When available keys drop to this number, you get a warning in the panel and by email. If you leave it empty, the general threshold in the Store settings applies; 0 means no alert for this product.

Product data › Digital delivery: (1) tab, (2) Digital product type, (3) Deliver from key pool, (4) Low key alert. Turkish interface shown. -
Fill in the other fields on the same tab:
- Delivery: Default (by type), Instant delivery (automatic), License key email, Manual delivery (support team), By shipping.
- Platform and Region (Global, Turkey, Europe…), Age rating (PEGI).
- Activation guide: each line is one step. If empty, the platform's default guide is shown. The customer sees it via the How to activate? link in My licenses.
- Minimum and Recommended system requirements, Product details: each line is
Label: value. - Order fields: fields the customer fills in when adding to the cart (e.g. player ID). Line format:
key | Label | type | options | required. - Product video, Badges (Bestseller, New), Extra badge labels, Release date (if it's a future date, the product is shown as "Pre-order").
-
Click Publish or Update.
Note: License key, e-pin and game products are shown on the product page with a platform/region box, the activation guide and the "Instant delivery" badge. For variable products, keys are kept per variation.
E-pin example: asking for a player ID
To get a player ID from the customer for e-pin products, add this line to Order fields:
oyuncu_id | Player ID | text | | zorunlu
The customer has to fill in this field when adding to the cart; the value appears in the order and on the admin screen. If it is entered in the wrong format, a "not in the expected format" warning appears.
5. Managing the key pool
Adding keys
There are two ways.
Quick way: In the Key pool box on the product edit screen, enter one key per line in the Quick add keys field and update the product. Duplicates are skipped and the stock is synced automatically. The top of the box shows the "Available · Reserved · Sold · Refunded" counts and a Manage keys link.
Bulk way (many keys or a CSV):
- Open WooCommerce › License keys and switch to the Add / import tab.
- Choose the product from the Product / variation list (1).
- Paste the keys into the Keys (one per line) box (2) or upload a CSV / TXT file (3). The first column is the key; if the header row has an
skuorproduct_idcolumn, each row is added to that product. The file can be up to 5 MB. - If you like, add a description such as the supplier invoice in the Note field.
- Click Add keys (4). A summary such as "Product: 50 keys added, 2 duplicates skipped, 0 invalid rows" appears at the top of the screen.

License keys › Add / import: (1) product, (2) keys, (3) CSV file, (4) Add keys. Turkish interface shown.
Example CSV file (for uploading to several products at once):
anahtar,sku
ABCD1-EFGH2-IJKL3-MNOP4,WIN11-PRO
QRST5-UVWX6-YZAB7-CDEF8,WIN11-PRO
GHIJ9-KLMN0-OPQR1-STUV2,OFFICE-2024
Note: If your product isn't in the list, turn on the Deliver from key pool option on the product edit › Digital delivery tab.
Key list
The Keys tab lists all keys. For security, only the last 4 characters are visible; click Show on the row to see the whole key.
- The tabs at the top (1): Keys, Add / import, Stock summary, Delivery settings.
- Filters (2): All statuses (Available, Reserved, Sold, Refunded), All products and a search box (full key, last 4 characters, order number or email).
- Export as CSV (3): downloads the filtered list.
- Bulk action: Delete (available only), Mark as refunded, Make available for sale again (refunded/reserved).
- The row of a sold key has Revoke (refund) or Revoke (to pool) links.

Stock summary
The Stock summary tab shows, for each product with keys, the number of available, reserved, sold and refunded keys, the WooCommerce stock and the low stock status. Red rows are products that will soon run out.

Delivery settings
The Delivery settings link takes you to the Theme settings › Store › Digital delivery and license keys group. Here you set the general low key alert threshold (0 = off). The per-product threshold can be changed on the product edit screen. No alert is given for products whose pool contains only demo keys (starting with DEMO-).

6. How does delivery work?
- The customer buys a digital product.
- When payment is confirmed (instantly for cards; for bank transfers, when you set the order to Processing), the next available keys in the pool are assigned to the order, as many as the quantity.
- The customer gets the "Your order #N has been delivered — your license keys" email; the keys also appear in the order details and under My account › My licenses. An on-site notification is sent as well.
- On the order screen, the administrator sees in the key box how many keys were delivered (e.g. "Product — 1 / 1 delivered") (1).

If the pool runs short
If there aren't enough keys in the pool, the order gets the note "Not enough keys in the pool: N keys missing. They will be delivered automatically when keys are added." and the customer sees a "Some of your keys are being prepared" notice in My licenses. As soon as you add keys, pending orders are completed automatically. If you don't want to wait, the Assign missing keys now button on the order screen assigns keys from the pool immediately, regardless of the payment status.
Security
- Keys are stored encrypted in the database; only the last 4 characters are visible in the list.
- The same key can't be added twice (differences in case and spaces count as the same).
- A key can't be given to two orders.
Important: Keys are encrypted with the security keys (salts) in
wp-config.php. Before changing the salts, define theMERGEN_KEYS_SECRETconstant and consult our support team; otherwise old keys can't be read.
7. What the customer sees
My licenses
Under My account › My licenses, the customer sees every product they bought, the platform badge, the order number and the date. The key is hidden by default; they reveal it with Show and copy it to the clipboard with Copy. The How to activate? link opens the product's activation guide.

My orders and return requests
The My account › My orders section lists orders, their statuses and totals. If the Support System is on, a Return request link (1) appears on the row of completed orders.

A customer who clicks Return request goes to a pre-filled support form with the subject "Return request: order #N" and the related order selected; they only write a description and submit it. The request reaches you on the Support tickets screen. Details: Support system › Return requests.
Processing a refund
- If you review and approve the request, open the order under WooCommerce › Orders and refund the amount with Refund (or set the status to Refunded).
- The license keys in the order are revoked automatically. Depending on your store setting, the key is marked Refunded or put back into the pool. For a partial refund, only as many keys as the refunded quantity are revoked.
- On the WooCommerce › License keys screen you can see the key's status and, if needed, put it back on sale with Make available for sale again.
Caution: For digital products, a refund means the customer may already have used the key. For software licenses, we recommend leaving the key marked Refunded (not putting it back into the pool).
Shipping settings
If you sell physical products, you define shipping costs with WooCommerce's Shipping zones:
- Open the WooCommerce › Settings › Shipping tab and click Add zone.
- Type "Turkey" as the Zone name and choose "Turkey" in the Zone regions box.
- Add Flat rate with Add shipping method and enter your shipping cost (e.g. 89.90).
- Add Free shipping to the same zone; choose "A minimum order amount" for Free shipping requires and enter the amount (e.g. 1,500).
- Save. Mergen's Free shipping progress bar calculates the "Add ₺X more for free shipping" message in the cart based on this amount.
Note: For carts containing only digital products, the shipping step and the shipping bar aren't shown; don't forget to mark the products as Virtual.
Checklist before you start selling
- Payment methods are on and the bank transfer account details are correct.
- The Distance Sales Agreement, Preliminary Information Form and Return and Exchange Terms pages are up to date with your company details; the Terms and conditions page is selected under WooCommerce › Settings › Advanced.
- Shipping zones are defined (for physical products).
- SMTP is set up; WooCommerce order emails and the license delivery email have been tested.
- For digital products, Deliver from key pool is on, there are enough keys in the pool, and the Low key alert threshold is set.
- Place a test order: order by bank transfer → set the status to Processing → see the key arrive in the email, the order details and My licenses → set the test order to Refunded and check that the key was revoked.
- Choose the Customer dashboard profile that matches your store type.
- The Support System is on (for return requests).
Product page and cart experience
On the product page, the visitor sees: a scrollable gallery with video support, the price and sale badge, the platform/region box and the "Instant delivery" badge for digital products, order fields (e.g. player ID), delivery and warranty boxes, and system requirements and activation tabs. When the main "Add to cart" button scrolls off screen, a sticky bar appears at the bottom. Add to cart works without reloading the page and, depending on your setting, opens the side cart panel. Quick view, wishlist and compare (up to 4 products) are used from the card.
Common mistakes
| Symptom | Cause | Solution |
|---|---|---|
| The key wasn't delivered | The order is On hold | Confirm the bank transfer/EFT payment and set the status to Processing. |
| "Key missing" note | The pool ran out | Add keys; pending orders are completed automatically. |
| The product isn't in the list (Add / import) | The key pool is off | Deliver from key pool on the product's Digital delivery tab. |
| The customer didn't get the email | Email sending | Set up SMTP and check the Email log. See Email and SMTP. |
| My licenses doesn't show for the customer | The panel profile is "Shop" | Apply the Digital products & games or Automatic profile in the Customer dashboard. |
| No return request link | The Support System is off | Turn on Feature Center › Support System. |
| The cart icon also appears on the blog demo | — | The cart icon appears only on sites with published products; it disappears if you move the products to draft. |
| An "outdated template" warning after a WooCommerce update | A WooCommerce template copied into the child theme | Compare the template in the child theme with the new version. See Updates and child theme. |
Related sections
- Customer panel — settings for the My orders and My licenses sections.
- Support system — return requests and support tickets.
- Email and SMTP — order and delivery emails.
- Mergen Core and your data — where the key pool is stored.