Description
Every online shop that keeps proper books knows the routine: an order comes in on the site, and someone types it again into the accounting software. Refunds get missed, a payment gateway lands in the wrong account, and the stock the site shows drifts away from what is really on the shelf until a customer buys something you no longer have.
HesabShop Connector links your WooCommerce store to HesabShop, an online accounting and inventory service for shops. Once connected, orders and refunds reach your books without retyping, and the stock your warehouse holds is written back to the site.
What it does
- Orders become invoices. New orders, order updates, status changes and refunds are sent to HesabShop, which records the invoice and its double-entry journal entry for you.
- Stock stays in step. HesabShop writes product stock to WooCommerce from your warehouse records (you choose the stock sync direction in HesabShop). Price and order-status updates are also available; they are off by default and you turn them on in HesabShop.
- See the accounting result on every order. A “HesabShop” box on the order screen shows whether the order was recorded, the journal and invoice numbers, date, amount, and the exact error if it failed, with a “send again” button. The orders list gets an “accounting entry” column.
- See HesabShop stock beside WooCommerce stock. A column in the products list and a line in each product’s Inventory tab show the quantity HesabShop holds. A product that is not linked shows “—”, never a misleading “0”.
- Settings bridge. The plugin reads your payment gateways, order statuses (including ones added by other plugins), shipping methods and costs, tax rates and settings, inventory settings and currency, and sends them to HesabShop so you pick from a list instead of typing codes. The same page shows, row by row, what HesabShop has done with each one, for example a gateway that is not yet linked to a bank account.
- A “Recorded in accounting” order status that HesabShop can set once an order’s invoice is final (off by default; WooCommerce sends no customer email for it).
- Built not to slow your shop. Store events only write one row into a local queue table. Delivery happens in the background through Action Scheduler (WP-Cron when Action Scheduler is not available), never during checkout.
- Nothing is lost when the connection drops. Failed deliveries are retried automatically with growing delays; after five attempts they are kept aside, and one click on “Resend failed jobs” queues them again. Every request carries an idempotency key, so a retry never creates a duplicate invoice.
- Secure by design. HTTPS is required. Each request is signed with HMAC-SHA256 and carries a timestamp and nonce. The API secret is never shown in full and never written to logs. The plugin never connects to the accounting database directly and never modifies WooCommerce core.
- HPOS compatible. Declared compatible with WooCommerce High-Performance Order Storage and the Cart and Checkout blocks.
Who it is for
Iranian shops that sell on WooCommerce and keep their books in HesabShop, often alongside a physical shop with the same stock. The plugin’s admin screens are in Persian and right-to-left, and dates on the order box are Jalali.
What HesabShop itself gives the shop once orders arrive (see hesabshop.com):
- Each colour/size variation is its own item with its own stock, and stock can be held in several warehouses.
- Cost of goods by FIFO or weighted average, so profit per item is visible.
- Amounts are kept in Rial and shown in Rial or Toman.
- A live demo without signing up: hesabshop.com/demo
Requirements
- WooCommerce 7.0 or later.
- A HesabShop account on a plan that includes an online-store connection. See pricing.
- A WooCommerce REST API key, which you create in WooCommerce and enter in HesabShop (HesabShop uses it to read full orders and to write stock).
حسابشاپ برای فروشگاه ووکامرسی شما
اگر سفارشهای سایت را یکییکی در حسابداری وارد میکنید، این افزونه کارتان را ساده میکند. افزونه هر سفارش را از ووکامرس به حسابشاپ میفرستد و حسابشاپ خودش فاکتور فروش و سند حسابداری را ثبت میکند.
افزونه چه کار میکند؟
- اگر وضعیت سفارشی تغییر کند یا پولی به مشتری برگردانید، افزونه این تغییرات را هم به حسابشاپ میفرستد.
- افزونه موجودی سایت را بر اساس موجودی انبار بهروز میکند. هر ترکیب رنگ و سایز یک جنس، موجودی جداگانه دارد. میتوانید چند انبار هم داشته باشید.
- ارسال قیمت و وضعیت سفارش از حسابشاپ به سایت بهطور پیشفرض غیرفعال است. اگر به این امکان نیاز دارید، میتوانید آن را در حسابشاپ فعال کنید.
- در صفحهٔ هر سفارش، کادر «حسابشاپ» وضعیت ثبت سفارش، شماره سند، شماره فاکتور، تاریخ و مبلغ را نشان میدهد. اگر ثبت سفارش در حسابشاپ ناموفق باشد، متن خطا و دکمهٔ «ارسال دوباره» را در همین کادر میبینید.
- در فهرست محصولات، ستون «موجودی حسابشاپ» کنار ستون موجودی ووکامرس قرار دارد. اگر محصولی را هنوز به حسابشاپ وصل نکرده باشید، موجودی آن در این ستون با «—» نمایش داده میشود تا با موجودی صفر اشتباه نشود.
- «پل تنظیمات» درگاههای پرداخت، وضعیتهای سفارش، روشهای ارسال و تنظیمات مالیات و موجودی را به حسابشاپ میفرستد. به این ترتیب، در حسابشاپ گزینهٔ موردنظر را از فهرست انتخاب میکنید و نیازی به وارد کردن کد ندارید.
- افزونه سفارش را در پسزمینه میفرستد تا مشتری هنگام پرداخت منتظر نماند. اگر اتصال قطع شود، سفارش در صف میماند و افزونه دوباره برای ارسال آن تلاش میکند. اگر ارسال بعد از پنج بار تلاش همچنان ناموفق بود، دکمهٔ «ارسال مجدد کارهای ناموفق» را بزنید. ارسال دوباره باعث ثبت فاکتور تکراری نمیشود.
راهاندازی در پنج قدم
- در ووکامرس به «پیکربندی پیشرفته REST API» بروید و یک کلید با دسترسی خواندن و نوشتن بسازید.
- در حسابشاپ، فروشگاهتان را با همان کلید اضافه کنید. آدرس حسابشاپ، کلید API و راز API را در صفحهٔ همان فروشگاه میبینید.
- مطمئن شوید ووکامرس فعال است. سپس افزونهٔ حسابشاپ را نصب و فعال کنید.
- به «حسابشاپ اتصال و وضعیت» بروید و آدرس حسابشاپ، کلید API و راز API را وارد کنید. اول «ذخیره تنظیمات» و بعد «تست اتصال» را بزنید.
- در «پل تنظیمات» بررسی کنید که همهٔ درگاههای پرداخت و وضعیتهای سفارش تعریف شده باشند.
هزینهٔ افزونه و حسابشاپ
افزونه رایگان است. برای استفاده از آن باید در حسابشاپ حساب داشته باشید.
طرح همیشهرایگان برای یک کاربر و یک انبار است و با آن میتوانید روزی تا ۱۰ فاکتور ثبت کنید. این طرح امکان اتصال فروشگاه را ندارد. طرحهایی را که امکان اتصال فروشگاه دارند، میتوانید ۱۵ روز رایگان و بدون کارت بانکی امتحان کنید. مشاهدهٔ طرحها و قیمتها
دموی حسابشاپ را بدون ثبتنام ببینید
External services
This plugin connects your store to HesabShop, an online accounting service run by HesabShop (https://hesabshop.com). It is required: without it the plugin does nothing. Nothing is sent until you enter a HesabShop address, API key and API secret on the plugin’s “Connection & status” page. All requests go only to the HTTPS address you enter there (normally https://app.hesabshop.com).
What is sent, and when:
- Store events (
POST /woo/event/{key}), from the background queue, usually within five minutes: the type of event and the ID of the order, product, variation or refund involved (for status changes, the old and new status; for resend requests, the time of the request). Events are sent when a product is created or updated, stock changes, an order is created or updated or changes status, a refund is created, or you press “send again” on an order. - Store settings snapshot (same endpoint): store name, admin email address, store address and phone, site URL, currency and number format, payment gateways (ID, title, enabled, cash-on-delivery), order statuses, shipping zones and methods with cost and tax status, tax rates and tax settings, inventory settings, up to 100 published coupons (code, type, amount), and the WordPress, WooCommerce and plugin versions. Sent after activation, about a minute after you save WooCommerce settings, once an hour, and when you press “send settings again”.
- Connection check (
GET /woo/ping/{key}): your API key only. Sent when you open the “Connection & status” page, press “Test connection”, and once an hour. - Settings bridge status (
GET /woo/bridge/{key}): your API key only. Sent when you open the “Settings bridge” page (cached for five minutes). - Stock lookup (
GET /woo/stock/{key}?products=…): your API key and the IDs of the products on the screen. Sent when you open the products list or edit a product (cached for two minutes).
Separately, HesabShop’s servers call your store’s WooCommerce REST API with the key you created, to read the full order and product details, and to write stock and the accounting result shown on each order (plus prices and order status, if you enable them).
HesabShop Terms of Service and Privacy Policy.
Screenshots





Installation
- In WooCommerce, go to Settings Advanced REST API and create a key with Read/Write access.
- In your HesabShop panel, add your store with that key. The store page shows the HesabShop address, API key and API secret under “WordPress plugin settings”.
- In WordPress, go to Plugins Add New, search for “HesabShop”, install and activate. WooCommerce must be active.
- Open HesabShop Connection & status, paste the address, API key and API secret, save, and press Test connection.
- Open HesabShop Settings bridge and check that every active payment gateway and order status is defined in HesabShop. The page links straight to the screen in HesabShop where you define them.
From then on, orders and stock sync on their own.
FAQ
-
Is it free?
-
The plugin is free and open source (GPL). It needs a HesabShop account to talk to. HesabShop has a permanently free plan (up to 10 invoices a day, one user, one warehouse), but that plan does not include connecting an online store. Plans that do include it start with a 15-day free trial that needs no payment details. Current plans and prices: https://hesabshop.com/pricing
-
Will it slow down my site?
-
No. When an order or product changes, the plugin only adds one row to its own queue table. Sending happens in the background every few minutes through Action Scheduler (or WP-Cron), never while a customer is checking out. The only live calls are on the plugin’s own admin screens and the products list, which show data from HesabShop and cache it for a few minutes.
-
What happens if my site cannot reach HesabShop for a while?
-
Events wait in the queue and are retried automatically with growing delays (2, 4, 8 and 16 minutes). After five failed attempts a job is set aside rather than retried forever; the “Connection & status” page shows how many, and “Resend failed jobs” puts them back in the queue. An hourly job also resends the store settings. Because every event has an idempotency key, sending again never creates a duplicate invoice.
-
Does it support HPOS (High-Performance Order Storage)?
-
Yes. The plugin declares HPOS compatibility, reads orders only through WooCommerce’s order API, and its order box and orders-list column work in both HPOS and the older posts-based storage.
-
Is the admin in Persian / right-to-left?
-
Yes. The plugin’s admin screens are written in Persian and laid out right-to-left. Dates and amounts on the order box are shown exactly as HesabShop formats them (Jalali calendar, Persian digits, and your chosen display currency unit).
-
Does the plugin change my orders or products?
-
The plugin itself does not. It reads settings and queues event IDs. Stock, the accounting result on each order, and optionally prices and order status are written by HesabShop through the WooCommerce REST API key you created, so you can revoke that access at any time from WooCommerce.
-
What is removed when I delete the plugin?
-
Its settings, log, cached data, scheduled jobs and queue table. Your orders, products and customers are not touched.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“HesabShop – Accounting & Inventory Sync for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “HesabShop – Accounting & Inventory Sync for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.3.0
- Prepared for the WordPress.org plugin directory: English readme with a full description of the external service and the data it receives.
- Declares WooCommerce as a required plugin (WordPress 6.5+ shows this on the plugins screen).
- HTTPS is now enforced on every request to HesabShop, not only on event delivery.
- All database queries on the queue table are prepared; all admin output is escaped.
- The order-status colour is added through an enqueued style instead of an inline style tag.
- Uninstall now also removes cached data and Action Scheduler jobs.
- Tested with WordPress 7.1 and WooCommerce 11.2. Requires WordPress 6.2 or later.
2.2.1
- Fixed a fatal error on activation for stores that have tax classes.
- A failure while reading site settings no longer blocks activation; it is retried a minute later.
2.2.0
- New “Recorded in accounting” order status, set by HesabShop when an order’s invoice is final. WooCommerce sends no customer email for it.
- Accounting status box on every order: sent or not, success or failure, journal number, invoice number, date, note, error text, and a send-again button.
- “Accounting entry” column in the orders list.
- HesabShop stock in each product’s Inventory tab and in the products list; an unlinked product shows “—” rather than “0”.
2.1.0
- “Settings bridge” page: what the site has, beside what HesabShop has done with it.
- Automatic reading of payment gateways, order statuses, shipping methods and costs, tax rates and settings, inventory and currency.
- Declared compatibility with HPOS and the Cart and Checkout blocks.
- Scheduling on Action Scheduler, with WP-Cron as a fallback.
- Settings snapshot sent after a short delay, so several saves send one snapshot.
2.0.0
- Rewritten with a durable queue, strict request signing, health checks and an hourly job.
1.0.0
- First release.
