Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Jazz

    (@prgemini)

    @ckadenge Wow, I had forgotten about the Chatgpt! Thank you!

    @proshantamr I think this is the correct code. Everything seems to be working fine, for now:

    function get_social_share_buttons() {
    // Get the current page URL
    $url = esc_url(get_permalink());

    // Get the current page title
    $title = urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8'));

    // Create an array of social networks and their respective sharing URLs
    $social_networks = array(
    'Facebook' => 'https://www.facebook.com/sharer/sharer.php?u=' . $url,
    'Twitter' => 'https://twitter.com/intent/tweet?url=' . $url . '&text=' . $title,
    'LinkedIn' => 'https://www.linkedin.com/shareArticle?url=' . $url . '&title=' . $title,
    'Pinterest' => 'https://pinterest.com/pin/create/button/?url=' . $url . '&description=' . $title,
    );

    // Initialize the share buttons HTML
    $share_buttons = '<div class="social-share-buttons">';

    // Loop through the social networks and generate the share buttons HTML
    foreach ($social_networks as $network => $share_url) {
    $share_buttons .= '<a href="' . $share_url . '" target="_blank" rel="noopener">' . $network . '</a> ';
    }

    // Close the share buttons HTML
    $share_buttons .= '</div>';

    return $share_buttons;
    }
    add_action('woocommerce_after_add_to_cart_button', 'display_social_share_buttons');

    function display_social_share_buttons() {
    echo get_social_share_buttons();
    }

    • This reply was modified 1 year, 8 months ago by Jazz.
    Thread Starter Jazz

    (@prgemini)

    Hi @proshantamr Thank you for the help. I got this error when applying your code:

    syntax error, unexpected token “public”, expecting end of file

    Thread Starter Jazz

    (@prgemini)

    Is there a solution to this problem??

    Thread Starter Jazz

    (@prgemini)

    @niklasinpsyde Hello! Thank you for your reply. The error might not be showing on your end because I deactivated the plugin. I am using a different plugin in the meantime. Do I need to reinstall the plugin for the system report?

    Sorry but I do no like to force billing address because I have customers who purchase my items as gifts and ship to different address.

    I might just revert back to the older version, which I didn’t have any problems with before. Is the older version safe to use? Free of bugs, etc? Thanks again

    Thread Starter Jazz

    (@prgemini)

    Thank you for letting me know. I spent hours yesterday trying to figure out the problem. I had to temporary switched to “Payment Plugins for PayPal Woo Commerce” until this problem gets fixed. Yes, I agree. It is a great plugin but this can be frustrating and cause us to lose sales. I hope they fix it soon too. If your site works again, please let us know.

    • This reply was modified 3 years, 5 months ago by Jazz.

    Hello! I am also having the “please enter address to continue” error in checkout even though all the information is added. I was also notified by my customers today. Please fix

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