• Resolved mbenatar

    (@mbenatar)


    I don’t have a page setup yet. I have a 4 part series paid Zoom webinar, that clients will be offered once per week for 4 consecutive weeks. Clients will choose 1, 2, 3, 4 or all 4 for a discounted rate through Paypal. clients select the webinars, and add them to their cart. When the client pays for the Zoom webinar(s) in their cart, they need to be taken to the perspective Zoom page (which is integrate with Paypal) to pay for the webinars, so Zoom can email them the links to the webinars. Does that make sense? I am way over my head on this

    I have not been able to find any help and I can’t afford $100.00’s of dollars to pay someone. Any help or advice would be greatly appreciated!

    mbenatar

Viewing 15 replies - 1 through 15 (of 29 total)
  • Have you read this article?

    Thread Starter mbenatar

    (@mbenatar)

    Hello Stef,
    No I have not! Thank you for the information. I will take a look and let you know how I weather.

    Best Regards,
    mbenatar

    Thread Starter mbenatar

    (@mbenatar)

    Hello Stef,
    I started to implement the article but when I got to the step to install “My Custom Functions” plugin and insert the PHP code, I got this error message.I am not a coder so I don’t know how to debug and fix the error.

    “Sorry but your code causes a “fatal error”, so it is not applied!
    Please, check the code and try again.

    mbenatar

    So take it out. Refresh, start over. Where and how are you adding the code?

    Thread Starter mbenatar

    (@mbenatar)

    Okay so I tried to refresh my page and now I am getting this error message when I try and log back in to my wordpress admin. I entered the code into the code window of My Custom Functions.

    “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”

    I have not received any email and can’t log back into my backend.

    mbenatar

    Do you have ftp access? Sounds like you added it using theme editor and not ftp.

    Can you paste the code here exactly like you posted into your functions?

    Thread Starter mbenatar

    (@mbenatar)

    // add hidden field in order after checkout
    add_action( ‘woocommerce_checkout_before_customer_details’, ‘my_custom_checkout_hidden_field’, 10, 1 );
    function my_custom_checkout_hidden_field( $checkout ) {
    foreach ( WC()->cart->get_cart() as $cart_item ) {
    $product = $cart_item[‘data’];
    if(!empty($product)){
    $webinar_id = $product->get_attribute( ‘webinar_id’ );
    // Output the hidden field
    echo ‘<div id=”user_link_hidden_checkout_field”>
    <input type=”hidden” class=”input-hidden” name=”webinar_id” id=”webinar_id” value=”‘ . $webinar_id . ‘”>
    </div>’;
    }
    }
    }
    // save hidden field in the order
    add_action( ‘woocommerce_checkout_update_order_meta’, ‘save_custom_checkout_hidden_field’, 10, 1 );
    function save_custom_checkout_hidden_field( $order_id ) {
    if ( ! empty( $_POST[‘webinar_id’] ) )
    update_post_meta( $order_id, ‘_webinar_id’, sanitize_text_field( $_POST[‘webinar_id’] ) );
    }
    //only 1 prod in cart for WooC
    add_filter( ‘woocommerce_add_to_cart_validation’, ‘bbloomer_only_one_in_cart’, 99, 2 );
    function bbloomer_only_one_in_cart( $passed, $added_product_id ) {
    // empty cart first: new item will replace previous
    wc_empty_cart();
    return $passed;
    }

    Thread Starter mbenatar

    (@mbenatar)

    I do have ftp access through my web host. But I did enter the code in My Custom Functions in ‘Settings”

    mbenatar

    Thread Starter mbenatar

    (@mbenatar)

    I am totally locked out of admin. I have ftp access but have no idea what to do.

    Thread Starter mbenatar

    (@mbenatar)

    Here is a message I got back from my host support. I don’t even know what it means.

    I am unable to see any relevant files under the document root directory for the domain clinicalavianpathologyservices.com. Please update the files so that the site loads properly.

    Please let me know if you need any further assistance.

    [/home/rescuebi/clinicalavianpathologyservices.com]# ll
    total 12
    drwxr-xr-x 3 rescuebi rescuebi 4096 May 17 15:50 ./
    drwx–x–x 33 rescuebi rescuebi 4096 May 17 15:50 ../
    drwxr-xr-x 2 rescuebi rescuebi 4096 May 17 15:50 marten/
    All the Best,

    Arunlal Ashok,
    Linux Systems Engineer
    Acenet, Inc.
    https://www.ace-host.net/

    1.) You downloaded the plugin and then you added the script?
    2.) Can you login to your FTP and rename that plugin folder?
    3.) Then refresh the page.

    Only the BD plugin rename

    Thread Starter mbenatar

    (@mbenatar)

    Okay, for some strange reason I was able to get back on the website admin through Google and delete “My Custom Functions” plugin.

    So I am wondering why I had that issue? I want to try the process again but I am a bit concerned that the same thing will happen. I am pretty sure that I pasted the code correctly.

    mbenatar

    Thread Starter mbenatar

    (@mbenatar)

    I tried it again and pasted the code. Got the same error message and the same thing happened again. So I uninstalled the plugin.

    Yeah it’s hard for me to say without seeing what you’re doing exactly.

    Thread Starter mbenatar

    (@mbenatar)

    Can we talk privately?

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘WooCommerce, Zoom, PayPal’ is closed to new replies.