COMMON ERRORS AND ITS SOLUTIONS
Error 0:
If the WooCommerce website is running in HTTPS, make sure the APP URL in IsleBooks POS-WooCommerce module App Settings has HTTPS.
If WooCommerce is in HTTP, make the APP URL as HTTP.
Error 1:
Sometime during synchronizing you may get the following message/error
“live.EMERGENCY: File:………\vendor\automattic\woocommerce\src\WooCommerce\HttpClient\HttpClient.phpLine:375Message:Syntax error”
Solution:
In your WooCommerce “API Settings” change the “Woocommerce App URL” by adding “index.php” to it.
Example: Change the URL from
http://www.myWooCommerceStore.com to http://www.myWooCommerceStore.com/index.php
Error 2:
Sometimes in WooCommerce API bulk operations (add/edit/delete) are restricted. So it will give a error like
“Sorry, you are not allowed to batch manipulate this resource. [woocommerce_rest_cannot_batch]”
To resolve this error, follow this steps:
Install & activate Code Snippet plugin in wordpress. https://wordpress.org/plugins/code-snippets/
Go to Snippet -> Add New and add a new snippet
The snippet will have below written codes:add_filter( ‘woocommerce_rest_check_permissions’, ‘allow_bulk_operation’, 10, 4 ); function allow_bulk_operation( $permission, $context, $object_id, $type ) { return true; }
Save & Activate it.
Now it will allow the bulk operation from API.
If you want to understand it better, check this link: https://wordpress.org/support/topic/restrict-endpoint-on-woocommerce-rest-api/
Error 3: Image not syncing
Sometimes products don’t sync because of the problem in the images file name and image format.
Solution:
WooCommerce have some restrictions which can be fixed by following this:
Disable image sync by going to
API Settings > Product Sync Settings > Product fields to be synced with woocommerce while creating products
API Settings > Product Sync Settings > Product fields to be synced with woocommerce while editing products
Uncheck Image and save
They try to sync again.
OR do this:
Try replacing all product images to jpeg or png format.
Shorten the file name length as well for the images.
Error 4:
Not syncing issue.
Solution:
Follow the below steps:
Open the wordpress website .htaccess file
Add this 2 lines in the very top of the htaccess file, similar to the below screenshot:RewriteEngine on
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0After adding it, save the file and try to sync from IsleBooks POS once again.
Adding/Editing custom Order status:
In WooCommerce you can add more order statuses. But in IsleBooks POS we have mapped the default WooCommerce statuses to IsleBooks POS status.
But you can easily add or modify this mapping.
Open this file: pos/Modules/Woocommerce/Utils/WoocommerceUtil.php
Search for the function: woocommerceOrderStatusToPosSellStatus
Change the status as per your need.
Status in left side(Key) is for WooCommerce & right side(Value) is for IsleBooks POS.