goasklecom
Forum Replies Created
-
Your features added into plugin please upgrade it and test it
Let me know if any issues will be found
Previous message was paused with moderation process so you need to wait for wordpress team to read it after checking
So if friends will try to activate QR code second time you will see: Hash status: DEACTIVATED — it means that this QR code already was activated. Also if you will go to the order edit link you can see date and time of every cahnging of the status of the QR code hash. So you will easy understand that people try to lie or they were mistaken
As I described in docs here:
You need to use this “Template” in settings of plugin:
Field Woocommerce Data Template must contain {wc_website}/?hash-gaqr={hash_gaqr}
By this way you will have unique hash code generated with every order and link to the thank you page of the order with special buttons. Where you can (if you have admin rights) activate or deactivate scanned QR code — so its very protected. And you are right that customer must hide his QR code from other people because anybody can use QR code especially if you dont checking the documents.
So no worries no cheating…
Steps for use in your case:
If you scan QR code ( which was created using {wc_website}/?hash-gaqr={hash_gaqr} )
Scanned page opening with all order data and with the button in very top
If QR code was activated earlier then you will see this information:
Your QR code hash is VALID means that customer is not cheater and HASH is VALID
Lower you can see HASH status: Active —- that means that nobody activated this order YET — so customers can go into park.
And you need to click on Activate HASH —- to prevent double using of QR code by customers because if your customers will send this QR code to friends and they will try to enter into park second time then when you will scan same QR code second time you will see SECOND screenshot
First screenshot
https://drive.google.com/file/d/13RMf2o8zEzuHyDry14Fksifu3499R6ya/view
Second screenshot
https://drive.google.com/file/d/1hDO5zJEVG5hKyQgAX-v0mlchyRHtSE37/view
- This reply was modified 4 months, 3 weeks ago by goasklecom.
an order can be used only once -> will add this feature in next release (you can recommend me where need to add this field to)
Hello!
Please describe more detailed this —> cheaters may not create valid QR codes
Hello!
Thanks for your information! I sure your case will be useful as experience for other people!
Good that you resolved it and have a nice day!
- This reply was modified 4 months, 3 weeks ago by goasklecom.
Closing ticket due inactivity and unable to reproduce on my side
Thank you for the tips, they are useful, but you are really right, the multiplicity of launching hooks is associated with different versions of Woocommerce, so different hooks work simultaneously and only the one that is suitable for the current version really works, and the second one is idle and may give an error due to the fact that it does not support the current version of WC
qr-code-tag-for-wc-from-goaskle-com\lib\qrct\QrctWp.php (line 305)
The thing is, my plugin has nothing to do with Elementor at all. And it doesn’t use its API. However, I am requesting the address of the checkout page $order->get_checkout_order_received_url()
and I use this hook (line 521): woocommerce_store_api_checkout_order_processed
So I dont use Elementor API and not use Woocommerce API – just hooks
For example you can edit my plugin in this file (line 39 – and uncomment it with adding zero there):
qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
replace this:
ini_set(‘display_errors’, 1);
with
@ini_set(‘display_errors’, 0);
Also you can easy remove your error by adding this line into php file:
@ini_set(‘display_errors’, 0);
I mean did you tried to disable all Elementor experiments (checkboxes in settings) except flex box of course
Hello!
Did you tried these recomendations?
and
https://wordpress.org/support/topic/php-warning-undefined-array-key-checkout_layout/
Hello!
Many thanks! I will fix it asap for few days. Maybe even tomorrow!