• kannyman

    (@ryankanwal)


    Hi

    I would love someone with a little more experience than myself help me to solve this issue!

    -Using the latest version of wordpress.
    -Using woo commerce.

    Problem

    When I click on the ‘add to cart’ button on a single product page, there is meant to be a new green tab that displays at the top of the page with a message that reads… ‘xxxx product has been succesfully added to your cart’.

    This message hardly ever displays on my single product pages!

    I have tested this issue on some different browsers and at various times the message may or may not display!

    The green tab/message always appears on the ‘my-cart’ pages but I really need this to message display without fail on the single product pages when a customer clicks ‘add to cart’.

    Here is a link to a product page, so anyone can see what I mean when they click the ‘add to cart’ button on my site.

    https://nourishfoods.co.uk/product/large-luxury-fruit-crate/

    Please could some diagnose what is going wrong and provide some clear instructions for resolving this as I am not an experienced developer.

    Just to say that I have already tried disabling many plugins to see if there is a clash and also removed some my custom CSS but for the life of me I can’t work this one out!

    Thanks in advance.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor royho

    (@royho)

    I would suggest you test it with a different theme. Report back.

    Thread Starter kannyman

    (@ryankanwal)

    Hi.

    Thanks for the tip but it is too late in the day for me to redesign this site around a new theme!

    Surely there is another way around this….

    Thanks for the quick response.

    vark

    (@vark)

    In proposing you test with another theme, Roy has suggested the best way to isolate the potential cause of the issue. If the issue is with your theme, the solution need not be to start afresh with another theme, but rather the repair of your existing theme.

    Thread Starter kannyman

    (@ryankanwal)

    Hi Vark…thanks for making this clear to me…

    Off the back of royho’s advice I did quickly try and load the site with a new theme but that seems to have bought a whole new set of issues!

    firstly I couldn’t even reach the relevant product pages because the new theme was formatted so differently and now I have gone back to the original theme (wootique) but some of my previous customizations seem to have changed (top/bottom menu fonts for example).

    I am really quite new to development and consequently don’t feel comfortable messing around with things too much.

    I can follow a clear set of instructions if someone can provide a solution

    sorry to be such a novice ! ??

    Thread Starter kannyman

    (@ryankanwal)

    What really baffles me about this issue is the fact that SOMETIMES the message displays and then other times it does not.

    Surely if it was a theme issue then it would never display at all??

    Perhaps that could help someone to isolate the issue.

    vark

    (@vark)

    A way to test might be as follows:
    (1) switch to a clean default theme like 2015
    (2) go into your wp-admin, go to Products and then click on a simple product’s ‘View’ option, which will take you directly to the product page in your front end.
    (3) then you can test and see if you get your ‘product added successfully’ message.
    (4) if you get the message successfully, you might need to hire someone to investigate the issue with your original theme.

    Thread Starter kannyman

    (@ryankanwal)

    Hi Vark.

    Thanks again.

    I tried what you suggested and YES…. the message displayed correctly when I ran the site through the WP 2015 theme!

    But then when I switched back to the wootique theme the message initially started displaying properly but soon vanished again and then started displaying properly!

    It doesn’t make any sense to me because sometimes the message displays and then sometimes it does not!

    I have tried viewing the site on various different browsers and on several different devices but there seems to be no correlation between when my site decides to display/hide this very important message.

    Big Sigh!!!

    Any further suggestions would be highly appreciated.

    Thanks in advance.

    vark

    (@vark)

    URL?

    Thread Starter kannyman

    (@ryankanwal)

    https://nourishfoods.co.uk

    there are only 4 products on the site at present so click through any of these to see a single product page…

    https://nourishfoods.co.uk/shop-offices/

    cheers

    Looks like you have Wootique 1.6.11 so consider updating to the latest 1.6.13.

    Your product pages are being cached, so suggest turning off your cache plugin and empty the cache as a test to see if the cache is doing this.

    Thread Starter kannyman

    (@ryankanwal)

    Hi Iorro

    Some more good ideas there!!

    I just updated the theme and have also removed the cache plugin but still the problem persists!

    Will admire anyone who can suss this one out!

    I’m still seeing WP Super Cache cached pages. I can get round the cache here by appending a random “?x=1” to the url. The cache sees this as a new, non-cached page, so the page is regenerated, and this time it comes complete with the missing messages. So suggest leaving the cache plugin deactivated and deleting cached pages, until the problem is fixed, in fact until the site is completely developed. You may need to put your product pages on the plugin’s list of pages not to be cached.

    I’ve had a look a your child-theme’s style.css and there is no template line. I would expect to see:
    Template: wootique
    up in the comments block at the top. That’s its not there makes me wonder how you have set this up. Have you used a complete copy of the theme? That’s not how it is supposed to work. See this page for how to setup a child theme:
    https://codex.www.ads-software.com/Child_Themes

    The template line links to the parent theme for all code files and initially a child theme directory has virtually nothing in it. Only custom functions and maybe custom templates appear in it as you build these up over time. This allows the parent theme to remain un-modified and it can be updated easily. Child themes will have their own settings and will not inherit these from the parent theme.

    Thread Starter kannyman

    (@ryankanwal)

    Mmmm!

    I think this thread has opened up a can of worms and exposed me as a bit of a self-taught rookie in the world of web development!

    1) I have not used a child theme (i know this is bad!). The wootique theme that I use has its own tab in the settings section where I can paste quick pieces of custom CSS without editing core files so this is why I didn’t think it was necessary to use a child theme .

    Is it too late for me to set up a child theme, considering this site is almost complete from my end?

    2) The fact that you are still getting cached pages is a mystery to me as I not only deactivated the plugin, but DELETED it along with all associated files!

    You mention removing/deleting cached products/pages but how can I do this if the plugin has now been removed?

    I think I am a little out of my depth here and need to recruit the services of someone with a little more experience!

    Does anyone fancy taking on this gig for a small fee? ??

    You need to have a child theme so your customisations, other than custom css, won’t be lost when you update the main theme. You may be able to get by for a while but eventually the old theme becomes out-of-sync with WordPress and plugins and you’ll get problems. If you have to update you will lose customisations.

    Load and activate the cache plugin again and look for the “delete cached pages” option. There should also be a “disable caching” setting so you can leave the plugin activated but not working for now.

    You may not seek paid help on the forum, but you can do so here:
    https://jobs.wordpress.net/
    However you’ve got a long way already. If you have someone do the rest for you, you may not be able to maintain the site in the long term.

    Thread Starter kannyman

    (@ryankanwal)

    Hi Iorro.

    You’re right it has been quite fun learning this new world of WP and I do like the idea of problem solving myself and maintaining control of my website.

    I will follow your advice and reactivate the plugin shortly.

    I will also setup a child theme on this site (assuming I can still do this half way through developing my site).

    I still have the age old problem though of that annoying message not displaying on product pages!!!

    This thread doesn’t get marked as ‘solved’ until I have nailed it ??

    Thanks for your help so far and long live the WP community!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘"successfully added to cart" message not displaying on single product pages’ is closed to new replies.