Skip to content

Tag: how-to

Showing page 14 of 19

Set up VVV for VIP development

VIP recommends setting up a local development environment with the VIP Local Development Environment feature built into VIP-CLI. The steps outlined here are a separate and alternative method for setting up a local environment with Varying Vagrant Vagrants (VVV).

Create a VIP Local Development Environment

Create one or more local development environments, each with their own unique configurations, using the VIP Local Development Environment built into VIP-CLI.

Local and cloud development

Developing code, debugging code, and performing minor testing can be more convenient on a local or cloud development environment than on a non-production VIP Platform environment. 

Upgrade WooCommerce on VIP

Tthe WooCommerce plugin and related extensions should be maintained on the most up to date release version. This is essential for application security, and provides the benefits of bug fixes and performance improvements, as well as having access to new features. 

Enable WooCommerce Debug Logging

WooCommerce provides instructions to enable WooCommerce Debug Logging. However, on VIP the WC Logger must be configured to write to the WC_Log_Handler_DB handler to prevent debug logs from writing to the /tmp files directory. This WC Logger handler should be defined in the vip-config.php file as seen in this example:

Troubleshoot WooCommerce

When troubleshooting an issue with WooCommerce core or extensions, the first step is to reproduce the issue in a local development environment and a non-production environment. Set up the local development environment by following the outlined steps for provisioning the VIP application’s codebase and the VIP MU plugins.

Fix performance issues by filtering wp_unique_post_slug

The wp_unique_post_slug function makes it possible to avoid slug conflicts by appending an integer to the end of the newer slug, but this can become problematic because the function iterates through the database to find the next ID.

Customize search results

Customize the search results that are generated by Enterprise Search by configuring options such as sorting by date, relevancy, fuzziness, and more.