panimarcus
Forum Replies Created
-
Forum: Plugins
In reply to: [Bitcoin Payments for WooCommerce] Bitcoin URI wrong and not modifiableHi!
I was experiencing the same problem, in addition to the QR image itself being generated from a bad link. So neither worked.The problem is the following:
1- Default template for payment instructions is wrong.
2- WordPress escapes protocols that are not whitelisted, including “bitcoin:”, from anchor tags and other strings. This is an intended behavior (by WordPress).I hope to get a little time to open another ticket properly addressing the issue and ideally helping the devs fix it quickly and easily.
This plugin appears to be growing in popularity, and it is a real gift from the developers.
I see a lot of support tickets being filed. I hope they are receiving tips(donations) accordingly. It is due.That being said:
THE FIX:
STEP – 1 :
Add this code to your theme’s functions file (functions.php):function wporg_extend_allowed_protocols( $protocols ){ $protocols[] = 'bitcoin'; return $protocols; } add_filter( 'kses_allowed_protocols' , 'wporg_extend_allowed_protocols' );
This will whitelist “bitcoin” as a protocol and will stop the undesired escaping.
STEP – 2
In the Payment Instructions field, replace the QR anchor tag with the following:<a href="bitcoin:{{{BITCOINS_ADDRESS}}}?amount={{{BITCOINS_AMOUNT}}}"><img src="https://blockchain.info/qr?data=bitcoin:{{{BITCOINS_ADDRESS}}}?amount={{{BITCOINS_AMOUNT}}}&size=180" style="vertical-align:middle;border:1px solid #888" /></a>
That’s replacing the “//” for “bitcoin:” in the href parameter
&
replacing “bitcoin://” for “bitcoin:” in the QR generating link.I hope this works fine for you or anyone encountering the same or similar issue.
- This reply was modified 8 years, 6 months ago by panimarcus.
- This reply was modified 8 years, 6 months ago by panimarcus. Reason: because I wrote it wrong
Forum: Plugins
In reply to: [WC - APG Free Shipping] Free shipping applied before state is defined.Hi!
Thank you for your answer. I couldn’t test again until now.Unfortunately your indications do not solve the issue.
I’ve tried several other things and nothing is working.
I definitely think it’s some kind of bug or conflict in the code. Your plugin is very easy to use and, except for the mentioned issue, is working like a charm (thank you very much for that)
I think I’m experienced enough with WP, Woo and these kind of plugins. If it was some obvious mistake in my config I would have already spotted it (hopefully).
So I don’t really know how to proceed. I can only count on you now.
Thank you very much for everything.
Looking forward to a response.
Kind Regards
Forum: Plugins
In reply to: [WC - APG Free Shipping] Free shipping applied before state is defined.Of course!
Here′s the APG shipping plugin config:
https://www.dropbox.com/s/d2zv8e4v62l51ji/normal_shipping_config.jpg?dl=0Here′s the APG FREE shipping plugin config:
https://www.dropbox.com/s/9jwe9ok5ng21oz7/free_shipping_config.jpg?dl=0Thanks