Stefano
Forum Replies Created
-
Oh ok, thank you.
I will do some test.
Bye
Hi @m_uysl,
I’m using NGINX without Apache with standard Plesk config.
What do you mean with ‘?double-check that the paths for?
location /_static/
?are correct.’?I confirm, the problem is related to the object cache. Can’t you add a hook that empties the cache when you deactivate the plugin? It is really frustrating as a problem. Also, could you add a button that deactivates all the cache types in the plugin, but without deactivating the plugin? Or some sort of developing mode.
- This reply was modified 2 weeks, 1 day ago by Stefano.
Ok perfect. Thank you so much.
I noticed another problem with plugin.After disable it, When I reactive the plugin the notification appears activated, but actually remains deactivated. In order to reactivate it, I have to deactivate and reactivate another plugin, after which powered cache is also activated
I developed the block, in the code I use a relative path as per the wordpress documentation.
I wanted to benefit as much as possible by using the defer on each script… are there alternatives I can implement to not disable the defer?
To disable the defer only on bees what should I enter in the defer field?Hi @m_uysl, mmmh I didn’t understand exactly your question.
When I enable the plugin with all enabled such as page cache, file css and js optimization, all blocks that do a fetch request with WP REST API, use the url without /wp-json/ getting a 404 error.
Instead with plugin deactivated the fetch url is correct with /wp-json/ and all work fine.See following images
@m_uysl ok great! Thank you!
Hi @m_uysl it seems to work perfectly! Thanks!
Can I ask a last question?
I found another problem… often when I click ‘UPDATE ALL SETTINGS AND CLEAR ALL CACHE’ the settings are saved but the cache is not emptied, I have to force the emptying of the cache in the top bar of wordpress. Also could you add all the cache emptying buttons that are in the WP bar also in a section of the plugin page? Not everyone has the WP bar.
ThanksOk perferct, thank you!
But in this way I’ll serve a dynamic version for all page cause the cart icon is visible on all pages… or not?
This is the code that generates cart icon:
? ? function luxuryconcept_mini_cart_header() {
? ? ? ? if ( luxuryconcept_is_woocommerce_activated() ) {
? ? ? ? ? ? if ( ! is_cart() and ! is_checkout() ) {
? ? ? ? ? ? ? ? global $woocommerce;
? ? ? ? ? ? ? ? $count = $woocommerce->cart->cart_contents_count;
? ? ? ? ? ? ? ? ?>
? ? ? ? ? ? ? ? <ul class="header__mini_cart">
? ? ? ? ? ? ? ? ? ? <li class="btnOpenCart_container">
? ? ? ? ? ? ? ? ? ? ? ? <button aria-label="<?php esc_html_e( 'Open Cart', 'luxuryconcept' ) ?>" data-toggle="dropdown"
? ? ? ? ? ? ? ? ? ? ? ? ? ? aria-expanded="false" id="btnOpenCart" class="mini_cart_button">
? ? ? ? ? ? ? ? ? ? ? ? ? ? <svg class="at-icon icon-32 no-pointer-events" fill="none">
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <use href="#cart-outline"></use>
? ? ? ? ? ? ? ? ? ? ? ? ? ? </svg>
? ? ? ? ? ? ? ? ? ? ? ? </button>
? ? ? ? ? ? ? ? ? ? ? ? <span class="badge-cart-items-count"><?php echo esc_html( $count ); ?></span>
? ? ? ? ? ? ? ? ? ? </li>
? ? ? ? ? ? ? ? ? ? <?php if ( esc_attr( get_theme_mod( 'luxuryconcept_cart_type', LC_DEFAULT_CART_TYPE ) ) == 'classic' ) : ?>
? ? ? ? ? ? ? ? ? ? ? ? <li class="li__classic_cart">
? ? ? ? ? ? ? ? ? ? ? ? ? ? <div class="classic_shopping_cart top-chevron-border">
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <?php the_widget( 'WC_Widget_Cart', 'title=' ); ?>
? ? ? ? ? ? ? ? ? ? ? ? ? ? </div>
? ? ? ? ? ? ? ? ? ? ? ? </li>
? ? ? ? ? ? ? ? ? ? <?php endif; ?>
? ? ? ? ? ? ? ? </ul>
? ? ? ? ? ? ? ? <?php
? ? ? ? ? ? }
? ? ? ? }
? ? }where
<span class="badge-cart-items-count"><?php echo esc_html( $count ); ?></span>
is the issue.Hi @m_uysl,
here https://www.luxuryconcept.website/
If you add the product into the cart it works fine, the header cart icon is updated correctly, but when you change the page, it returns to 0 products.
Without cache it works fine.
Thanks
Hi @m_uysl thank you for your fast reply!
Ok for the moment I’ll disable the feature, do you know when will be an update for fix the issue?
What exactly does disabling this option change?Forum: Plugins
In reply to: [GenerateBlocks] Error on Admin Widgets PagePerfect, thank you.
I thought it was not a critical error but in development it is really annoying and could also conflict with additional plugins or blocks.Have a nice day
Stefano