Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    117
    Plugin Contributions
    0

    Default Overriding module pages?

    I have added a new field to the product SQL table which I want displayed on the product_info page; as a result, I need to create a new variable in the main_template_vars.php file for the product_info module (modules/pages/product_info). Is there a way to properly override a pages file?

    I have properly overridden root modules files in modules/CUSTOM (custom in place of my folder name), and I've tried every logical override option I could think of, including:
    modules/CUSTOM/pages/product_info/[file]
    modules/pages/CUSTOM/product_info/[file]modules/pages/product_info/CUSTOM/[file]

    None of which worked (replacing the file in its original location does work, so I know these are not working. Is there any way to do this or do I simply have to override the original?

    Thanks.

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

    Default Re: Overriding module pages?

    The overrides framework doesn't support these changes. Be sure to make a good backup so you can compare with the original in case of problems or during upgrade.
    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
    Jan 2006
    Posts
    117
    Plugin Contributions
    0

    Default Re: Overriding module pages?

    Thanks for the quick reply. I'm used to making changes, this is my second time building a zen cart, so this time I'm making sure to thoroughly comment any changes I make so they are easily locatable if the file should ever be updated in future zen carts. I obviously prefer to use the override whenever possible, however.

 

 

Similar Threads

  1. Overriding the pages folder files
    By mayilsamy in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Jul 2010, 10:27 AM
  2. overriding header code for the enlarge image pages
    By orfeus123 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 May 2009, 08:03 PM
  3. Sidebox overriding
    By xordox in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Sep 2008, 09:56 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