Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

l.gan

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 403 total)
  • Author
    Posts
  • in reply to: manage the emails when the order status changes #196615
    l.gan
    Participant

    check your spam please, my answer seems to be there

    in reply to: manage the emails when the order status changes #196551
    l.gan
    Participant
    This reply has been marked as private.
    in reply to: manage the emails when the order status changes #196481
    l.gan
    Participant

    Sangeeta Hello,

    Yes, I saw how it should work.

    1. This is really very cool, please tell me, I created my email layout, but in the child folder along the path ../woodmart-child/MultiVendorX/templates/woocommerce/emails/email-order-details.php does not respond to changes. Editing is only visible in the plugin’s parent folder. Please tell me how can I correctly put my modified file in a child theme?

    2. The same goes for the trash file. I tried to override it, due to the fact that my Woodmart theme breaks the code if you enable the excellent function “add_filter(‘mvx_display_multiple_vendor_notice_at_cart_chekout_page’, ‘__return_false’);” . (please see photo).
    The bottom line is that if there is 1 vendor in the cart, everything is ok.
    If there is 2 vendors, a breakdown occurs.

    Perhaps I could, in theory, try to override the cart file and merge the settings, but the changes also do not appear in the child theme to override ../public_html/wp-content/themes/woodmart-child/woocommerce/cart/cart.php. Editing is only visible in the plugin’s parent folder. Can you please tell me which path to the file should be correct?

    3. Is there information on custom order statuses and duplication cancellation?

    in reply to: manage the emails when the order status changes #196446
    l.gan
    Participant

    Please also check the “Show subborder number in email” function. It is enabled in the settings, but is not displayed in the email.

    in reply to: manage the emails when the order status changes #196445
    l.gan
    Participant
    This reply has been marked as private.
    in reply to: manage the emails when the order status changes #196438
    l.gan
    Participant

    Sangita, thank you for your answer and help, unfortunately it doesn’t work.
    As before, both the parent and suborder emails arrive.
    I tried both ‘woocommerce_email_recipient_wc-readytocollect’ and ‘woocommerce_email_recipient_readytocollect’

    in reply to: manage the emails when the order status changes #196392
    l.gan
    Participant

    Thank you very much for your answer, it really works.

    Please tell me, I still have a custom status, with which I add my custom status. There is also an event that we send by email to the client’s email. Everything works, but 2 emails are sent. (For parent order and for suborder).

    Please tell me how to correct this code so that it only sends to the suborder?

    Perhaps there is an option to disable synchronization of the parent order with the suborder, only for a certain order status? For example, in my case: for custom order status ‘readytocollect’?
    I tried

    add_filter( ‘woocommerce_email_recipient_customer_readytocollect_order’, ‘disable_email_for_parent_order’, 10,3 );
    function disable_email_for_parent_order( $recipient, $order, $object ){
    if( wp_get_post_parent_id( $order->get_id() ) ){
    return $recipient;
    } else{
    return;
    }
    }

    But it didn’t help me. As before, 2 emails are sent for the parent order and for the suborder.

    Please help me, below is my code for adding custom status.

    // Enable custom statuses for WooCommerce Orders
    add_action(‘init’, ‘register_custom_order_statuses’);
    function register_custom_order_statuses() {
    register_post_status(‘wc-readytocollect’, array(
    ‘label’ => __( ‘The order is being collected’, ‘woocommerce’ ),
    ‘public’ => true,
    ‘exclude_from_search’ => false,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop(‘The order is being collected <span class=”count”>(%s)</span>’, ‘The order is being collected<span class=”count”>(%s)</span>’)
    ));
    }

    // Add a custom order status to list of WC Order statuses
    add_filter(‘wc_order_statuses’, ‘add_custom_order_statuses’);
    function add_custom_order_statuses($order_statuses) {
    $new_order_statuses = array();
    // add new order status before processing
    foreach ($order_statuses as $key => $status) {
    $new_order_statuses[$key] = $status;
    if (‘wc-processing’ === $key) {
    $new_order_statuses[‘wc-readytocollect’] = __(‘The order is being collected’, ‘woocommerce’ );
    }
    }
    return $new_order_statuses;
    }

    // event for sending email
    add_action(‘woocommerce_order_status_changed’, ‘my_notification_readytocollect’);
    function my_notification_readytocollect ($order_id) {
    global $woocommerce;
    $order = new WC_Order( $order_id );
    if($order->status === ‘readytocollect’ ) {
    //HERE IS THE ISSUE
    $order->get_order_number();
    // Create a mailer
    $mailer = $woocommerce->mailer();
    $message_body = ”
    <html>
    <head>
    <style>
    .h1 {
    max-width: 620px;
    font-family: ‘Roboto’,Helvetica,Arial,sans-serif;
    }
    </style>
    </head>
    <body>
    <h1>The order is being collected</h1>
    <h2></h2>
    </body>
    </html> “;
    $message = $mailer->wrap_message(
    // Message head and message body.
    sprintf( __( ‘The order is being collected’ ), $order->get_order_number() ), $message_body );
    // Send email
    $mailer->send( $order->billing_email, sprintf( __( ‘The order is being collected’ ), $order->get_order_number() ), $message );
    }
    }

    in reply to: Video player on vendor page + mobile version #195641
    l.gan
    Participant

    Thank you team for your time and help.
    I will wait for updates

    in reply to: Video player on vendor page + mobile version #195596
    l.gan
    Participant

    1. Video for a merchant store page: For example, setting the page width to 1500 pixels will cause the video to not fit the width. The black lining is visible. Can you please tell me how to display the video in full width?
    >>We have added a youtube video in the store banner without changing the set dimensions and there is no black lining visible. Kindly check https://watch.screencastify.com/v/FSSdhAoc5u3nW5jMwCh9.

    Thanks for checking this out on your end. I think this is due to the fact that you are using the StoreFront theme. Indeed, when using the StoreFront theme, there is no problem with the black sides of the video. But if you use another theme that allows you to choose the width of the site display, as in my case I chose a width of 1500 pixels, it will turn out that the video is displayed in a banner of 1200 pixels in width, and the rest will be replaced by black sides.

    Please tell me if it is possible for you to change the width of the displayed embedded video to a width of 1600 pixels. Perhaps there is a code snippet for this?

    As far as I understand, now the setting for the video banner is 1200 pixels.

    Thanks a lot for the previous replies.

    in reply to: Video player on vendor page + mobile version #195540
    l.gan
    Participant
    This reply has been marked as private.
    in reply to: how can I upload files #195304
    l.gan
    Participant

    Thanks guys, my issue is resolved

    in reply to: how can I upload files #195206
    l.gan
    Participant
    This reply has been marked as private.
    in reply to: Question about coupons #194988
    l.gan
    Participant

    Ticket resolved

    in reply to: how can I upload files #194717
    l.gan
    Participant

    Thanks guys, I’ll wait for your reply

    in reply to: how can I upload files #194289
    l.gan
    Participant

    Okay, I understand you. Can you help me to display only the contents of 1 field in the hook:

    I need to display previously uploaded certificates (which were uploaded at enrollment) in

    add_action( ‘mvx_after_shop_front’, ‘extra_setting_fields’ );
    function extra_setting_fields() {
    global $MVX;

    <div class=”panel panel-default panel-outer-heading”>
    <div class=”panel-heading d-flex”>
    <h3><?php _e(‘Quality certificates’, ‘multivendorx’); ?></h3>
    </div>
    <div class=”panel-body panel-content-padding form-horizontal”>
    <div class=”mvx_media_block”>
    /*how can I display previously uploaded certificates here?*/

    </div>
    </div>
    </div>

    <?php
    }

    I need the vendor to see what it has already downloaded before and what has already been verified.
    As far as I understand the data is stored in mvx_vendor_fields[4][], but I’m not sure…

    Because, at the beginning of the sale of a new product, it is his responsibility to send certificates for the new product and he must know exactly what he has already downloaded before.

    Please help me.

Viewing 15 posts - 61 through 75 (of 403 total)