Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    65
    Plugin Contributions
    0

    Default tpl_box_default_right.php dynamic content

    Hi, I want to make some changes to the default shopping cart that's displayed in the sidebox. I can see that ../../modules/sideboxes/shopping_cart.php is called, which in turn calls (requires) ../../templates/template_default/common/tpl_box_default_right.php. Dynamic content from the mysql DB gets sucked into variable $content, which is what is displayed in the sidebar.

    The bit I'm struggling with is understanding how the contents of $content are generated. I've searched and searched and cannot find how this content is created. Does anyone know which script/s handle this?

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: tpl_box_default_right.php dynamic content

    Quote Originally Posted by wilorc View Post
    Hi, I want to make some changes to the default shopping cart that's displayed in the sidebox. I can see that ../../modules/sideboxes/shopping_cart.php is called, which in turn calls (requires) ../../templates/template_default/common/tpl_box_default_right.php. Dynamic content from the mysql DB gets sucked into variable $content, which is what is displayed in the sidebar.

    The bit I'm struggling with is understanding how the contents of $content are generated. I've searched and searched and cannot find how this content is created. Does anyone know which script/s handle this?
    You're going to have to look at the complete construction of the sidebox.

    includes/modules/sideboxes/shopping_cart.php (this sets up what is included in the sidebox - in this case information from the database.) this actually makes to calls the first to the file below and then to the "default sidebox location (either right or left)

    includes/templates/YOUR_TEMPLATE/sideboxes/tpl_shopping_cart.php (this is where the above information is collected and added to the $content)

    Hope this helps.

 

 

Similar Threads

  1. Dynamic Sidebox Content Based on Login Status
    By stanbridge in forum Basic Configuration
    Replies: 2
    Last Post: 10 Nov 2009, 11:04 AM
  2. Dynamic content in product listing
    By cmartin9 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 May 2009, 04:18 AM
  3. Dynamic Download Content
    By dmacke in forum General Questions
    Replies: 0
    Last Post: 4 Jan 2008, 03:25 AM
  4. Dynamic main_page content
    By four-point in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jun 2006, 05:17 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