WooCommerce shows two sets of all payment methods - php

After a long time I finally updated WooCommerce with the latest update.
Now, in the checkout, it shows two sets of all the available payment methods.
I have been looking at the file review_order.php in the woocommerce folder but I couldnt find a solution there.
Do any of you know what the error might be and where I should look for the bug?
I appreciate all the information you can give me!
FYI: I can´t contact WooThemes since the solution is bought from many years ago and I dont have the license.

I had the same problem. You need to update the template overwriting files in your theme.
My issue was that the template files in woocommerce/templates/checkout/review-order.php was different from the one that was overwriting it in my theme.
The theme I used had some pre-packaged templates and all I had to do was copy the code from the new WooCommerce version over to the theme.
It was clear when you look at the file header that there was updates. I was on 2.1.3 and the latest that comes with the plugin is 2.3.0.
WooCommerce warns you about out dated template files all the time... but the work involved updating them sucks.
Good Luck!

Related

How to add auto-update feature for WordPress plugin or theme

I want to add the auto-update feature to theme or plugins that I publish separately from the WordPress repository. Thanks if anyone can help.
I searched Google several times but did not find any results.
I think we need to write a script and put the updates in it and get the plugin updates from it.

Wordpress update 5.0.2 removed WPBakery plugin templates

I've come to this site after much research. After updating my wordpress site to 5.0.2 yesterday many different issues have risen on my site. I've been developing websites for the past six years and just recently (one week ago) moved to wordpress. I have been using this plugin known as WPBakery Page Builder to create my pages due to its ease and simplicity. My site has over 100 pages and the page builder really helps me with importing templates and different slides easily into multiple pages.
After updating Wordpress to the newest version, a new built-in page builder was added. This page builder is raw code and does not show any of my templates previously in WPBakery. As well as, it removed all my WPBakery templates. Every page now shows nothing in WPBakery and I'm trying to figure out how to restore all of this information.
I have tried restoring the older version of wordpress which did not work, currently I'm installing the latest back-up which was three days ago but its very outdated and is 5GB so is going to take all day. Other issues that have risen with this update include many icons disappearing (turned into blank squares) as well as a lot of random code has appeared throughout the site.
I have not touched the footer since creating the website and right after the wordpress update it turned to this:
new-footer
From this: old-footer
I understand how this site works and I probably won't receive any help but I have no where else to turn and if anyone can please help me with this I would greatly appreciate it.
Installing Classic Editor has fixed the issue! WPBakery templates are now back and the random code found throughout the website has disappeared.
Credit to #Dan W.

Woocommerce not showing any changes

I'm trying to edit the Woocommerce checkout page.
The file is located in
I did some changes in the form-checkout.php file but in my browser i get to see nothing at all!
I even opened it in different browsers and opened the website in incognito mode.
I deleted all the php in form-checkout.php to see if i could see any changes but nope. I'm wondering if this is the right file to edit.
Thanks in advance
That is not the way to make changes to any plugin.
* Never edit core plugin files. *
Changes will be lost on future updates.
Read the manual. You will find you will have to copy files to your themes folder.
It's ok but not the best practice to modify WooCommerce templates.
WooCommerce has a override template mechanism.
By doing so, your modifications will not be missing when you updating WooCommerce.
If you don't see any changes when you modifing the template file directly, your theme may have overridden WooCommerce templates.
You can check which template is overridden at wp-admin WooCommerce->System Status page. You can modify the files in your theme, or copy it to the child theme which is the better way.

Proper way to update WordPress plugin (for updates)

I am making a woocommerce website and I was wondering what is the best way to update plugins (details) and still be able to update the plugin.
For example, I have two plugins that I just want to change the content in them like the currencies in woocommerce writes د.ب which is in Arabic Bahraini Dinar and I wanted it to be BHD.
Also another example I wanted to change in the wc-vendor plugin the namings instead of calling them vendors I want to call them artists.
I been reading articles about the best methods to update a plugin but I am not sure if they are also valid if I just wanted to change the "Naming" not "functionality"
https://www.seedprod.com/customizing-wordpress-plugins/
Summary:
I appreciate if you can tell me how to change plugin content and still be able to update it.
Thanks!
If you're using plugins developed by others, you may have more problem again in the future if the plugins update. Ask the developer or create an issue regarding the problem. Unless you're writing it of your own, you can play the changes locally or create an staging environment. If sound no problem, that's the time you need to replace code in plugins directory.
I assume, upstream developers are not able or willing to provide hooks for your need.
If you really must modify a plugin, put the plugin source code in a version control system (Git, Mercurial, ...). Make a branch for your changes, and each time a new upstream version comes up, import the upstream version and forward merge your modifications.

Wordpress New Plugin Issues

I have created a wordpress plugin from scratch. When I check other plugins in Wordpress admin. If there is any update in Plugins installed page, I can see a message
Say, for e.g Contact Form - I am right now getting a message
There is a new version of Contact Form 7 available. View version 3.7.2 details or update now.
What will I have to do so that people come to know any new version of my plugin is available.
What will be case If the plugin is free and also incase it is paid.
One last question How do add the feature to check for wordpress compatibility of the plugin. Since I have programmed it to work on Wordpress version 3.8.1. How can I be sure that the plugin will also work on lower versions of wordpress 3.8.1. Is installing it on every wordpress version and testing the plugin the only way to know. Or is there any simple approach to know the plugin will be compatible.
Thanks in Advance.
At first, you have to develop the plugin by following the WordPress standard coding guide lines and then you have to submit the plugin to WordPress Plugin Directory and if your plugin get approved then you have to keep it in the WordPress plugin repository. There are several steps for doing this, so you should follow the steps, at first begin from Writing a Plugin.
You also have to be familiar with Subversion (SVN) and ael these takes quite a time to complete the complete process from developing to submitting till approval of your plugin. Also, remember that, the community/team who check plugins submitted by plugin authors are professionals and it could be possible that your plugin might be rejected if the plugin doesn't match the criterion of the standard WordPress plugin, such as licensing, coding style etc.
You may also check this link for useful resources about writing a plugin. It may sounds scary but it's not impossible and very easy, just follow the instructions and keep going on.
If your plugin finally get approved and saved in the plugin repository by you then every time you update your plugin source, it'll be visible in the admin panel of a user who is using your plugin but there are some process related with it, you should keep reading and you'll get the idea. It's not possible describe everything here, it's too broad. Everything you need about plugin development, the first place is the Codex to look information for.

Categories