Query-1:
UPDATE
wp_wc_product_meta_lookup
SET
min_price =(min_price - min_price * .13)
WHERE 1;
Query-2;
UPDATE
wp_wc_product_meta_lookup
SET
max_price =(max_price - max_price * .13)
WHERE 1;
Query-1:
UPDATE
wp_wc_product_meta_lookup
SET
min_price =(min_price - min_price * .13)
WHERE 1;
Query-2;
UPDATE
wp_wc_product_meta_lookup
SET
max_price =(max_price - max_price * .13)
WHERE 1;
UPDATE `wp_posts` SET `post_status` = 'draft' WHERE `post_type` = 'product' AND `post_status` = 'publish'
PRODUCTNAME - Domain (Start Date - End Date)
e.g. Standard - abc.com (04/10/2010 - 03/10/2012)
Need to change it to the following:
PRODUCTNAME - Domain (Start Date - End Date)
PRODUCT DESCRIPTION
e.g. Shared Hosting - Standard - abc.com (04/10/2010 - 03/10/2012)
Method -1:
Place the following script at the top of your /templates/<templatename>/viewinvoice.tpl:
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.confirm=([0-9A-Za-z_]+)./\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
First install yum if not installed before : sudo yum install wget
Before the file to be downloaded it is needed to be share publicly.
Steps:
For small file run following command on your terminal:
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME
In the above command change the FILEID by above id extracted and rename FILENAME for your own simple use.
Large files
For large file run the following command with necessary changes in FILEID and FILENAME:
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
phpMyAdmin
portal{prefix}_posts
and run the SQL statement as shown.DELETE relations.*, taxes.*, terms.*
FROM metro4u_term_relationships AS relations
INNER JOIN metro4u_term_taxonomy AS taxes
ON relations.term_taxonomy_id=taxes.term_taxonomy_id
INNER JOIN metro4u_terms AS terms
ON taxes.term_id=terms.term_id
WHERE object_id IN (SELECT ID FROM metro4u_posts WHERE post_type IN ('product','product_variation'));
DELETE FROM metro4u_postmeta WHERE post_id IN (SELECT ID FROM metro4u_posts WHERE post_type IN ('product','product_variation'));
DELETE FROM metro4u_posts WHERE post_type IN ('product','product_variation');
Note: "metro4u" is a prefix. Set your Database Table prefix
The procedure to change the root user password on Ubuntu Linux:
Type the following command to become root user and issue passwd:
sudo -i
passwd
OR set a password for root user in a single command:
sudo passwd root
Test it your root password by typing the following command:
su -
=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...