Forum Replies Created

Viewing 15 replies - 31 through 45 (of 45 total)
  • Thread Starter frischi

    (@frischi)

    Figured out the problem:

    If in Elementor settings for the cart icon animation is enabled, it needs the “AuxCartProgressAnimationDone” event to be fired for updating the icon. But it never fires.

    In this code you can see it:

    if ( hasAnimation ) {
                                    $cartBoxEl.on('AuxCartProgressAnimationDone', function(e) {
                                        $cartBoxEl.find('.aux-card-dropdown').html( response.data.items );
                                        $cartBoxEl.find('.aux-shopping-basket').html( response.data.total );
                                        $cartBoxEl.trigger('AuxCartUpdated');
                                    });
                                } else {
                                    $cartBoxEl.find('.aux-card-dropdown').html( response.data.items );
                                    $cartBoxEl.find('.aux-shopping-basket').html( response.data.total );
                                    $cartBoxEl.trigger('AuxCartUpdated');
                                }

    So I disbaled the animation and it works now.

    Thread Starter frischi

    (@frischi)

    Ok, thanks.

    I had the ultimate member plugin installed and tried to give a role created by ultimate member the ability to delete own files.

    This didn`t work. But if I take a role created by PublishPress Capabilities it works.

    Thanks a lot!

    Thread Starter frischi

    (@frischi)

    Ok, thanks.
    The problem with the plugin is, that you have to enable “edit_post” capability to give the user the ability to create products. So the user has also the rights to change other posts as product.

    Thread Starter frischi

    (@frischi)

    Thanks for your reply.
    The problem is, that I want a user give the capability to create products, But NOT the capabiltiy to change woocommerce settings.

    In the docs linked by you the following is written:

    “manage_woocommerce: Gives shop managers the option to manage all settings within WooCommerce, and create/edit products.”

    So is there no other way to omit the ability to change woocommerce settings, than to directly change the woocommerce code?

    Or is it possible with a certain combination of certain capabilities?

    Or is there a hook where I could intervene?

    Thread Starter frischi

    (@frischi)

    Unfortunately this was the guide I followed. And nothing changes after checking the boxes for media. It is not possible to delete media files for the role. Neither its own nor from the others.

    These are my settings:

    Jfwwsp.jpg

    • This reply was modified 4 years, 8 months ago by frischi.
    Thread Starter frischi

    (@frischi)

    Ok, thanks very much for the information. I think I will try try to set the “allow override” option. If this results in too much errors, I will add the information for the user to the checkout page.

    Thread Starter frischi

    (@frischi)

    Thanx very much, I switched to “Sell to all countries” and it works now. Before the changes I had only germany. And all arrays were empty. Also the german one.

    Hey thanx, I found the bug.

    My theme destroyes the classes of the a element in the menu.

    Woocommerce try to replace the content of an a.wpmenucart-contents but cannot find it.

    Adding the class will fix the problem =)

    • This reply was modified 6 years, 6 months ago by frischi.

    @pomegranate

    I try to find out the problem with my theme and the ajax refresh of the menu icon. But I can`t found the place in your code, where javascript refreshes the link in the menu, if the cart has updated. I found it for the custom ajax of menu cart plugin. But where can I found it, if the custom ajax is disabled. With disabled custom ajax the ajax refresh works in all themes except mine.

    Is it javascript from woocommerce? But how do they know which html node they have to refresh?

    I found the filter_nav_menus() function which uses add_filter( ‘wp_nav_menu_’ . $this->options[‘menu_slugs’][1] . ‘_items’, array( &$this, ‘add_itemcart_to_menu’ ) , 10, 2 );

    But this is only for a complete refresh of the site, isn′t it?

    Ok, I tried it out with twentysixteen and twentyseventeen in shop page. The ajax is working there if the custom ajax is off and the woocommerce ajax is on. So thanx for yout help and I will try my luck at the theme developer.

    Ok, I tried the Sidebar-widget and it works perfectly with or without the custom ajax even if I`m logged or logged in.

    Something else is never working in the menu cart icon: When I delete some articles in the cart or change the amount of the articles, nothing happens in the cart icon.

    Hmmm… What for a timeout do you mean?

    In the networktools of firefox I can see the post request to the “https://elkantera.com/?wc-ajax=add_to_cart” page, and the response takes round about 600 ms and I get the json Object as response.

    Or do you mean something else?
    Or maybe you was a little but unlucky and the server was really slow at your try.

    That means, I get the Json oject with the values for the menu cart Icon, (the ajax works?), but the menu cart icon don`t refreshes?

    Sorry, for my hunderd questions. But I try to understand, because I cann ask at the woocommerce Foum the right question. =)

    • This reply was modified 6 years, 6 months ago by frischi.
    • This reply was modified 6 years, 6 months ago by frischi.
    • This reply was modified 6 years, 6 months ago by frischi.
    • This reply was modified 6 years, 6 months ago by frischi.

    @ewout
    Unfortanetly its completly not working now, if I disable the ajax checkbox. Its disabled now. You can see, that nothing happens.

    • This reply was modified 6 years, 6 months ago by frischi.
    • This reply was modified 6 years, 6 months ago by frischi.

    @ Ewout

    Thanx for the fast try to fix it.
    Unfortanetly it`s still not working.

    You can see the problem here:

    https://elkantera.com

    I have the cart icon allways shown.

    I hope you can fix it.

    I have the same problem.

    If I`m not logged in (as guest) the number is not updating when adding an article to the cart. But the article is in the cart.

    This problem occurs only when I′m logged out and when it`s the first time adding some article to the cart. After refreshing the site the number in the symbol in the menu is updated.
    At this moment it`s possible to add articles and the number is updating.
    Only first article if I`m logged out is not working. After refreshing th site it works now.

    These are my settings of the cart plugin:
    Always display cart, even if it’s empty Display shopping cart icon. checked
    Display cart contents in menu fly-out. checked
    What would you like to display in the menu? unchecked
    Select the alignment that looks best with your menu. Default Menu Alignment.
    Price to display: total
    Use custom AJAX checked
    Enable this option to use the custom AJAX / live update functions instead of the default ones from your shop plugin. Only use when you have issues with AJAX!

    I tried other settings but had no luck.

    Can you please take a look at this issue. Thanx

Viewing 15 replies - 31 through 45 (of 45 total)