Forum Replies Created

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Thanks. I thought I read, perhaps on your site, that the PRO version does protect the source code. Is this not the case?

    Thanks

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Thanks for your reply. We are planning to use both plugins.

    This may be a bit off-topic, but wanted to get some recommendations for plugs to create the mockups i.e. use a template that has a t-shirt for example, place logos on front/back.

    Any recommendations would be greatly appreciated.

    Thanks,

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Thanks Vladimir. All is working great. Very much appreciated all your help on this.

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Finding this a bit frustrating. Your advice is great but still can’t get it to work.

    So, I created a folder mu-plugins in wp-content. And added my php file to it with the code.

    Two things happen: First, every page I click on has the function code displayed across the top.

    Second, on checkout, I can enter the customer information, but cannot proceed past that. All the pay buttons are blanked out.

    Do you know of a step-by-step process I can follow.

    Thanks,

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Thank you Vladimir. Can you tell me how I set the php file as a Must Use.

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Doesn’t seem to be working. Here is what I have:

    function change_role_on_purchase( $order_id ) {

    $order = new WC_Order( $order_id );
    $items = $order->get_items();

    foreach ( $items as $item ) {
    $product_name = $item[‘name’];
    $product_id = $item[‘product_id’];
    $product_variation_id = $item[‘variation_id’];

    if ( $order->user_id > 0 && $product_id == ‘3782’ ) {
    update_user_meta( $order->user_id, ‘customer’, 1 );
    $user = new WP_User( $order->user_id );

    // Remove role
    $user->remove_role( ‘customer’ );

    // Add role
    $user->add_role( ‘customer, roadmap’ );
    }
    }
    }

    add_action( ‘woocommerce_order_status_completed’, ‘change_role_on_purchase’ );

    I am putting the php file in the wp_includes folder. Does the file need to go into a sub-folder?

    When the order is processed, it goes to “On Hold” and then I have to change it manually to completed. Not sure if this is the issue or not.

    Any comments?

    Thanks

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Thanks earth_human. Looks promising and will try it.

    Did you confirm where the code is entered i.e. wc-user-functions

    And, if woocommerce updates their plugin, does this mean that this code would have to be re-added after update. Not quite sure how that would work.

    Thanks,

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    There are two parts to this. The code directly below is displayed on the site for the user to input their information, and to upload the files to WeTransfer. The form is using Contact -7 and is made in the Form section.

    From: [your-name] <[your-email]>
    Subject: [your-subject]

    Video submission:
    From: [your-name]
    Email: [your-email]
    Subject: [your-subject]

    This is the link to retrieve and download the video file:

    [wt_embed_output]

    Once the user submits their information, we wanted to be able to have an email to us with their form information, but also with the link for us to retrieve their WeTransfer file.

    In the Mail section of the Contact 7 form, added this information:

    From: [your-name] <[your-email]>
    Subject: [your-subject]

    Video submission:
    From: [your-name]
    Email: [your-email]
    Subject: [your-subject]

    This is the link to retrieve and download the video file:

    [wt_embed_output]

    ** The wt embed output link above is generated by WeTransfer ***

    Hope that helps. Works great and is fast when you need to get a file from a user without having to go through regular email.

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Well, it’s AWS. The largest out there. You think they could get it right.

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Thanks for the reply. AWS shows that the server is working, but clearly it is not.

    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    Figured it out.

    • This reply was modified 5 years, 7 months ago by webmasterpbtv.
    Thread Starter webmasterpbtv

    (@webmasterpbtv)

    We are having an issue with Contact Form 7 and your post above is of help. We do however have an issue and wanted to find out if you can comment on it.

    We use Contact Form 7 as displayed below for a user to input their name, etc and to upload a video file to WeTransfer. We have tested it and it works great, except for one thing. We would like to have the reply file link included in the email sent to us so that we can easily click on the file in order to download it.

    Here is the code we are using. We have deleted the key for privacy purposes. The field we want to include in the email is: wt_embed_output

    Any recommendations would be greatly appreciated.

    Thanks

    /*<label> Your Name (required)
    [text* your-name] </label>

    <label> Your Email (required)
    [email* your-email] </label>

    <label> Subject
    [text your-subject] </label>

    <label> Your Message
    [textarea your-message] </label>

    <label> Upload Video File

    <div data-widget-host=”habitat” id=”wt_embed”>
    <script type=”text/props”>
    {
    “wtEmbedKey”: “deleted for privacy”,
    “wtEmbedOutput”: “.wt_embed_output”,
    “wtEmbedLanguage”: “en”
    }
    </script>
    </div>
    <script async src=”https://prod-embed-cdn.wetransfer.net/v1/latest.js”></script&gt;
    <!–
    The next input element will hold the transfer link. For testing purposes, you
    could change the type attribute to “text”, instead of “hidden”.
    –>
    <input type=”hidden” name=”wt_embed_output” class=”wt_embed_output” />
    </label>

    [recaptcha id:contact-us-form-7 theme:dark]

    [submit “Send”]
    */

Viewing 12 replies - 16 through 27 (of 27 total)