Batch change zen cart url digital ID and batch product add money

Source: Internet
Author: User
Tags zen cart

 

For example, zen cart a product page ID is www.2cto.com/xxxx-p-20.html

Run the following command to add the following number plus 1000.

Xxxx-p-1020.html/www.2cto.com

In this way, we can solve one of the website similarity. The comparison of the same set of data is required.

Execute commands in the background

UPDATE 'products' SET 'products _ id' = 'products _ id' + 1000;

UPDATE 'products _ description' SET 'products _ id' = 'products _ id' + 1000;

 

UPDATE 'products _ to_categories 'set 'products _ id' = 'products _ id' + 1000;

 

UPDATE 'products _ attributes 'set 'products _ id' = 'products _ id' + 1000;

 

UPDATE 'featured' SET 'products _ id' = 'products _ id' + 1000;

Execute them one by one

If the preceding command fails, change the command.

UPDATE 'products' SET 'products _ id' = 'products _ id' + 1000;

UPDATE 'optional any003 '. 'products _ description' SET 'products _ id' = 'products _ id' + 1000;

UPDATE 'optional any003 '. 'products _ to_categories 'set 'products _ id' = 'products _ id' + 1000;

UPDATE 'optional any003 '. 'products _ attributes' SET 'products _ id' = 'products _ id' + 1000;

UPDATE 'featured' SET 'products _ id' = 'products _ id' + 1000;

Tiffany003 is the database name, corresponding to your own Database Change

Add money to the product

UPDATE 'newall'. 'products' SET 'products _ price' = 'products _ price' + 125;

The following figure shows how much money is added.

Or deduct money

UPDATE 'newall'. 'products' SET 'products _ price' = 'products _ price'-125;

 

Author: Shine's holy heaven-Min Chen 〃

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.