Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Plugin Contributions
    0

    Default featured.php help

    Hello, I wonder if someone could give me a clue...

    I have been following the thread regarding turning off the featured sidebox for the home page. Well, I have followed those instructions and I do understand php (mostly) but oddly enough, I can't get either /includes/modules/sideboxes/featured.php or the override for my own template... /includes/modules/sideboxes/mytemplate/featured.php to work.

    The really strange thing is that if I go in to either one of those files and do an echo "anything"; it doesn't work. I can do something that would break the script but that doesn't work either (meaning it doesn't break). Is it possible that featured.php is being called from somewhere else? Where else could this come from? I'm starting to think I dont know what I'm doing. (:

    my development site is at http://www.sdolc.com

    Thank you in advance.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: featured.php help

    Delete the files in your overrides directory on the server and then reload the file again ...

    Then view the file on the server in your overrides directory ... do you see your changes in the file?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: featured.php help

    Hmm, I would have thought this is a browser cache issue except that I cleared the cache in firefox and even tried I.E.

    But now I understand even less... I renamed featured.php in both directories to featured1.php Guess what... it not only didn't change, it didn't even break and still shows the featured products.

    Well, I know there is a cache defined in configure.php does that actually cache pages or create a "compiled" page that it calls if something breaks?

    Am I on the right track there?
    Last edited by lchoate; 13 Nov 2006 at 02:26 AM.

  4. #4
    Join Date
    Nov 2006
    Location
    Caracas
    Posts
    114
    Plugin Contributions
    0

    Default Re: featured.php help

    I just start with zen cart three weeks ago but I hope this can help you
    ( I am working in the featured too)


    Are two featured Main and the sidebox. I dont know wich one you want to work but I worked in this way


    1) Main Featured use this files ( maybe i am wrong but work to me)

    1.1
    /includes/templates/MYTEMPLATE/templates/tpl_modules_featured_products.php
    1.2
    /includes/modules/MYTEMPLATE/featured_products.php

    1.1 Just define the main <div> to show the products you can change the class to be a diferent backgroung color or something else

    1.2 Read the DB products a show how each product is show you can change their template to configurate how each product is to be showed for example you can move the price to the right

    2) the sideboxes If you turn off Why do you want to change it ?
    but I used just

    /includes/templates/MYTEMPLATE/sideboxes/tpl_featured.php


    by the way I am using 1.3.6

    I hope this help you

  5. #5
    Join Date
    Nov 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: featured.php help

    Well thank you both for the replies. The problem is not that I can't get it to show, and I don't really want to turn it off. Its that I want to selectively decide when to show it. For example, I want featured products on my home page, but I want them as part of my content not where the templates put them.

    There is a thread related to that in the forums I followed those instructions and the code makes perfect sence but it doesn't work. The real problem is that I am unable to modify the code. I'll change it, save it, it saves, but the cart still shows the same result. Meaning my changes aren't being rendered. It the craziest thing I've ever seen and I've been an asp developer for years.

    Thats why I wondered if there is something up with my php or zencart cache that might be rendering the page even if I broke my script. I just dont get it. I restarted IIS on my development box, and uploaded changes to the real webserver and its the same result every where.

    I found this great file map, http://studioblackbird.com/ZenCart/ but I still can't figure this out.

    Is the problem making more sense now?

  6. #6
    Join Date
    Nov 2006
    Location
    Caracas
    Posts
    114
    Plugin Contributions
    0

    Default Re: featured.php help

    Relax the overriding is complicated at first but after your first site is the easier.


    Question

    1) Do you create a template? or Do you use the classic template? or
    are you coding in the template_default ?


    2) let's go to try a small change in the feactured What do you want to change ?

 

 

Similar Threads

  1. need php help for new/featured/specials output
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Mar 2013, 12:16 AM
  2. Pulling New, Featured, and Special products on another PHP page.
    By tammap in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Dec 2010, 05:58 AM
  3. Featured catagory php require(*)
    By ssmith.cp in forum General Questions
    Replies: 8
    Last Post: 6 May 2010, 09:05 PM
  4. Featured box ABOVE define_main_page.php?
    By zcnb in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 May 2009, 02:06 PM
  5. Specials.php & Featured Products will not work for me
    By Makoshark in forum General Questions
    Replies: 2
    Last Post: 4 Mar 2008, 07:31 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