henza
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431Hi Shane,
I opened a ticket over on GitHub. I would love to let you poke around but it is a clients live website and I am not sure they would appreciate that ??
Cheers,
HenryForum: Plugins
In reply to: [WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431Yep latest of all.
– WordPressV4.8
– WooCommerceV3.1.1
– WooCommerce PayPal Express Checkout GatewayV1.4.2
Cheers.
Forum: Plugins
In reply to: [WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431I just had a PayPal integration engineer confirm that it is an issue with the plugin not rounding the total before it gets sent to PayPal.
He also suggested using https://www.angelleye.com/product/woocommerce-paypal-plugin/ in the interim.Forum: Plugins
In reply to: [WooCommerce PayPal Checkout Payment Gateway] Paypal error 10431I reckon so! I am getting the exact same error with the same environment as you. Weird thing is that if you enable the ‘Checkout on cart page’ button it works from there…
Forum: Plugins
In reply to: [SVG Support] in_array() PHP ErrorHi Ben.
I noticed this warning cropping up on a site I am working on.
Warning: in_array() expects parameter 2 to be array, boolean given in /htdocs/nm-wordpress/wp-content/plugins/svg-support/functions/featured-image.php on line 69
Just wanted to let you know in case you thought the bug was squashed ??
Great work on the plugin too by the way!Cheers,
HenryForum: Plugins
In reply to: [Firelight Lightbox] SVG Icons to Open Multiple Galleries On One PageThanks! That worked. One thing I did notice though is that the galleries numbering don’t align with the media rel tags. ie. The gallery div with
id="gallery-1"
will contain links withrel="gallery-0"
. Not sure if this is a bug or just a glitch on my site.Anyway, I am off to purchase the pro version as a show of support! Keep up the great work, and thanks again.
Forum: Plugins
In reply to: [Firelight Lightbox] SVG Icons to Open Multiple Galleries On One PageOkay, I figured out how to get it to work with individual image links:
<a href="image-b1-1.jpg" rel="brand-1"><img src="brand-1.svg" /></a> <a href="image-b2-1.jpg" rel="brand-2"><img src="brand-2.svg" /></a> <div class="fancybox-hidden"> <a href="image-b1-2.jpg" rel="brand-1"><img src="image-b1-2-150x150.jpg" /></a> <a href="image-b1-3.jpg" rel="brand-1"><img src="image-b1-3-150x150.jpg" /></a> <a href="image-b2-2.jpg" rel="brand-2"><img src="image-b1-2-150x150.jpg" /></a> <a href="image-b2-3.jpg" rel="brand-2"><img src="image-b1-3-150x150.jpg" /></a> </div>
Is it possible to refactor this to use WP galleries instead? Something like:
<a href="image-b1-1.jpg" rel="brand-1"><img src="brand-1.svg" /></a> <a href="image-b2-1.jpg" rel="brand-2"><img src="brand-2.svg" /></a> <div class="fancybox-hidden"> [gallery link="file" rel="brand-1" ids="150,151,152"] [gallery link="file" rel="brand-2" ids="153,154,155"] </div>
Thanks again.
Forum: Plugins
In reply to: [Simple Shortcodes] Toogle initially open?Will it be possible for the toggles to be open on the desktop site but closed for mobile?
Forum: Plugins
In reply to: [Contact Details] Badly escaped aposrophesHi Patabugen,
I had this issue, and I also wanted to be able to add html tags but these were all getting stripped, double escaped or encoded to entities.
My solution involved modifying the code, removing the ‘sanitize_text_field’ and replacing it with ‘mysql_real_escape_string’ (couldn’t find a suitable WP function).
This worked for the html tags, but quotes were being double escaped which means ‘magic_quotes_gpc’ must be on. To fix this run it through ‘stripslashes’ first, and of course you need to strip the slashes out again when it is being printed out. Otherwise you will see the escape.Code if you (or the developers) are interested:
// Saving to the DB $contactDetails = array_map('stripslashes', $_POST['contact_details']); if( update_option('contact_details',array_map('mysql_real_escape_string',$contactDetails))) echo '<p>Successfully updated your Business Details.</p>';
and..
// Return shortcode if( $data = get_option( 'contact_details' ) ) return stripslashes($data[$attributes['type']]);
Keep up the great work on the plugin!