WCFM Quick Edit Buttons – problems, help please

Solved23 replies2 participantsUpdated by Luca Rossi

  • Avatar: Auhouse
    WooPlay
    Participant

    Please stop deleting my comments on this issue and do not close the application. I did not close the application. This is the problem that I’m asking you to solve. I have purchased a theme and am eligible for support.
    This issue remains unresolved and seems to be ignored. https://www.8theme.com/topic/wcfm-quick-edit-buttons-not-working-help/#post-455205

    I am attaching a video
    In continuation of the problem, I will describe the situation again. The Pro Elements plugin blocks WCFM quick edit buttons on a separate product page and in archives. I switched to the standard Storefront and Twenty Two theme, the buttons are working correctly. In the XStore theme, the buttons only work if you deactivate the Pro Elements plugin.

    https://www.loom.com/share/2dfef5267b0743c9b6e4f6f081ea8198?sid=585f6819-553a-4fde-b619-794120b0e85a

    23 Answers

    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @Auhouse,

    We kindly request that you check the private content area at your earliest convenience.

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Auhouse
    WooPlay
    Participant

    Hello, the website is now available at, please check it out

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @Auhouse,

    In order to investigate the issue and determine how we can assist you further, we kindly request temporary FTP access to your server.

    To proceed, please provide the following FTP details:

    – FTP Host
    – FTP Username
    – FTP Password
    – FTP Port

    If you are unsure how to obtain or create these credentials, we recommend contacting your hosting provider. They should be able to guide you through the necessary steps.

    Thank you for your cooperation. We look forward to resolving the matter promptly.

    Best regards,
    The 8Theme Team

    Avatar: Auhouse
    WooPlay
    Participant

    Sending access rights

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @WooPlay,

    We would like to inform you that our team is currently looking into the matter and will get back to you shortly with an update.

    Best regards,
    The 8Theme Team

    Avatar: Auhouse
    WooPlay
    Participant

    Hello, I’m waiting for your solution. I want to mention in the same topic that the problem is the same with the Yandex Pay and Split plugin, as the widgets are not displayed under the product card in the archives. I have marked the widgets in the screenshots.

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @WooPlay,

    Could you kindly resend the username and password at your earliest convenience? It appears that the credentials may have been changed.

    Thank you in advance for your assistance.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Auhouse
    WooPlay
    Participant

    Come in, access is the same

    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @WooPlay Team,

    We would like to inform you that the issue still persists. Kindly review the matter once again at your earliest convenience.

    For your reference, please see the following screenshot:
    https://prnt.sc/FF5n1jytdSwO

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Avatar: Auhouse
    WooPlay
    Participant

    .I’m giving you new access, please check

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @WooPlay,

    Here is the hotfix to make the quick edit buttons show:

    1. Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    .etheme-product-grid-item {
        position: relative;
    }
    .etheme-product-grid-item .etheme-product-grid-content {
        position: static;
    }
    
    .etheme-product-grid-item .etheme-product-grid-content .wcfm_buttons {
        top: 0;
        left: 0;
    }
    

    2. Please add the following code under functions.php file locates in your child theme:

    
    add_action('before_etheme_product_grid_list_product_element_title', 'n2t_wcfm_product_manage');
    function n2t_wcfm_product_manage() {
        global $WCFM, $post, $woocommerce_loop;
    
        if (!$post || !is_object($post)) return;
    
        if (class_exists('WCMp')) {
            global $WCMp;
            if ($WCMp) {
                remove_action('woocommerce_before_shop_loop_item', array($WCMp->product, 'forntend_product_edit'), 5);
                remove_action('woocommerce_before_single_product_summary', array($WCMp->product, 'forntend_product_edit'), 5);
            }
        }
    
        if (!is_user_logged_in()) return;
        if (!apply_filters('wcfm_is_allow_catalog_product_manage', true)) return;
        $user = wp_get_current_user();
        $allowed_roles = apply_filters('wcfm_allwoed_user_roles',  array('administrator', 'shop_manager'));
        if (!array_intersect($allowed_roles, (array) $user->roles))  return;
    
        $current_user = apply_filters('wcfm_current_vendor_id', get_current_user_id());
        if (wcfm_is_vendor() && ($current_user != $post->post_author)) return;
    
        $pro_id = $post->ID;
        $_product = wc_get_product($pro_id);
    
        ?>
        <div class="wcfm_buttons">
            <?php do_action('wcfm_product_manage', $pro_id, $_product); ?>
            <?php if (apply_filters('wcfm_is_allow_edit_products', true) && apply_filters('wcfm_is_allow_edit_specific_products', true, $pro_id)) { ?>
                <a class="wcfm_button" href="<?php echo esc_url(get_wcfm_edit_product_url($pro_id, $_product)); ?>"> <span class="wcfmfa fa-edit text_tip" data-tip="<?php echo esc_html__('Edit', 'wc-frontend-manager'); ?>"></span> </a>
            <?php } ?>
            <?php if (apply_filters('wcfm_is_allow_delete_products', true) && apply_filters('wcfm_is_allow_delete_specific_products', true, $pro_id)) { ?>
                <span class="wcfm_button_separator">|</span>
                <a class="wcfm_button wcfm_delete_product" href="#" data-proid="<?php echo esc_attr($pro_id); ?>"><span class="wcfmfa fa-trash-alt text_tip" data-tip="<?php echo esc_html__('Delete', 'wc-frontend-manager'); ?>"></span> </a>
            <?php } ?>
        </div>
        <?php
    
    }
    

    3. For Yandex Pay and Split plugin, please contact to the plugin’s author and ask which hooks they use on product archive page so our theme will support to show them.

    Hope it helps!

    Avatar: Auhouse
    WooPlay
    Participant

    1. The buttons have appeared… but the first quick edit button doesn’t work, and when I click it, the page scrolls up instead of displaying a pop-up window
    2. On the individual product page, these buttons should also be displayed and functional.. they are missing

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff

    Hello @WooPlay,

    We would like to inform you that we have updated the custom codes so that the quick edit buttons are now also displayed on the single product page.

    Please note that when you click on the edit button, you will be redirected to the frontend product editor page:
    https://domain.com/store-manager/products-manage/852/

    Best regards,
    The 8Theme Team

    Avatar: Auhouse
    WooPlay
    Participant

    On the main page, the first quick edit button doesn’t work in the slides, and when I click on it, the page scrolls up instead of displaying the “Watch Video” pop-up window.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @WooPlay,

    Please also add this custom CSS code:

    
    .etheme-product-grid-item .etheme-product-grid-content .wcfm_buttons {
        z-index: 99999;
    }
    

    Hope it helps!

    Avatar: Auhouse
    WooPlay
    Participant

    It didn’t work for me, and when I clicked the quick edit button, the page continued to scroll up…

    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @WooPlay,

    Please try adding this custom code under functions.php file locates in your child theme:

    
    add_action('wp_footer', 'n2t_wp_footer', 100);
    function n2t_wp_footer(){
        ?>
        <script>
            jQuery(document).ready(function(){
                setTimeout(intiateWCFMuQuickEdit, 2000);
            });
        </script>
        <?php
    }
    

    Hope it helps!

    Avatar: Auhouse
    WooPlay
    Participant

    On the page https://wooplay.ru/shop/page/2/# after clicking the “Load More” button, the page continues to scroll up. The code only works for the carousel on the main page

    Avatar: Justin
    Luca Rossi
    Support staff

    Hello @WooPlay,

    We have made some adjustments to the custom JavaScript code.
    Could you kindly review it again at your convenience?

    Please note that any further customization requests may fall outside the scope of the standard support services we provide.

    Thank you for your understanding.

    Best regards,
    The 8Theme Team

    Avatar: Auhouse
    WooPlay
    Participant

    Hello, can I see right now what needs to be done?

    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @WooPlay,

    Kindly click the “Load More” button on the shop page and then try using the quick edit buttons again.

    Best regards,
    The 8Theme Team

    Avatar: Auhouse
    WooPlay
    Participant

    It’s working, thanks! =)

    Avatar: Justin
    Luca Rossi
    Support staff

    Hello @WooPlay,

    If you require any further assistance, please create a new topic.

    Thank you.

    Best regards,
    8Theme Team

The issue related to '‘WCFM Quick Edit Buttons – problems, help please’' has been successfully resolved, and the topic is now closed for further responses