dannyg82
Forum Replies Created
-
here is my edited version of Blocks.php which I also found was causing the issue. Everything works now after the following commenting out. Hopefully the developer can rectify and push a new update out.
<?php
/**- @author Wployalty (Alagesan)
- @license https://www.gnu.org/licenses/gpl-2.0.html
- @link https://www.wployalty.net
- */
namespace Wlr\App\Controllers\Site\Blocks;
use Automattic\WooCommerce\StoreApi\Exceptions\RouteException;
use Automattic\WooCommerce\StoreApi\Schemas\V1\CartSchema;
use Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema;
use Wlr\App\Controllers\Base;
use Wlr\App\Controllers\Site\Blocks\Integration\Message;
use Wlr\App\Controllers\Site\Main;
use Wlr\App\Helpers\CompatibleCheck;
use Wlr\App\Helpers\Woocommerce;
/* Comment out the line below *//*
use Wlr\App\Premium\Controllers\Site\Birthday;
*/
defined( ‘ABSPATH’ ) or die;
class Blocks extends Base {
/* Block */
function initBlocks() {
if ( ! ( function_exists( ‘woocommerce_store_api_register_endpoint_data’ ) && class_exists( ‘\Automattic\WooCommerce\StoreApi\Schemas\V1\CartSchema’ ) ) ) {
return;
}
$woocommerce = Woocommerce::getInstance();
if ( ! Woocommerce::isBlockEnabled() || $woocommerce->isBannedUser() ) {
return;
}$message = new Message();
if ( Woocommerce::isCartBlock() ) {
if ( function_exists( 'WC' ) && WC()->is_rest_api_request() ) {
woocommerce_store_api_register_endpoint_data(
[
'endpoint' => CartSchema::IDENTIFIER,
'namespace' => str_replace( '-', '_', WLR_TEXT_DOMAIN . '-message' ),
'data_callback' => [ $message, 'extendData' ],
'schema_callback' => [ $message, 'extendDataSchema' ],
'schema_type' => ARRAY_A,
]
);
/* COMMENT OUT BIRTHDAY CODE HERE. IT IS A PREMIUM FUNCTION AND SHOULD NOT BE HERE */
/* $birthday = new Birthday();
woocommerce_store_api_register_endpoint_data(
[
'endpoint' => CheckoutSchema::IDENTIFIER,
'namespace' => 'wlr_checkout_block',
'schema_callback' => [ $birthday, 'getBirthdayDateSchema' ],
'schema_type' => ARRAY_A,
]
);
*/
}
add_action(
'woocommerce_blocks_cart_block_registration',
function ( $integration_registry ) {
$integration_registry->register( new Message() );
}
);
}
if ( Woocommerce::isCheckoutBlock() ) {
if ( function_exists( 'WC' ) && WC()->is_rest_api_request() ) {
woocommerce_store_api_register_endpoint_data(
[
'endpoint' => CartSchema::IDENTIFIER,
'namespace' => str_replace( '-', '_', WLR_TEXT_DOMAIN . '-message' ),
'data_callback' => [ $message, 'extendData' ],
'schema_callback' => [ $message, 'extendDataSchema' ],
'schema_type' => ARRAY_A,
]
);/* AND ALSO COMMENT OUT HERE */
/* $birthday = new Birthday();
woocommerce_store_api_register_endpoint_data(
[
‘endpoint’ => CheckoutSchema::IDENTIFIER,
‘namespace’ => ‘wlr_checkout_block’,
‘schema_callback’ => [ $birthday, ‘getBirthdayDateSchema’ ],
‘schema_type’ => ARRAY_A,
]
);
*/
}
add_action(
‘woocommerce_blocks_checkout_block_registration’,
function ( $integration_registry ) {
$integration_registry->register( new Message() );
}
);
}add_action( 'woocommerce_store_api_checkout_update_order_from_request', function ( $order, $request ) { $woocommerce = Woocommerce::getInstance(); $coupons = $woocommerce->isMethodExists( $order, 'get_items' ) ? $order->get_items( 'coupon' ) : []; if ( empty( $coupons ) ) { return; } $reward_helper = \Wlr\App\Helpers\Rewards::getInstance(); $payment_method = $woocommerce->isMethodExists( $order, 'get_payment_method' ) ? $order->get_payment_method() : ''; if ( empty( $payment_method ) ) { return; } $user = $woocommerce->isMethodExists( $order, 'get_user' ) ? $order->get_user() : ''; foreach ( $coupons as $coupon_item ) { $coupon_code = $woocommerce->isMethodExists( $coupon_item, 'get_code' ) ? $coupon_item->get_code() : ''; if ( ! empty( $coupon_code ) && $reward_helper->is_loyalty_coupon( $coupon_code ) ) { $user_reward = $reward_helper->getUserRewardByCoupon( $coupon_code ); // 4. validate WPLoyalty coupon conditions $extra = [ 'user_email' => $user->user_email, 'order' => $order, 'is_calculate_based' => 'order', 'allowed_condition' => [ 'payment_method' ] ]; if ( ! $reward_helper->processRewardConditions( $user_reward, $extra, false ) ) { throw new RouteException( 'woocommerce_rest_cart_coupon_errors', sprintf( __( 'Sorry.. %s coupon code invalid for %s payment.', 'wp-loyalty-rules' ), $coupon_code, $payment_method ), 409 ); } } } }, 10, 2 ); } function updateCartFreeProduct() { if ( ! Woocommerce::isBlockEnabled() ) { return; } $main_controller = new Main(); $main_controller->updateFreeProduct(); }
}
Hi,
I am too getting this error message about HPOS storage. Is there likely to be a fix anytime soon ???
And the reason that your usage is low is because a lot of the plugin does not work properly.
It is not the chain it is the plugin.
Improve the plugin and listen to your customers.
When a customer is posting a issue, stop blaming the customer it is not the customers fault.
You make unbelievably silly decisions and I don’t understand why.
You haven’t checked your wallet connect functionality.
You haven’t checked your metamask buttons and connect warnings (appearing at the wrong time). You are not saving wallet connection to cache so when you go to a different page , i.e nfts to staking, you have to reconnect to metamask which is very annoying.
The styling for mobile devices has not been checked.
Gas is failing constantly due to the gas estimations being incorrect.
The only 2 chains that seemed to work correctly where xDai and polygon.
Polygon is ok but you have removed xDai which I find crazy as it is the only stable valued currency in your selection.
You have removed the one token that holds a USD price which I really don’t understand.
You didn’t need to remove it you should have just informed customers that it would no longer be supported and give them their funds back.
It’s like buying a ticket for a football match and someone saying the game is cancelled but we ain’t giving you the money back for your ticket. It is exactly the same as what you have done..
How do I enquire as to a refund for the money I have spent on xDai ?This is not resolved.
Is this a joke?
You can’t just remove parts of a plugin that people pay for are you crazy and do you want to have your plugin removed from the wordpress library for misrepresentation?
I want to use the galleries feature but cannot due to these ridiculous updates you have imposed.
You are not making things easy for people. Each change seems to bring more bugs . Please make the plugin work correctly before trying to add new features.
There is no reason why you should charge people to create products and then remove them without warning it is crazy.
You need to put xdai back with galleries before I report this plugin for misrepresentation.Now you also have NOT resolved the other parts of my comments.
Where are Fantom NFTS ?
I cannot access any fantom nft feature .Why are you marking the matter as RESOLVED when it is clearly NOT RESOLVED.
Forum: Plugins
In reply to: [WPSmartContracts] Gallery nor NFT’s appearing in my CollectionPlease read the question properly – this is what was queried:
I’ve created my first NFT Collection and Gallery. Minted my first NFT on the Rinkeby Testnet using the Suika flavor. At first, I looked at the NFT’s page and saw no way to Sell or Auction the NFT. Then I went to my collection and also the gallery and the NFT was not there either.
I believe this is one of many errors with your latest plugin so please before posting replies like this “Gallery options are not deployed, they are part of the collection attributes.” , Read the query properly and don’t waste peoples time it isn’t fair when you are charging such high prices for deploying contracts that cost almost nothing.
Forum: Plugins
In reply to: [WPSmartContracts] WORDPRESS CONTRACTSHi,
In my opinion the best was Gnosis but the new update has broken that among other things. The fees on Gnosis are very very low and the chain is stable. xDai is a solid currency as well but its a shame that this recent update has broken this.You can do a token sale using an external plugin called crypto product for woocommerce , install woocommerce and in the crypto product plugin settings add the chain details you want to use. Then you can use cryptopay woocommerce to accept crypto as payment and also add your own tokens if needed.
Using this you can set things like the amount of units you want to sell, the timeframe to sell them in among other things.
you simply add your coin / token as a product and then in the product settings you can set the contract address of your token . When the woocommerce order is set to complete, the tokens are automatically sent the the recipient wallet address.
There is a fundraising section to this wpsmartcontracts plugin but it is very limited and does not give you the options to send tokens for contributions , it is just a straight fundraising option.
Forum: Plugins
In reply to: [WPSmartContracts] Mobile stake not workingHi,
I have asked a couple of times now for you to implement wallet connect. There are many many wordpress plugins using wallet connect but for some reason you won’t implement it.
If you implement wallet connect then the user does not have to use metamask browser they can use Chrome or Firefox . Wallet connect will connect the metamask wallet to the android chrome browser.
More than 50% of people viewing websites will view it on a mobile device.
It is a bit cheeky to ask for so much money to create a nft collection that doesn’t work properly.
Also why do users have to be logged in to mint nfts?
There needs to be an option to disable this and allow non logged in members to mint.
Opensea doesn’t need this it simply connects with the wallet.
If you have a look at ethpress then this has wallet connect included , maybe you can get some ideas from here.
Also for anything non nft related , you can deeplink metamask in android . This is an easy implementation for the Devs as it is simply a user agent scan, then forwarding the current URL to metamask deeplink .Also on some of your pages like nft-collection, metamask will also not show the images or the nft data. The NFT shows but the nft collection data does not.
Really this non mobile viewing is a major flaw in wpsc and needs to be urgently addressed.
Don’t tell me you are waiting for metamask to handle cookies and cache when there are alternate solutions available.
Trust wallet will work as it handles wordpress sessions. Kiwi browser runs metamask, Wallet Connect will connect the wordpress site to metamask but remain in the original browser.Please also don’t mark items as resolved when they clearly aren’t.
If one of the Devs can contact me please and advise me where the code for metamask is then I can try and implement wallet connect.the code is very cumbersome and bulky and due to many files being obfuscated, I don’t have the time to spend fixing it.
Your current metamask functions will work but needs to use wallet connect to connect to metamask and not a direct link to metamask. It should be a fairly easy implementation for the guys who know the code
Forum: Plugins
In reply to: [WPSmartContracts] unable to mint nftsyou have to authorise this before deploying the collection contract.
make your nft collection and then save the option rather than deploy. Then once all your NFT collection details are input correctly then deploy.
Ive made many and it will allow anyone to mint if you follow the correct process.
Try making a test collection on one of the test networks using this format and you should see that it works.Forum: Plugins
In reply to: [WPSmartContracts] view nftshi,
Although there are many issues with this plugin including 2 new issues this morning, you can view the nfts without logging in from the page https://nftmarketplace.coinsavy.com/nft
From here you can place a search function and use the same search function to list collections and authors without contacting metamask. When clicking on an NFT you should see the NFT.
The only thing that doesnt import is the price which is a bitch .
I used a set of str_replace and preg_replace commands to redesign the nft page and to add search function and categories and collections as options to click .
Hope this helps.
I am working on a free NFT production script which uses Pinata to pin the nft to IPFS and then run it through opensea to sell the NFT.It actually is fairly simple and the best thing is that it is free.Forum: Plugins
In reply to: [WPSmartContracts] Create an ICO with an external tokenIf you install advanced custom fields plugin you can add your coin to the website easily.
You don’t need to deploy a contract to create an initial coin offering .
An ICO is initial coin offering so you can offer the coin/token in a number of ways you don’t need to use this plugin for that. Furthermore as per the rest of this plugin I would assume it is underdeveloped and not working correctly..Forum: Reviews
In reply to: [WPSmartContracts] Number of issuesSorry you posted telegram links and you was talking to me but then you deleted the chat. Maybe you should pin the correct administration links and not say to not use telegram after you have told people to use telegram for updates.