osCmax v2.5 User Manual
Results 1 to 4 of 4

Modifying Page for BTS Compatibility

This is a discussion on Modifying Page for BTS Compatibility within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; Hi All, Not sure if this is the correct place to talk about this but here we go. I downloaded ...

      
  1. #1
    Member
    Join Date
    Mar 2005
    Location
    In a Van Down The River
    Posts
    60
    Rep Power
    0


    Default Modifying Page for BTS Compatibility

    Hi All,
    Not sure if this is the correct place to talk about this but here we go.

    I downloaded a contribution from osC so I could have a page that listed the bestsellers and then proceeded to modify it so it would be compatible with BTS. I have done this before with osC affiliate before it was available with Max so I had a pretty good idea how to do it. Though I had a bit of a hard time doing it I got it to work but some things are still bugging me and I was hoping someone here could help me out.

    In order to get it to work I had to call the template file "CONTENT_BESTSELLING_PRODUCTS.tpl.php" instead of "bestselling_products.tpl.php". Could someone check it out and let me know what I did wrong.

    The other thing is that the info is being pulled from what is supposed to be a an infobox so I was hopinf someone could integrate the code right into the tpl file instead of it coming from the boxes folder.

    Take a look at the attched zipped files and you will see what I mean.

    Thanks guys.

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default RE: Modifying Page for BTS Compatibility

    You need to define CONTENT_BESTSELLING_PRODUCTS in includes/filenames.php

  3. #3
    Member
    Join Date
    Mar 2005
    Location
    In a Van Down The River
    Posts
    60
    Rep Power
    0


    Default RE: Modifying Page for BTS Compatibility

    It does work. Please re-read the post. Somethings asre just bothering me about it.

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    Default Re: RE: Modifying Page for BTS Compatibility

    Quote Originally Posted by prosam
    It does work. Please re-read the post. Somethings asre just bothering me about it.
    Whenever you add a contrib w/ BTS, you need to modify the instructions for the definitions that are required in filenames.php. When they tell you to add this:

    Code:
    define (FILENAME_WHATEVER, 'whatever.php');
    you need to split this into two definitions like:

    Code:
    define (CONTENT_WHATEVER, 'whatever');
    define(FILENAME_WHATEVER, CONTENT_WHATEVER . '.php');
    This is why you had to rename your file. BTS uses the CONTENT_WHATEVER for it's template files (whatever.tpl.php).
    Brian Neuman
    Webmaster
    www.honeybeadjewelry.com

Similar Threads

  1. modifying product displays on the main page
    By siamsens in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 05-01-2007, 07:35 AM
  2. Modifying Product_info.php
    By Migraine in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 05-04-2005, 02:23 AM
  3. modifying index.php - Front page of the catalog
    By wlocker in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 01-23-2005, 11:49 AM
  4. Modifying new account
    By svepe in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 06-02-2003, 03:17 AM
  5. Modifying Signup (Register) Page
    By terabite.com in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 02-03-2003, 06:55 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
  •