Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Mysql_zencart.sql modification

    Hello.
    I have patched and bug fixed zencart 1.38 and adding some modules. i need to add some sql commands that comes with some modules to mysql_zencart.sql so they can be added to database during zc installation.
    I have tried by adding those commands to the file , but installation zc installer seems to ignore them . any other way i can have those commands installs during zc installation ?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Mysql_zencart.sql modification

    Don't touch the master file.
    If you have extra SQL statements you want to run as part of zc_install, put them in the /zc_install/sql/plugins/ folder, and name them as "mysql_xxxxxx.sql". All files in that folder following that naming convention will be processed in alphabetical order after the main install script runs.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Mysql_zencart.sql modification

    excellent . thanks a lot

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Mysql_zencart.sql modification

    none of the sql file in plugins folder installs

  5. #5
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Mysql_zencart.sql modification

    sorry for a bump . but i tried almost anything i could possibly think of , and yet none of sql files are installing . any other suggestion ?

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Mysql_zencart.sql modification

    Hi Tony

    DrByte is right that changing the main file is unnecessary and to be avoided. Nevertheless, when you did so that should have worked. That it didn't, and neither did the files for extra sql, suggests that there's something wrong with the SQL itself. But you haven't told us anything about what you're trying to do, the SQL that you're using, or how you conclude that it's not working.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Mysql_zencart.sql modification

    i have fresh zc 1.38, I have added all bug fixes and patches .. also done all override . i have added few modules , some of those modules comes with sql file . what i am trying to do is to create a moded zencart so when i install zencart , i wont have to install all those modules and override and sql files over and over again . everything so far works fine except sql files in plugins folder are not installing . those sql files do add extra configuration values under configuration . once im done installing , i don't see those configuration in admin nor they are in Database . .

  8. #8
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Mysql_zencart.sql modification

    I don't know why it's not working for you. I use it every day without problems, so as kuroi said, perhaps your problem is with what you've put in the files, or with the names of the files themselves or the folder you've placed them in.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Mysql_zencart.sql modification

    Thanks DrByte and Kuroi for info . I did a test again with untouched zencart .
    for test i used install.sql file that comes with zen light box module . i renamed it to mysql_lightbox.sql, then moved the file to zc_install/ sql / plugins folder .

    i installed zencart . everything is fine in zen cart side but yet nothing from mysql_lightbox.sql has been added to the database.
    any other suggestions??

 

 

Similar Threads

  1. Replies: 2
    Last Post: 15 Aug 2011, 04:58 AM
  2. How do I run the stock_attribute.sql via Install SQL Patches in admin
    By vivaraquel in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Apr 2007, 01:55 AM
  3. mysql_zencart.sql problem
    By ionnnnutz in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 19 Nov 2006, 11:50 AM
  4. Admin modification vs. .php file modification??
    By recordshow in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Nov 2006, 05:00 AM

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