Show shipping class on product admin page

I'm developing a site for a client, and they want to be able to see the shipping classes assigned to all products on the Product Index page within WP-Admin. It would be idea to add it as a column so that they can see at-a-glance. Can anyone help please?
Category: Web

Too many datadabse connections - upper ceiling mysql

We run a high traffic blog with around 500 real-time users and 10000 posts. We are hosted by self on VPS - 16gb, 4 core with separate mysql DB server - 4gb, 2 core; both SSD. No problem with hosting server But the database server at times running out of connections, though we have more than sufficient 312 max cconnections ceiling. We don't have any stray plugins and our maximum execution time is around 5 minutes. Anyone have any idea …
Category: Web

Custom Plugin - Package and Deployment Solutions

We are a very small company working with a specific customer base. In this, we often have to create small WP plugins specific to the customer. Typically, we re-use our own basic folder structure and files (base php file that lays out some standard variables, assets folder structure for css and js files, installation/settings features templates, etc.). We don't currently use anything that is "industry standard" or that will package, process, combine or minify our files for deployment (css, scss, …
Category: Web

production site routes to staging site after cloning

Hello I am new to wordpress, our website was down (due to plugin update) I was not even able to access the admin panel due to this, so I went to the directory and copied from our staging directory (the only working directory) to the public_html directory (Production Directory). This did fix access to the website but now when I access the website the home page is referencing the correct directory (non staging) but when I navigate to any tabs …
Category: Web

Syncing production with staging

we have a staging server in order to test out plugins and roll out new features and also re designing sites. The issue is that the staging version of the site will be out of sync as soon as new content is done on live site, or a new image is uploaded. What is the best way to keep the staging version in sync with the live one, including all posts, images and plugins as well as the whole database …
Category: Web

Merging new theme and plugins from development site to production

I have a development site which uses a different theme to the live site as well as a few extra plugins. I would like to make the dev site live whilst keeping all of the posts and previous plugins belonging to the live site. I do also have additional taxonomies, categories and custom posts types in the dev site. Not sure if this complicates matters. Thanks
Category: Web

How best to keep my localhost on Http while my Remote production is on Https

I am using a plugin **Really Simple SSL** that configured to use SSL. And I use WP Migrate Pro to move my DB from local to remote. But I usually run into the problem of pulling the DB from productions to localhost during development, most of my links on the localhost are using https. I do not want to set SSL on my local development. Presently, I deactivate the plugin Really Simple SSL using `wp cli'. Next, I have to …
Category: Web

Wordpress & WooCommerce: Localhost, Staging and production environments and how to sync them without losing data

I'm working on my first WooCommerce site for an e-commerce shop I'll be launching hopefully in January (I should say that I've been working with Wordpress since the very beginning, so I'm not new to WP or PHP development) but I'm struggling with how to setup a good development/production environment. I've been searching for an answer to this but so far the closets I've come to an answer was that there is no "good way" to do it and require …
Category: Web

Ways of managing staging and production wordpress sites?

Ok, I've seen a lot of similar questions.. but they all either outdated or do not fall in in my problem. So the problem is: We have a website and its clone stage website. On that website, apart from me also works Content Manager. She manages content(banners, text, gallery and so on) When we need update website to new WP version or theme version or tweak/fix something we do it on our stage clone website. Once we are happy we …
Category: Web

How do I publish only one page to production after making changes on staging?

Is it possible to push only one view to production? For example. I made a change on view A a while back on staging and it's just been sitting in staging. Later on, I'm asked to make a change on view B. The catch is: I don't want the changes on view A to be live in production yet. I only want the changes in view B to be in production. Is this possible? (I'm using GoDaddy.com, if that matters). …
Category: Web

Wordpress Staging Site

Problem: I do not want to develop (new features) of a wordpress site on production. So I set up an staging server where the same installation of wordpress is running on. So while I develop on the staging server on new features, there is content added on production by some other users. Furthermore we use a page builder -> some design is also modified. (We also do some front-end work and using the page builder for some functionalities) This means, …
Category: Web

Is there a way to create custom product templates based on category on WooCommerce?

so i am building a woocommerce site for software and i ran into an issue. There are free software that should redirected to an external site to download it, but there are also software that are premium and cost money. So basically i want to have 2 product templates: a normal one with price, cart, etc... and another one that has a button (lets say download) that redirects to an external website, without the cart, price and so on. Is …
Category: Web

My products are showing "not in stock" and I don't know why

If I list the item as "out of stock" the label changes to red and says "OUT OF STOCK" on the product. If I set it as "in stock" the product says "Availability: not in Stock" I can even set a specific quantity and manage stockkeeping and it still says "Availability: not in Stock" I don't know what the difference between "not in stock" and "out of stock" is but the latter is bold, red and clearly a problem. The …
Category: Web

How to sync staging to production but keep plugin settings

Is there a way to sync my staging and production environments, but keep the settings for certain plugins? For example, I am using a plugin for the Google tag manager. Each environment has a different container id, set in the plugin settings, that I don't want to be synced. I understand that the plugin data might be saved in the wp_options table. I can't just skip syncing the table as there are parts of that table that do need to …
Category: Web

How to clean up the theme for production?

Is there some automated way to generate a dist/production version of the theme without all of the hidden .git, IDE directories and the config files, node_modules? WARNING: .babelrc .git .gitignore .idea .sass-cache .bin .npmignore .github .travis.yml .coveralls.yml .eslintrc .gitattributes .jshintrc .verb.md Hidden Files or Folders found. REQUIRED: Please remove any extraneous directories like .git or .svn from the ZIP file before uploading it.
Category: Web

get current product name in functions.php

i create a button in a current product page after woocommerce_single_product_summary i would to get information about the current product ( for example name and price) and through the button send an email for get information this is the code of my functions.php file: add_action( 'woocommerce_single_product_summary','content_after_addtocart_button' ); function content_after_addtocart_button() { echo '<div class="content-section"> <a href="mailto:[email protected]?&subject= Richiesta Informazioni&body= product name ??? product price ??? "> <input type="button" value="Richiedi Informazioni"/ ></a></div>'; } anyone can help me ?
Category: Web

Migrate Changes from a Staging Site to Production

Is there a tool that allows me to "record" changes to a staging site and later replay them on production? It is a common usecase for me to set up a staging site (Duplicator is great for that) and implement design changes (including menus, etc.) there for the customer to review. Those changes at some point need to go to production. Works well with files (plugins, themes), but not with the database. The production system is being used all the …
Category: Web

Database migration issues - Error #1046 No database selected

i need to get my clients website online and have been able to figure everything out except of course the most crucial part which is the database upload. i can't figure out what i'm doing wrong since every tutorial and forum i've been on has basically told me to do the same things and still i get errors. i'm missing a crucial point that must be assumed. the test i've made was to locally move my database by simply copying …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.