Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi 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,
    Henry

    Yep latest of all.
    – WordPress V4.8
    – WooCommerce V3.1.1
    – WooCommerce PayPal Express Checkout Gateway V1.4.2

    Cheers.

    I 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.

    I 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…

    Hi 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,
    Henry

    Thread Starter henza

    (@henza)

    Thanks! 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 with rel="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.

    Thread Starter henza

    (@henza)

    Okay, 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.

    • This reply was modified 7 years, 8 months ago by henza.
    • This reply was modified 7 years, 8 months ago by henza. Reason: added second brand & removed cruft for clarity

    Will it be possible for the toggles to be open on the desktop site but closed for mobile?

    Hi 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!

Viewing 9 replies - 1 through 9 (of 9 total)