Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jun 2009
    Location
    Plymouth UK
    Posts
    43
    Plugin Contributions
    0

    Default 1.3.8 --> 1.3.8a Content overwritten?

    I have just upgraded from 1.3.8 --> 1.3.8a using 'Fantastico'. My test site has a number of modifications & around 15 items of stock, so I was not looking forward to this!

    Fortunately, all seems to have gone well.

    The only problem was that things I had previously deleted reappeared, i.e.:


    • 'Tagline Here'
    • 'Congratulations! you have installed...' &c
    • The home page content, advertising the Zen Cart Manual.


    Mine is a test site, & I still have the default text content in all of the pages.

    My question is - if I had entered custom text (for example in the home page) would the ZC advert have overwritten it - & would other pages been returned to the default text? What happened?

    Thanks for your attention

    Rgds.
    Mike
    My Zen Cart Site: www.shoppz.biz/lefays
    ZC 1.3.8a, Silverfish, Image Handler2, et al
    "You're only young once - but you can be immature for ever"

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    If you properly use the template/override system, your changes won't be lost in an upgrade/update. If you edit the files in the /classic or /template_default folders, then your changes are lost in an upgrade/update since those folders are included in with Zen Cart.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,739
    Plugin Contributions
    0

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    You should never use fantastico to upgrade a site. Site upgrades are better handled manually.
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Jun 2009
    Location
    Plymouth UK
    Posts
    43
    Plugin Contributions
    0

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    Quote Originally Posted by afo View Post
    If you properly use the template/override system, your changes won't be lost in an upgrade/update. If you edit the files in the /classic or /template_default folders, then your changes are lost in an upgrade/update since those folders are included in with Zen Cart.

    So that's why Image Handler 2 wasn't affected - because I merged IH files with a copy in my templates folder?

    To edit the text on the home page (both before & after the update) I just used admin -->tools --> define pages editor. How might I avoid losing future changes during the next update - I am going to be adding a lot of text including some very long product descriptions of >100 items.

    I think I will be doing upgrades manually in future.
    My Zen Cart Site: www.shoppz.biz/lefays
    ZC 1.3.8a, Silverfish, Image Handler2, et al
    "You're only young once - but you can be immature for ever"

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

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    As afo said earlier, the way to avoid losing your text-based changes is to make them to your own template, not "classic".
    Kuroi Web Design and Development | Twitter

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

  6. #6
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    Quote Originally Posted by mike_9000 View Post
    I am going to be adding a lot of text including some very long product descriptions of >100 items.
    Product descriptions are stored in the database so it's not necessary, nor possible, to "override" them. Instead the Zen Cart database upgrade system manages that.

    Quote Originally Posted by mike_9000 View Post
    How might I avoid losing future changes during the next update
    For the things you *can* override, there are some tutorials/faqs to help:
    https://www.zen-cart.com/tutorials/i...hp?article=230
    https://www.zen-cart.com/tutorials/i...hp?article=142
    https://www.zen-cart.com/tutorials/i...hp?article=143
    https://www.zen-cart.com/tutorials/index.php?article=36

  7. #7
    Join Date
    Jun 2009
    Location
    Plymouth UK
    Posts
    43
    Plugin Contributions
    0

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    Thanks a lot, everyone - I have a lot to think about, now.

    So - I can't lose my product descriptions, nor the content I add to the page via 'Define Pages Editor' because that's stored in the database. If I learn how to use the 'override' system, I won't lose any of the changes that are effected by directly editing files, either?

    At least I backed everything up first...
    My Zen Cart Site: www.shoppz.biz/lefays
    ZC 1.3.8a, Silverfish, Image Handler2, et al
    "You're only young once - but you can be immature for ever"

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

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    You can lose your product descriptions if you don't backup your database regularly.

    Your Define Pages Editor stuff isn't in the database, it's in the html_includes files in the languages folder, so will be lost if you don't use your own template.
    Kuroi Web Design and Development | Twitter

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

  9. #9
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    As kuroi said, the Define Pages Editor uses files so you need to override them like this:

    includes/languages/english/html_includes
    includes/languages/english/html_includes/your_custom_template

    E-Z Pages on the other hand are stored in the database.

    Note that you can only override wherever there's a "classic" folder. So not everything is overridable.

  10. #10
    Join Date
    Jun 2009
    Location
    Plymouth UK
    Posts
    43
    Plugin Contributions
    0

    Default Re: 1.3.8 --> 1.3.8a Content overwritten?

    Sorry to be thick, but is this correct:

    My custom template is called 'Silverfish.'

    The folder 'html_includes', which is located at:
    includes/languages/english/html_includes
    contains all of the content I have added to my pages (e.g. home page).
    This file is overwritten whenever I update.

    If I copy 'html_includes' into 'Silverfish', which is located at:
    includes/templates/silverfish
    it won't be overwritten during an update.
    What's more, ZC now uses the files in the 'silverfish' folder, so any changes I make with 'define pages editor' will be saved there & be safe (as long as I back up regularly).
    My Zen Cart Site: www.shoppz.biz/lefays
    ZC 1.3.8a, Silverfish, Image Handler2, et al
    "You're only young once - but you can be immature for ever"

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Dimensions being overwritten.
    By phlipper in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 21 Jul 2011, 12:43 PM
  2. overwritten by mistake
    By g_force in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Mar 2009, 04:28 AM
  3. Overwritten index.html
    By actorxfactor in forum General Questions
    Replies: 2
    Last Post: 1 Oct 2007, 07:54 PM
  4. index.php overwritten - how do I fix it?
    By whyzz in forum Basic Configuration
    Replies: 1
    Last Post: 3 Sep 2007, 11:13 PM
  5. overwritten admin config
    By tenerifetom in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 18 Jan 2007, 02:07 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR