↺regreen.Free download

R2R WITHDRAWAL · JOOMLA + HIKASHOP

R2R Withdrawal documentation

Installation, configuration and daily case handling — from the customer’s declaration to stock restoration.

What R2R Withdrawal does

R2R Withdrawal handles withdrawal declarations for HikaShop orders and their administration. Customers identify an order, select the products and quantities, review their declaration and confirm submission. Each withdrawal becomes a separate case in the Joomla administrator area.

The package installs a component, a shared library, two plugins and an administrator module. It needs no Joomla or HikaShop core-file changes. It does not transfer refunds or change the HikaShop order status.

Installation and first run

  1. Back up your site and start in a test environment. See the compatibility table for the combinations already tested. PHP 8.1 or later is required.
  2. In Joomla, open System → Install → Extensions and upload the complete pkg_r2r_withdrawal-…zip package. Do not install its inner ZIP files separately.
  3. Under System → Plugins, enable System – R2R Withdrawal and Ajax – R2R Withdrawal.
  4. Set your shop name and notification email addresses in the system plugin. Separate multiple addresses with commas, semicolons or line breaks.
  5. Create a published, publicly accessible menu item of the Withdrawal declaration (wizard) type. An alias such as withdrawal gives it a permanent address.
  6. Open the component’s Help and checks page, run the checks, then submit a test withdrawal as both a guest and a registered customer.

Make the link easy to find. If HikaShop’s built-in withdrawal workflow is also enabled, check for duplicate entry points. R2R keeps its own cases; it does not share the native feature’s case list.

System plugin settings

Shop-specific settings are in the System – R2R Withdrawal plugin. Check the customer-facing result after saving.

SettingPurpose
Shop name and administrator emailsThe name used in notifications and the recipients of new-withdrawal notifications.
Customer interface coloursSeparate accent, body text, text-on-accent and link colours. Choose combinations that remain legible in every state.
Withdrawal period in daysThe withdrawal period is configurable and eligibility is handled separately from HikaShop order statuses. Check the actual delivery information and any applicable exceptions when handling a case.
Withdrawal reference formatFor example EL-{YYYY}-{NNNNNN}. {YYYY} is the four-digit year, {YY} the two-digit year and {MM} the month. The number of N characters is the minimum sequence length. Exactly one sequence marker is required. Existing references stay unchanged; a changed surrounding pattern can start a new sequence.
HikaShop buttonsShow order-card buttons in the header, the Actions menu, or both. Off hides those order-card buttons; the account menu entry remains. Check placement when using a custom HikaShop template.

Guidance for each step

The wizard text tab provides before-and-after fields for order identification, item selection, the summary and confirmation. There are two more for the success page: ten optional text positions in total.

An empty field adds no extra text. Basic HTML such as paragraphs, emphasis, lists and links is supported, with unsafe elements filtered on save. Your own content is shop-specific; the supplied Hungarian and English language files do not automatically translate it.

Email templates and notifications

There are three editable templates: customer receipt, administrator notification and status update. HTML is supported. An empty template field uses the built-in version. Joomla’s mail service must work; check the actual inbox when testing.

TemplateAvailable placeholders
All three templates{withdrawal_number}, {order_id}, {customer_name}, {items}, {submitted_at}, {shop_name}
Additional status-update placeholders{status_label}, {admin_message}, {refund_amount}, {refund_info}

Keep the braces around each placeholder. Keep the items, reference and timestamp in the receipt. Adapt custom text to your shop’s language and customer information.

Privacy and identification limits

IP address and browser identifier (User-Agent) storage can be enabled or disabled separately. Configure retention to fit your shop’s actual needs; expired technical data can be removed. Your privacy notice should describe the settings you use.

Order-identification attempts are slowed and limited to make guessing harder. Guest identification checks that the order reference and email belong together. Signed-in customers can access only their own orders. Draft data is short-lived and tied to the session; submission and administrator actions use CSRF protection.

Withdrawal data stays on your shop’s hosting. These settings belong to the extension installed in your shop; they are separate from the regreen website’s download counter.

The customer journey

  1. Identify an order. Registered customers choose from their own orders. Guests enter the order reference and the email address used for that order.
  2. Select items and quantities. Full and partial withdrawals are supported. Previously claimed quantities are taken into account; one order can have multiple declarations.
  3. Review. The customer checks the selected items. A reason is optional.
  4. Confirm. This creates the declaration, assigns a reference and starts the notification emails.
  5. Success. The customer sees the withdrawal reference and receives an email receipt with the exact submission time.

Rejected and cancelled cases do not reserve quantities against a new declaration. Verify both the submission result and the notification emails during testing.

Case handling and the dashboard

Open the component’s Withdrawals page. Each case has its items, quantities, history and refund information. Internal notes are separate from messages intended for the customer.

States include submitted, awaiting return, return received, under review, approved, refunded, rejected and cancelled. Only valid next transitions are offered. Rejection requires a reason. Decided cases can be reopened with a separate action.

The system suggests a refund amount. Review shipping costs, discounts and coupons. Make the actual payment through your own financial workflow and record it in the case.

The administrator module shows new-case counts, recent submissions and cases under review. Publish it in a suitable Joomla administrator dashboard position. The event log cannot be edited through the interface.

The list supports status, search and order-reference filters, summary cards and pagination. The case keeps the item names and prices recorded with the withdrawal and links related cases for the same order. Amounts use the order’s own currency, including in multicurrency shops.

Restoring stock in HikaShop

Returned quantities can be restored to HikaShop stock from the withdrawal case. This feature is off by default. Choose its mode and trigger status on the system plugin’s HikaShop tab.

ModeBehaviour
OffThe extension does not change stock.
AskWhen the configured status is reached, the administrator decides whether to restore stock and can edit each item’s quantity, excluding damaged units.
AutomaticWhen the configured status is reached, the quantities covered by the withdrawal that have not yet been restored are added back to stock.

The trigger can be Return received, Approved or Refunded. If you inspect returned goods first, restoring stock on approval fits that workflow.

If restoration was skipped or only partial, the Restore stock now action remains available once the case has reached the trigger status. The restored quantity is shown for each item.

The operation uses transactions and guards against duplicate restoration. Products with unlimited stock and products deleted in the meantime are not changed. Results and reasons for skipped items are logged. If you reject a case after restoring stock, use the warning to review the stock as well. With an external warehouse or ERP synchronisation, agree which system handles the stock adjustment.

Administrator permissions

Access is configurable by Joomla user group. Menu and dashboard module visibility, case management, stock restoration and log exports have separate permissions. Users with view-only access receive a read-only view.

Create a dedicated group for case handlers and grant only the actions they need. Test with a user in that group; a Super User account will not show these restrictions.

Event log and exports

The log records each event’s time, actor, change and note. Reopening a closed case and restoring stock also leave a record. Log messages appear in the administrator’s language and cannot be edited through ordinary case-management actions.

With the required permission, export the log as TXT, CSV, JSON or XML. CSV exports protect against user-entered text being interpreted as a spreadsheet formula. Exports may contain customer information, so control access to the downloaded files and their retention.

Installed parts and data

One package installs the component, system plugin, Ajax plugin, administrator module and shared library. The extension uses its own tables for withdrawals, items and log entries, respecting Joomla’s database prefix. The installer handles database schema changes during updates.

HikaShop integration goes through an adapter; Joomla and HikaShop core files are not modified. You can use the package in several shops, with each installation keeping its own settings and data. The source is available under GPL-2.0-or-later.

Try the demo

Visit demo.regreen.hu to see the system in a working Joomla and HikaShop environment. Access instructions are available on the demo site.

Use test data only. Do not enter real customer information or passwords used by your own shop in the public demo.

Updating and checking

Back up the website and database before updating. The package registers a Joomla update source, so you can check Joomla’s extension updates. You can also install the newer complete package over the existing installation. Do not uninstall first to perform an update.

Afterwards, check plugin status, the menu item, custom text, guest identification, a partial withdrawal and notification emails. See the changelog for release notes.

Troubleshooting

IssueFirst checks
The customer process will not startCheck both plugins, menu publication and access, then open Help and checks.
The order cannot be foundUse the exact order reference and the email used for the order. After too many failures, wait for the rate-limit window to expire.
No HikaShop buttonCheck placement settings and custom templates. The dedicated withdrawal menu item remains a separate entry point.
An email does not arriveTest Joomla’s mail service, check recipients and spam folders, and test again after editing a template.
A system error appearsEnable detailed debugging only in a test environment: it can expose error details on the customer page. The r2r_withdrawal.log file is in Joomla’s configured log directory. Disable detailed debugging afterwards.

Use the support form with your Joomla, PHP, HikaShop and R2R versions, reproduction steps and exact error text. Do not send passwords or real customer data.

Finding the extension useful?

The extension is free to use. If you would like to support its development, you can buy me a coffee.

Support me with a coffee!