Month: November 2024

Remove network configuration

User version: '3.3' services: nginx: image: nginx:latest container_name: mynginx ports: – "5200:80" networks: – mynetwork volumes: – ./nginx:/etc/nginx/conf.d – ./applications/dndw-test:/var/www/dndw-test depends_on: – php php: build: context: ./php container_name: myphp volumes: – ./applications/dndw-test:/var/www/dndw-test expose: – "9000" working_dir: /var/www networks: – mynetwork mysqlc: image: mysql:8.0 container_name: my2mysql environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: site_db MYSQL_USER: user MYSQL_PASSWORD: userpassword volumes: […]

WP DB Connection Issue

User version: '3.3' services: nginx: image: nginx:latest container_name: other7-nginx ports: – "5500:80" networks: – other-7app-network volumes: – ./nginx:/etc/nginx/conf.d – ./applications/dndw-test:/var/www/dndw-test depends_on: – php php: build: context: ./php container_name: other-7php volumes: – ./applications/dndw-test:/var/www/dndw-test expose: – "9000" working_dir: /var/www networks: – other-7app-network ot7mysql2: image: mysql:8.0 container_name: other-72mysql environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: site_db MYSQL_USER: user MYSQL_PASSWORD: userpassword volumes: […]

WP DB connection issue

User version: '3.3' services: nginx: image: nginx:latest container_name: other7-nginx ports: – "5500:80" networks: – other-7app-network volumes: – ./nginx:/etc/nginx/conf.d – ./applications/dndw-test:/var/www/dndw-test depends_on: – php php: build: context: ./php container_name: other-7php volumes: – ./applications/dndw-test:/var/www/dndw-test expose: – "9000" working_dir: /var/www networks: – other-7app-network ot7mysql2: image: mysql:8.0 container_name: other-72mysql environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_DATABASE: site_db MYSQL_USER: user MYSQL_PASSWORD: userpassword volumes: […]

Remove orphaned Docker resources

User remove orphan docker Assistant To remove orphaned Docker resources, you can use the following steps and commands: — ### **1. Remove Orphaned Containers** Orphaned containers are usually stopped containers that aren't linked to active services. docker container prune This removes all stopped containers. When prompted, confirm with `y`. — ### **2. Remove Orphaned Images** […]

WooCommerce Product Search Autosuggest

User add auto suggestion to search box for woocomerce product jquery and php Assistant Adding an auto-suggestion feature to your WooCommerce product search box using jQuery and PHP involves these steps: ### 1. **Frontend: Add the Search Box** Ensure your search box has a unique ID or class for targeting with jQuery. <input type="text" id="product-search" […]

Add JS in Footer

User add js code in footeer elementor Assistant To add JavaScript code in the footer of an Elementor-based WordPress site, you can use one of the following methods: — ### **Method 1: Use Elementor Custom Code** 1. **Go to the WordPress Admin Dashboard.** 2. Navigate to **Elementor > Custom Code**. 3. Click **Add New** and […]

WP Staging Transfer

User As we already have updated version of WP and plugins so for time saving its better to Directly transfer WP from our staging server to suggested domain.In this we've to do minimal adjustment like changing url from db and other small stuff regarding mail etc. Correct above sentence Assistant Since we already have an […]

et_show_cart_total Usage

User et_show_cart_total Assistant The `et_show_cart_total` function or shortcode is often associated with themes like **Divi**, where it is used to display the cart total in a WooCommerce-integrated website. It allows for showing the total price of items currently in the shopping cart. ### Possible Use Cases – **Header/Menu:** Displaying the cart total in the navigation […]

WooCommerce cart guest issue

User Woocommerce cart icon at top header showing 0 even there is a item but when I passed query string in url then again this start working Assistant The issue you're experiencing with the WooCommerce cart icon showing "0" despite items being present in the cart is often caused by caching or JavaScript issues. Here's […]

Includes not working fix

User condproduct.includes(resourceid) not work if condproduct has just one element Assistant If `condproduct` is an array that contains just one element, and `condproduct.includes(resourceid)` is not working as expected, there are a few things you can check: ### 1. **Verify the Type of `condproduct`** – Ensure that `condproduct` is an **array** and not another data type […]