Forum Replies Created
-
AuthorPosts
-
alexg
KeymasterBut then what about the function:
function my_wallets_views_dir_override( $dir ) {
return get_stylesheet_directory_uri() . ‘/wallets/include/views/’;
}
add_filter( ‘wallets_views_dir’, ‘my_wallets_views_dir_override’ );?
alexg
KeymasterYes thank you. I must update the documentation.
These paths were from before each view got its own directory.
Views now have their own directory so that they can have alternative templates.
The correct paths are the longer ones.
alexg
KeymasterSo, like this:
function my_wallets_views_dir_override( $dir ) {
return get_stylesheet_directory_uri() . ‘/wallets/include/views/’;
}
add_filter( ‘wallets_views_dir’, ‘my_wallets_views_dir_override’ );But you say:
wp-content/plugins/wallets/includes/views/balance.php
wp-content/plugins/wallets/includes/views/move.php
wp-content/plugins/wallets/includes/views/deposit.php
wp-content/plugins/wallets/includes/views/withdraw.php
wp-content/plugins/wallets/includes/views/transactions.phpShould this not be:
wp-content/plugins/wallets/includes/views/balance/default.php
wp-content/plugins/wallets/includes/views/move/default.php
wp-content/plugins/wallets/includes/views/deposit/default.php
wp-content/plugins/wallets/includes/views/withdraw/default.php
wp-content/plugins/wallets/includes/views/transactions/default.phpWhat about account value ?
wp-content/plugins/wallets/includes/views/account_value/default.php
Graeme
alexg
KeymasterI just saw it : function my_wallets_views_dir_override( $dir ) {
return ‘/path/to/the/directory/where/the/new/templates/are/copied’;
}
add_filter( ‘wallets_views_dir’, ‘my_wallets_views_dir_override’ );My apologies ..
alexg
KeymasterAlso, is the market pair set to “enabled”?
alexg
KeymasterTo be clear, it is normal for already performed trades to remain in the history views, even after cancelling the open trades.
I believe you mean that open orders remain in the orderbook views? Is that what you are saying?
alexg
KeymasterHello,
Did you follow the instructions in the documentation about overriding the views directory?
Instructions are given under “Frontend” -> “Frontend UI WordPress Filters” -> “Alternative knockout templates”.
Essentially you need to use the
wallets_views_dir
filter to point to your new views directory.kind regards
alexg
KeymasterHello,
Do the orders still show up after you refresh the page?
Normally after you place an order the orderbook view is refreshed with a new JSON API call to the orderbook API endpoint.
If this call fails due to network issues the view might not be updated.
But the bids and asks views only display orderbook data and the query for orderbook data only retrieves open orders.
Can you check if the orders remain after a page refresh please?
Thanks.
kind regards
alexg
KeymasterHello,
Does your admin user have the
manage_wallets
capability? It sounds like not.You can use any third-party plugin that manages roles and capabilities to assign
manage_wallets
to your user.This should solve your problem, but please tell me if it does not.
kind regards
alexg
KeymasterHello,
Yes, this makes sense.
I do plan to do an update at some point where transactions will be searchable by a number of criteria, including status. This has been suggested before and is in my backlog.
In the meantime, in the upcoming 3.6.0 release, admins with the
manage_wallets
capability will be able to receive an email whenever a transaction requires admin approval.kind regards
Alexalexg
KeymasterHello,
The error you report is not an exception but a database error and I do not think it indicates that your DB cannot handle this charset/collation.
Please keep in mind that coin adapters are an abstraction/encapsulation of crypto wallets, and they do not touch the database directly.
The collation is set to latin1 to match the character set which is also latin1 for fields that do not require Unicode. This includes coin symbols, addresses and transaction IDs.
Latin1, as you know, has one byte wide characters and this saves space. If four bytes were used as you suggest, this would cause problems with the size of some table indexes. This is why latin1 is used. It is unlikely that your database cannot handle this basic collation and charset as it is the most basic one – essentially ASCII.
Instead, it is possible that you have run on some of the block.io service limits with a free account and this is probably why you do not get new addresses. At this point in time if I were you I would prefer to use the CoinPayments adapter which has no such limitations.
In any case the SQL
UPDATE wp_wallets_adds SET status = 'current' where id = 1;
should not generate an error, and it does not on my machine. This is curious. Which DB are you using? Can you show meSELECT VERSION();
?kind regards
alexg
KeymasterHello,
Good to know that you fixed the problem.
The installation instructions already mention that you should enable the
get_callback_address
permission. See step 3 at https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/About the other error (JSON parse error), please see the troubleshooting guide in the documentation where it is covered extensively.
kind regards
alexg
KeymasterHello San,
This is not currently possible. It was recently requested.
I will let you know here when it will be implemented.
kind regards
alexg
KeymasterHello,
I will release today a patch for the gateway where fees can be enabled or disabled.
But the payment gateway does not currently work with multi-vendor plugins. The reason is that on checkout the payment is done to one account.
As mentioned before, I do plan to address multi-vendor plugins in the future.
kind regards
alexg
KeymasterHello,
This makes sense. I will add some static shortcodes in the future. The current ones work with live polling over the JSON API and therefore probably won’t be very SEO friendly, although they do have their uses.
It has already been requested to be able to show the chart while not being logged in. This will be possible in a future release.
I will post here when the static shortcodes are implemented.
I am currently doing the same on the parent plugin.
kind regards
-
AuthorPosts