• Resolved ibrahimoo

    (@ibrahimoo)


    Hi @gplsaver,

    In Normal checkout mode, when adding a product to quote list, “View Quote List” button is not displayed unless the page is reloaded. However, as it uses ajax, it’s expected to display the button without reload.

    Thank you in advance for consideration.
    Ibrahim

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter ibrahimoo

    (@ibrahimoo)

    Hi @gplsaver,

    with v1.8.179, “View List” button is always displayed, even before pressing “add to quote”.

    Thank you for your response.
    Ibrahim

    Thread Starter ibrahimoo

    (@ibrahimoo)

    Hi @gplsaver

    As mentioned earlier, “View List” button is always displayed, even before pressing “add to quote”.
    Moreover, with v1.8.181, “Add to cart” fires an alert message showing (1). Maybe you used this for testing purpose but foreget to remove it.

    Thank you for your response.
    Ibrahim

    Plugin Author Neah Plugins

    (@gplsaver)

    Thanks for the alert(1). it was left by mistake as you said. But it was not a test for this feature.

    As far as the other thing, we are having problem with this one, since it is not the standard method for WooCommerce. Different themes implement it differently. Some fire Ajax methods before or after adding to cart. We are still trying to figure out a way how to cover it.It is working for some people but not for others.

    We will figure it out.

    Plugin Author Neah Plugins

    (@gplsaver)

    Just to be clear, view list shows up if the the item is already in the Quote list. Is that what is happening? Is the item already in the list?

    Plugin Author Neah Plugins

    (@gplsaver)

    Try this:
    find file “plugins\woo-rfq-for-woocommerce\includes\classes\cart\gpls_woo_rfq_cart.php” and replace lines “118” through “154” with code below. Let me know if this works.

     <script type="application/javascript">
    
                    jQuery(".gpls_rfq_set").click(function (e) {
    
                        jQuery(window).ajaxComplete(function () {
                            var image_div;
    
                            <?php if ($normal_check == true && get_option('settings_gpls_woo_rfq_normal_checkout_show_prices', 'no') != 'yes'): ?>
                            jQuery(".gpls_rfq_set_div").find('.added_to_cart').hide();
                            jQuery(".gpls_rfq_set_div").find('.added_to_cart').attr('style','display: none !important');
                            <?php endif; ?>
    
                            var rfqcart_link = ".rfqcart-link";
                            jQuery(rfqcart_link).show();
                            jQuery("rfqcart_link").attr('style','display: block');
    
                            jQuery.ajax({
                                async: true,
                                type: 'GET',
                                url: '/?rfq_widget=0',
                                error: function (xhr, status, error) {
                                    console.log(error.Message);
                                },
                                success: function (msg_back) {
    
                                    // console.log(theContent);
                                    jQuery('.gpls_woo_rfq_request_mini_page').html(msg_back);
    
                                }
                            });
    
                        });
    
                    });
                </script>
    Thread Starter ibrahimoo

    (@ibrahimoo)

    Thank you so much. It works fine!

    Plugin Author Neah Plugins

    (@gplsaver)

    That is good. Glad it is working.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘View Quote List button is not displayed unless the page is reloaded’ is closed to new replies.