WooCommerce Store Notice does not update with new text - woocommerce

I've inherited a WooCommerce Storefront and need to post a message with the Store Notice feature.
I have updated the text, enable it and publish.
I expect the new text to appear on the banner - in my case on top of the page - but right away the text reverts to an old message. When I go back to the settings page, that old text is in the text area so obviously it overwrote my newly inserted message.
I searched for the string in all the code and it's not hardcoded but I can't find from where it's fetching it.
The only way of making it change is by deleting all the text box and then a 'default' demo text appears in the store notice.
Any clue where is that text stored and why I can't update it with a new message?

A couple of ideas:
1) Are you sure you are not seeing a cache? That seems most likely. Try deactivating all caching plugins (WP Rocket, W3 Total Cache, Swift Performance etc), clearing all cache and viewing the website in Incognito mode / new browser.
2) This may be stored as a setting in the wp_options table. You could check that for the new/old string
3) Are you logged in as Admin? Perhaps you don't have permission to change that string?

Related

Removing Custom Domain in Github

I want to remove custom Domain from Github. Any help, please.
Actually I want get https://myaseen208.github.io/DiallelAnalysisR/ rather than http://www.myaseen208.com/DiallelAnalysisR/ as given the following picture.
As illustrated in isaacs/github issue 1213 (which shows a similar problem), you should have a CNAME file
But not in: github.com/MYaseen208/DiallelAnalysisR
In the repo github.com/myaseen208/myaseen208.github.io (same as in the issue 1213): this CNAME file, which does include:
www.myaseen208.com
Apparently your user's GitHub domain automatically comes from your {username}.github.io repo
Start by removing that file, and see if that changes anything (wait a bit, and clear your browser local cache)
I was having the same issue. I resolved it by emptying the custom domain field, then entering a space in the same field so that you can activate the save button (Note: the save button will not let you save if the field is empty).
After you hit save, your page will reload and you will be able to see this again
Delete the content of the text box and press “Save”
If you want your user name's GitHub domain back which automatically comes from your {username}.github.io repo then simply empty the custom domain input field and enter a space in the custom domain field in order to activate the save button as the save button will not let you save until the field is empty.
Hit save & your page will reload and you will see your static site live on your Github username domain.

Rename-ing some woocommerce fields

I have been having some hard times trying to configure my website.
I have been looking left and right on the internet for how can i rename certain fields on my webpage. I came to a point were i dint find any more snippets that i can use. If someone is kind enough to hekp me with the snippets for the bellow problems i would be extremly grateful :D
1) Login/ Registration form
i have renamed the Login and regitration form, but i cant rename or completly remove the recover password button ( i tried 4-5 snippetes so far and non worked)
2) On my Account page i did some editing with the gettext snipped, but i wasn't able to translate the following word "Logout" and "edit your password and account details"
3) i don't know how to translate the "search producs", the content of the box
4) i dont know how to rename the "apply coupon" button and the content of the box. For this one i used some snippets, but nothing happened :(
bellow, you can see my website
http://www.toner.eurofinconsulting.ro/wp/
Making adjustments like you have referenced are fairly simple to do in Woocommerce. Having said that, one of the first things to understand is how to correctly make changes to Woo template files. The easiest thing to do is to copy the entire directory /wp-content/plugins/woocommerce/templates to the root of your theme in a directory named YOUR_THEME/woocommerce. This now allows you to adjust any of the templates without touching files in the plugin directory (which you should NEVER do) while retaining the ability to update Woocommerce as updates are available.
Now, to make your changes:
Login/registration form - All changes you need can now be made in wp-content/themes/YOUR_THEME/woocommerce/my-account/form-login.php
Changes for this can be made in wp-content/themes/YOUR_THEME/woocommerce/my-account/my-account.php.
Changes to the search form - If this is using the Woocommerce search form, try making your changes in wp-content/themes/YOUR_THEME/woocommerce/product-searchform.php. If it is not there then try finding the search template used by your Wordpress theme.

Wordpress cache of comments

I have a plain php script that changes some fields on comment table. Fields like status or text of the comment.
Everything works well as long as I am logged as I admin: the comment are shown with the changes made in the plain php script. As a guest, no change is shown, it looks like there a cache page shown.
Question: is there a way I can invalidate cache problematically as long I make changes on mysql table? Do I have to change some specific fields on that table?

How to set woocommerce checkout form values to empty

I am using Woocommerce plugin for a WordPress site. But when as user I checkout I can see form populated with last user's details. How to set form entries to blank in Woocommerce. Please help.
Fields are pre-populated with last user's detail. Is there a way to avoid this?
Not sure with your exact issue , but there might be two possible situations in your case.
You might me logged in with same user and then trying to
checkout, as woo-commerce will fetch the details of currently active
user and auto fill it during checkout.
Fields might get auto fill from your browser cache , try to checkout using another browser or
by clearing cache , if its due to cache than that's not an issue at
all, as it your browser functionality which keep the data store
temporarily for your next usage.

Getting nodes to update with content type changes in Drupal 7

I have a local build of Drupal 7 with Xampp on windows. When I add a field to a node's content type, I see the field appear last, no matter what order I put the field in Content types > [myType] > Manage fields. I would tend to think this is a cache problem... but I've tried Configuration > Performance > Clear all caches, and the order of the fields does not update.
For example, I currently have an image field, a display title field, and a body field. In the Manage Fields lightbox, the order of the fields is:
Image
Display Title (New field, I'm not using the default title because Drupal always places is above the image instead of after)
Body
However, on the page the order is
Image
Body
Display Title
This is not just a trick caused by funky CSS—the PHP is actually creating the HTML in the wrong order.
I'm guessing that Drupal updates when you add a new field (which appears last by default when created). It does not update when fields are repositioned in Manage Fields, leaving the title last on the page, although it's second in Manage Fields.
And yes, I did save the configuration after repositioning the fields in Manage Fields. I've also cleared the browser cache, and restarted the browser.
How can I get Drupal to display the fields in the order they appear in Manage Fields?
P.S. I also downloaded Drush to see if it could clear the cache. The Drush command line works, but none of the tutorials I found actually explain how to hook Drush up to a local install, only how to SSH into remote server... I typed in 'drush cc' my drupal folder, but I don't know if Drush actually did anything since I don't know how to make drush connect to my localhost.
Not a complete answer, but 'Manage Display' does not, in fact, Manage the Display. It manages the order of the fields when editing a content type, but does not influence the order in which they are displayed.
So, I was looking at it again (figuring I would have to edit into printing individual fields in the content)... and I was looking at the Devel tab (Developer module), and clicked 'render.' Some how that fixed / updated the page, and the title jumped from the bottom to above the body text.
Still not sure exactly what controls the order that fields display in... Maybe I'm a complete n00b, but if the info's out there, it's hard to find.

Resources