StockUnlocks
Forum Replies Created
-
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Data Import errorFind the wp-config.php file in the root directory were WordPress is installed. Open it and find this line:
/* That’s all, stop editing! Happy blogging. */
Directly above this line, please add the following (if this isn’t there already):
define( ‘WP_DEBUG’, true );
# Allows you to write to /wp-content/debug.log using PHP’s built in error_log() function
define( ‘WP_DEBUG_LOG’, true );* Save and close the wp-config.php file.
* Go to your website and attempt to import one or two services that are giving you the problem.
* Go back to your hosting environment and locate the debug.log file. It should be located in the /wp-content/debug.log directory.
* Send me a copy of it or open it and copy/paste a good portion of the last section into and email and send it to me [support at stockunlocks dot com].After you have sent me the file, change these values to “false” to disable:
define( ‘WP_DEBUG’, false );
define( ‘WP_DEBUG_LOG’, false );Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Data Import errorHere’s what I found regarding the 503 error:
The 503 Service Unavailable error is a server-side error, meaning the problem is usually with the web site’s server. … Even though the 503 Service Unavailable error means that there’s an error on another computer, the issue is probably only temporary.
Basically, that means the problem originates with the Provider’s server, not yours (or the plugin). However, the fact that it’s happening with so many Providers concerns me.
Please try this:
Deactivate and then Activate the StockUnlocks plugin via the Admin Dashboard:
Plugins > Installed Plugins > StockUnlocks: Deactivate, then Activate
Try importing again to see what happens.
If that doesn’t work, then we will need to enable error logging.
Do you have access to your hosting environment? You need to be able to access the wp-config.php file, found in the root directory were WordPress is installed.
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Data Import errorJust a few things first:
* I’m assuming you’re using the latest version of the plugin, correct? Please let me know the version you have installed.
* Did this problem all of a sudden appear? Did it ever work before, using a different Provider?
* Please describe exactly what you’re trying to accomplish, thanks.
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Variable products (Q)That may be true, if your system is stand alone, not linked to an external API Provider.
Remember these ‘unlocking products’ appearing on your website were imported into your system directly from a Provider/Supplier’s DHRU GSM website. When that is done, there is a direct API link to that one product on your website and that one service that was just imported from your Provider.
How do you link a single product (with variables) appearing on your website to the multiple services offered by your Provider? There’s a reason why they have multiple products. They are charged according to the service.
Clean, semi-premiumm, premium, etc. have to be individual products if you are linking back to an API Provider. A one-to-one relationship is necessary as described above.
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Default category – Any“Remote Services” category is required, otherwise the plugin won’t know which products to work on. These are products that receive codes “remotely”. The StockUnlocks plugin creates this category when first activated.
However, you can designate additional product categories as you wish – just as long as one of them is “Remote Services”.
Your website might offer non-unlocking products. In this case, Remote Services won’t be used as a category and the StockUnlocks plugin will ignore them.
Remote Services is hard coded and is integrated throughout the plugin.
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Supported SuppliersSide note: In all honesty, I left UnlockBase in the list for price comparison only.
I thought about removing them when I found out that their API wasn’t DHRU Fusion compatible. However, their prices were competitive and I just decided to leave them in the list.
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Supported Suppliers… a few adjusted details:
* Sign up for an account with the Provider
* Request API access
* In WordPress, create a new Provider entry under “StockUnlocks > Providers”
* Make sure of the following settings for the NEW Provider you are adding:Active > set to “Yes”
API URL > The URL for this new Provider
API Username > The username you used to sign up with
API Access Key > The unique key sent to you* Go to “StockUnlocks > Import Services” and select your desired Provider
* Click “Retrieve” and observe the message(s)You may need to directly communicate with your Provider to verify some of these details.
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Supported SuppliersHello Zafer,
Whatever you did to get everything to work with the StockUnlocks Reseller website is exactly the same thing you need to do with the others:
* Sign up for an account with the Provider
* Request API access
* In WordPress, create a new Provider entry under “StockUnlocks > Providers”
* Input your username and API key in the new Provider entry
* Go to “StockUnlocks > Import Services” and select your desired Provider
* Click “Retrieve” and observe the message(s)> Which version of the StockUnlocks plugin are you using?
> What message are you getting when you click on “Retrieve”?
> Are you running your installation from a hosted environment or on a local computer?Thanks, Henry
P.S.
From another post:
It might be helpful to right click on the “Retrieve” button and select “Inspect Element”.
Next, select the “Network” tab and then click the “Retrieve” button and take note of the network activity from the remote server. Response codes, etc.
Forum: Plugins
In reply to: [WooCommerce] woocommerce_order_items_meta_display hook no longer workingWith some additional searching, I came across the solution:
add_filter( 'woocommerce_display_item_meta', ...
Does exactly what I’m looking for while using WC v3.0.x
If anyone is interested in supporting hooks from earlier versions along with the current, this page contains some code that you can modify for your needs:
https://woocommerce.wordpress.com/2017/01/27/deposits-2-7-extension-compatibility/
Forum: Requests and Feedback
In reply to: Plugin Support: Donate ButtonAppreciate the response.
I only asked because of a recent experience.
Makes sense. Thanks
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Processing order problemYes, there should be files in the
providers
folder representing your active unlock Providers.Please check the permissions on the
providers
folder. The reading might be something like0644
or0755
.After a proper installation of the StockUnlocks plugin, permissions on that folder should be
0755
.Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Processing order problemLooks like there might be some possible file/folder permission issues. To confirm, please see if you can send me a screenshot or tell me the contents of this folder (providers):
/plugins/stockunlocks/api/cron/providers/
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] Processing order problemOk, I submitted an order and received the preliminary WC notifications that an order was made.
I gave it some time and, as you have been experiencing, no further notifications were sent out.
Can you do me a favor?
Please find your
public_html/wp-config.php
file and add or modify these lines:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);
Save the wp-config.php file.
Deactivate then Activate the StockUnlocks plugin via the dashboard.
Wait more than five minutes …
Find this file:
public_html/wp-content/debug.log
Please email me the file or its contents ([email protected]).
If weird stuff starts showing up on your website that you don’t like, just change these lines in your wp-config.php to read:
define('WP_DEBUG', false); define('WP_DEBUG_LOG', false);
Thanks
Forum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] import problem with apiThe next update will fix this problem by extracting the necessary path element:
var doc_pathname = ''; var suwp_pathname = document.location.pathname.split('/')[1]; // add the path element, if necessary if( suwp_pathname == 'wp-admin' ) { doc_pathname = '/wp-admin/admin-ajax.php'; } else { doc_pathname = '/' + suwp_pathname + '/wp-admin/admin-ajax.php'; } // setup our wp ajax URL var wpajax_url = document.location.protocol + '//' + document.location.host + doc_pathname;
Once this is implemented, there will be no need to edit this file anymore.
Thanks for your patience!
Take care,
HenryForum: Plugins
In reply to: [StockUnlocks - Mobile and Cell Phone Unlocking] import problem with apiThe 404 error that appears in the Network tab points directly to this file:
/plugins/stockunlocks/js/private/stockunlocks.js
Line 5:
var wpajax_url = document.location.protocol + '//' + document.location.host + '/wp-admin/admin-ajax.php';
I can recreate your problem when I’m running WordPress locally.
This is because
/wp-admin/admin-ajax.php
would need additional info due to local hosting arrangement.For example, my local hosting environment requires that I add
/stockunlocks-plugin
because that’s how my local environment is set up.So, here is what line 5 will look like for me, running locally:
var wpajax_url = document.location.protocol + '//' + document.location.host + '/stockunlocks-plugin/wp-admin/admin-ajax.php';
If I do not add
/stockunlocks-plugin
, I get the same 404 error that you receive on the Network tab. After adding, it works just fine.Check your URL structure for your environment. The plugin is designed to work with the most common structures encountered for a hosted environment.
Hope this helps.
Regards,
Henry