Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter fletsch

    (@fletsch)

    Hi and thanks a lot for the screenshot. Looks promising.

    Unfortunatelly displaying the estimate delivery date on the checkout page is not working correcctly. I’m using the basic woodmart theme. Here is what I found out:

    Delivery estimate shows correctly on the cart page (injected via wse_ship_est in wp_footer as <code class=””><style> + <code class=””>label::after), but on checkout the estimate never appears even though the shipping row HTML is identical (<code class=””>#shipping_method_0_… + <code class=””>label).

    Root cause

    Registration is done here:

    <code class=””>add_action( ‘woocommerce_init’, function() { if ( wse_is_path(‘/cart’) || wse_is_path(‘/checkout’) || … ) add_action( ‘wp_footer’, ‘wse_ship_est’ ); } );

    In <code class=””>wse_is_path():

    • For /cart, if <code class=””>is_cart() is not true yet, there is still a fallback that compares <code class=””>$_SERVER[‘REQUEST_URI’] to the cart page path (permalink path).
    • For /checkout, there is only <code class=””>is_checkout() — no URL fallback.

    woocommerce_init runs early (around <code class=””>init). On many setups <code class=””>is_checkout() is still false at that moment because the main query / template conditionals are not ready yet. So <code class=””>wse_is_path(‘/checkout’) returns false, wp_footer is never hooked, and no <code class=””><style> block is output on checkout — hence no <code class=””>::after content at all. Cart still works because of the cart URL fallback.

    Suggested fix (in the plugin)

    • Either register wse_ship_est on a later hook when conditionals are reliable, e.g. <code class=””>wp or template_redirect (and keep the same wse_is_path checks), or
    • Add a checkout URL path fallback for /checkout analogous to the cart block (compare current request path to the checkout page permalink path), or
    • Replace the early <code class=””>is_checkout() check with something that doesn’t depend on the main query that early.

    Workaround (for site owners until a release)

    Add to functions.php in the child theme:

    add_action(

    'wp',

    function () {

    if ( ! function_exists( 'wse_ship_est' ) || is_admin() ) {

    return;

    }

    if ( has_action( 'wp_footer', 'wse_ship_est' ) ) {

    return;

    }

    if ( function_exists( 'is_checkout' ) && is_checkout() ) {

    add_action( 'wp_footer', 'wse_ship_est', 10 );

    }

    },

    20

    );




    Thread Starter fletsch

    (@fletsch)

    Hi Hitendra

    Thanks for your answer. Just to clearify: I don’t need to add custom options to a sample. I just would like to add basic samples to the basket. But it is not working together with a extra product options plugin as it does not bypass those custom fields in the add to cart form. it tries to validate all the fields and as they are empty it can’t add the sample to the basekt.

    Best;
    Reto

    Thread Starter fletsch

    (@fletsch)

    Hi Takayuki

    Thanks for your answer. I use only the Woodmart Theme and around 63 plugins. See screenshot: https://www.dropbox.com/scl/fi/f6pkqt9slojmmv413n35s/Screenshot-2025-03-13-at-22-04-22-Plugins-WordPress.png?rlkey=meff28dtzigs65qdse94o84uy&e=2&st=xpl0meoj&dl=0

    Where you able to have a look on the site from the link I posted? What I’m wondering is, why there is no “display: none;” in the CSS. Is this normally added by JS or should it be part of a CSS file?

    I’ve seen that there are also other people posting this issue. Any idea where it might comes from?

    Best regards,
    Fletsch

    Thread Starter fletsch

    (@fletsch)

    Thanks for your answer but I must say this sounds like a unfair rule. As I posted the content and I‘m the autor of a post I should also be allowed to edit my written content. Such a rule doesn‘t fit to a open source community and nicely human behaviour. Can you please umark the post as solved and give me edit rights? I think SEO is a legal reason as we all know hoe important it is for every website. I don‘t want my customers who search for my company name to land on a page where I report errors. That looks hardly unprofessional and not trustworthy. I hope you can understand that.

    • This reply was modified 1 year, 6 months ago by fletsch.
    • This reply was modified 1 year, 6 months ago by fletsch.
    • This reply was modified 1 year, 6 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    Thanks! I wasn‘t sure where to place this request. But can you please also delete the URL? Or if not then replace it with a short url link? The forum post shows up in search engines related to my webshop and I don‘t want that. I usually use short URLs but missed it here. I‘m anyway wondering why I can‘t edit my own post anymore?

    Thanks in advance.

    Thread Starter fletsch

    (@fletsch)

    Another screenshot from the cron: https://nimb.ws/m6gBFq4

    Thread Starter fletsch

    (@fletsch)

    You can access the store with the password “materialist34”. It’s hidden as still in development.

    Thread Starter fletsch

    (@fletsch)

    Also after deleting it leaves folders behind like for example

    hummingbird-assets
    wphb-cache
    wphb-log

    Didn’t check the database… 😉

    • This reply was modified 2 years, 12 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    EDIT: works not in Safari, only in Firefox.

    Ok what’s also working is to the Option “Force Cache URLs” with the entry: ?filter_

    Then all the pages with filtered products are cached and load pretty fast when saved in cache. I’m just wondering if this will generate a too huge cache with around 10 options containing around 5-10 attributes? Could lead to thousands if not millions of possible combinations if I’m right.

    So I really would be very curious to hear your opinion on the best solution.

    Best regards,
    Fletsch

    • This reply was modified 2 years, 12 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    I tried a few options and the only one working so far is to exlude the URL from caching with the following entry: ?filter_

    See it live: https://t.ly/CsSW (I don’t want to show up my real URL here)

    “Do Not Cache Query Strings” was not possible as it is not possible to enter just a part of a string, right? Like for example *filter_*

    But now with this solution aboslutely nothing is cached. No CSS and JS minified or combined. Is there a solution to have at least a basic speed optimization? I also tried WP Rocket and Hummingbird for caching and in the end they are both faster, what surprises me. Both seem to ignore the filters for caching the html file but Humminbird still compresses CSS and JS.

    See the number of requests (Anfragen) and the file size at the bottom left: https://1drv.ms/i/s!AttD-ea4FT8mgT_7EDAkNVriu7vC?e=qYWqtR

    Thanks in advance for any help. I’d like to have this sorted out before I start importing products.

    Best regards,
    Fletsch

    • This reply was modified 2 years, 12 months ago by fletsch.
    • This reply was modified 2 years, 12 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    Hi qtwrk

    Thanks a lot for your reply. I turned off ajax and it’s working now with having/using the button in the filter section. I can reload the pages and also link to filtered products. And thei are cached, it shows “x-litespeed-cache: hit”

    But is there a solution to use the filters without the button, meaning with ajax, and also have the site(s) cached?

    Is this now a problem coming from the theme and should they improve their theme or is it coming from litespeed itself?

    Best regards,
    Fletsch

    • This reply was modified 2 years, 12 months ago by fletsch.
    Thread Starter fletsch

    (@fletsch)

    Hi Gilbert

    Thanks for your answer and the links! I can try it but honestly I think it is not related to my iPhone as I get around 20 emails a day and they all look fine except the ones coming from my woocommerce store.

    Best regards

    Thread Starter fletsch

    (@fletsch)

    Hi Gaurav

    Was a bit hard to find but it worked out now. Thanks a lot for your reply! Great Plugin!

    Best regards,

    Thread Starter fletsch

    (@fletsch)

    Hi

    Actually it is only working with:

    [mailpoet_form id=1] and [mailpoet_form id='1']

    Another problem I’m facing is, that the form editor creates inline css styles which overwrites the theme styles. Other people seem to have the same problem and it let’s the forms look ugly. Eventhough if I have selected to take over theme styles it doesn’t actually do it.

    https://mailpoet.canny.io/feature-requests/p/remove-inline-styles-from-forms
    https://wordpress.org/support/topic/problem-with-mailpoet-css-and-theme-css/
    https://wordpress.org/support/topic/inline-css-in-form-elements/

    Any solution for that?

    Thread Starter fletsch

    (@fletsch)

    Hi Ojoma

    Thanks a lot for your answer. That’s what I tried too but unfortunatelly I can’t see the Shortcod. It only shows a placeholder. See screenshot. Is this a bug in the plugin or the translation? Have made all updates from WooCommerce, WordPress and Plugins.

    https://nimb.ws/hat65w

    But good to know how the shortcode is structured/written so I should be able to insert it manually.

    • This reply was modified 3 years ago by fletsch.
Viewing 15 replies - 1 through 15 (of 22 total)