Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Hiboutik plugin for Woocommerce

This repository contains the open source plugin that allows you to synchronize Hiboutik POS software and WooCommerce

Requirements

  • PHP 5.3.0 or newer
  • PHP cURL extension

Installation

Download Zip archive

On your Woocommerce admin interface : Plugins > Add new > Upload plugin

Then follow the guide :

[FR] http://www.logiciel-caisse-gratuit.com/synchronisation-woocommerce-hiboutik/

[EN] http://www.pos-software-free.com/sync-woocommerce-hiboutik/

Tips

How to sync all your warehouses

In https://github.com/hiboutik/woocommerce-hiboutik/blob/master/hiboutik_page_sync.php, remplace :

  $stock_available = $hiboutik->get("/stock_available/warehouse_id/{$config['HIBOUTIK_STORE_ID']}");

with this :

  $stock_available = $hiboutik->get('/stock_available/all_wh/');

In https://github.com/hiboutik/woocommerce-hiboutik/blob/master/woocommerce-hiboutik.php, remplace :

        foreach ($stocks_dispo as $stock) {
          if ($stock['warehouse_id'] == $config['HIBOUTIK_STORE_ID']) {
            $quantity = $stock['stock_available'];
            break;
          }
        }

with this :

              $quantity = 0;
          foreach ($stocks_dispo as $stock) {
              $quantity = $quantity + $stock['stock_available'];
          }

How to close sale after sync

In https://github.com/hiboutik/woocommerce-hiboutik/blob/master/woocommerce-hiboutik.php, remplace :

      // Unique sale id

with this :

      //Close sale
      $hibou_close_sale = $hiboutik->post('/sales/close/', [
      'sale_id'         => $hibou_sale_id
      ]);

      // Unique sale id

How to set the payment method

In https://github.com/hiboutik/woocommerce-hiboutik/blob/master/woocommerce-hiboutik.php, remplace :

      // Unique sale id

with this :

      //Set payment method
      $hibou_set_payment = $hiboutik->put("/sale/$hibou_sale_id/", [
      'sale_attribute'  => 'payment',
      'new_value'       => 'XXX'
      ]);

      // Unique sale id

Credits

Many have contributed to this plugin effort, from direct contributions of code, to contributions of projects.

Contributors :

Hiboutik would like to extend its appreciation to Murelh Ntyandi which performed the initial development in 2017.

About

Synchronize Hiboutik POS software and WooCommerce

Resources

License

Packages

No packages published

Languages