Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2015
    Location
    NY not the city
    Posts
    9
    Plugin Contributions
    0

    Default running SQL scrpt every day

    is there a way to run multiple copies of the same basic script but set to different categories every day so that it will update all the tax information for new products as they come in? this is a couple of copies of the script I want to run not all of them.

    Code:
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 26;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 103;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 92;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 162;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 159;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 132;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 9;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 200;
    UPDATE products SET products_tax_class_id = 7 WHERE master_categories_id = 202;

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: running SQL scrpt every day

    Nothing is built in. You'd need to write your own script and run it using cron.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Aug 2015
    Location
    NY not the city
    Posts
    9
    Plugin Contributions
    0

    Default Re: running SQL scrpt every day

    Ok so if that won't really work will creating more that 1 general product type assigning the tax class I want as default and then assigning the products to the different categories or subcategories work?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: running SQL scrpt every day

    Ok so if that won't really work
    It will work - just write your script and run it as a "cron job" with your host
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: running SQL scrpt every day

    Another option: look at includes/init_includes/init_special_funcs.php to see how they do the specials updates.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v139h Please help - Reloading website every day .
    By dmagic in forum General Questions
    Replies: 17
    Last Post: 23 Mar 2014, 07:35 AM
  2. Every day, more questions....
    By ex.wear in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Apr 2008, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg