osCmax v2.5 User Manual
Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Catalog folder

This is a discussion on Catalog folder within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I have installed oscmax in root directory. What is the easiest way to move it to /Catalog? Can I just ...

      
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    40
    Rep Power
    0


    Default Catalog folder

    I have installed oscmax in root directory. What is the easiest way to move it to /Catalog?

    Can I just simply create a folder and move all the files into it?

    Reason behind is that I want www.domain.com to be a cover page.

  2. #2
    Active Member
    Join Date
    Jun 2008
    Posts
    195
    Rep Power
    4


    Default Re: Catalog folder

    Forgive, as I am a bit brain dead of too many issues...

    But I am pretty sure create a sub dir (move all files to it) += CHANGE configure.php

    Modify to the bold...

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://yourdomain.com');
    define('HTTP_CATALOG_SERVER', 'http://yourdomain.com');
    define('HTTPS_CATALOG_SERVER', 'http://yourdomain.com');
    define('ENABLE_SSL_CATALOG', 'false');
    define('DIR_FS_DOCUMENT_ROOT', '/home/AcctName/public_html/cart/');
    define('DIR_WS_ADMIN', '/cart/admin/');
    define('DIR_FS_ADMIN', '/home/AcctName/public_html/cart/admin/');
    define('DIR_WS_CATALOG', '/cart/');
    define('DIR_FS_CATALOG', '/home/AcctName/public_html/cart/');

  3. #3
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: Catalog folder

    Yes, you can simply create the catalog folder and move everything to it but you also have to make sure your catalog/includes/configure.php and catalog/admin/includes/configure.php are correct or you will have issues. Also, it's best to use lower case for you folder.
    John

  4. #4
    Member
    Join Date
    Dec 2008
    Posts
    40
    Rep Power
    0


    Default Re: Catalog folder

    Thanks for the help.
    How can I create a cover page to www.domain.com page?
    Do I have to copy main_page.tpl.php or mainpage.php from fallback folder?
    I looked around and can't find where this www.domain.com page is pulling information from....

  5. #5
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Catalog folder

    Presumably you want the cover page to have the same look & feel of your catalog. The pages are made from a composite of many parts - not just one document/file.
    Have look here for some ideas: http://wiki.oscdox.com/how_to
    Hosting plans with installation, configuration, contributions, support and maintenance.

  6. #6
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: Catalog folder

    You can make your cover page however you want and call it index.php index.html index.htm index.shtml index.xhtml index.wml index.perl .......the list is long, but as long as your web server will look to that file then it will serve it. Since you asked this question you may be best just using html or xhtml for this page.

    I thought you already had an idea for your cover/landing page. You can read up on some landing page ideas at Google Analytics and webmaster tools. Unless you have a great game plan with this you might think about just putting your store in your root folder and have your verbage on your main page. My site is not fancy in any way but I've been #1 on Yahoo and between 2 and 5 on Google in my industry for many years.
    John

  7. #7
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Catalog folder

    You could create an index.php file in the root directory, until you get something 'fancy' to show:
    Code:
    <?php 
    header( 'Location: http://yourdomain.com/catalog' ) ; 
    ?>
    Hosting plans with installation, configuration, contributions, support and maintenance.

  8. #8
    Active Member
    Join Date
    Jun 2008
    Posts
    195
    Rep Power
    4


    Default Re: Catalog folder

    Quote Originally Posted by ASTON View Post
    I have installed oscmax in root directory. What is the easiest way to move it to /Catalog?

    Can I just simply create a folder and move all the files into it?

    Reason behind is that I want www.domain.com to be a cover page.

    As mentioned on my first reply...brain dead...trying to figure out why these newer releases...(that I have now idea what is changed) ..

    ANYWAY?

    As long as it's in your root...and you just need one page for your 'splash'.. As All have mentioned...just create another index.htm/html file.

    You would then need a hyperlink into your cart (index.php)

    BUT !! In your .htAccess file you may set the "pecking order" of what index file to use first...as your host may have that set...and you can not change it..

    Or simple do a few index tests using .htm/.html etc...to see which comes up first.

    More than likely...php is down the list.

  9. #9
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: Catalog folder

    trochia,

    Download Beyond Compare 3 by Scooter Software for a 30 day trial and you'll be able to see all the differences plus do a whole lot more. It's well worth the time invested learning what BC3 can do because it can do a lot but you can get a comparison going very quickly. This way you won't get Dain Bramage
    John

  10. #10
    osCMax Development Team
    Join Date
    Nov 2002
    Location
    Orlando
    Posts
    433
    Rep Power
    14


    Default Re: Catalog folder

    Aston, I see you joined about a year ago. How far along are you with your store? Since I have an idea what your goal with this is (from PM) you can achieve it with the BTS template system that OSCMax uses. But, you're getting ahead of yourself and you really need to learn some html, css, and php to be able to do more with your site. Sitepoint has some good easy to read books that will help you a lot as well as countless sites with tutorials and how to. W3C is a great source. I could/would be so much further along if I had done this myself in the beginning, but I wasted way too much time doing things the hard way.

    You might find this quote helpful from a great book on Sitepoint.
    BUILD YOUR OWN DATABASE DRIVEN WEB SITE
    USING PHP & MYSQL
    BY KEVIN YANK
    4TH EDITION
    Avoid Advertising Your Technology Choices
    The examples we’ve seen so far have contained a mixture of plain HTML files (with
    names ending in .html), and files that contain a mixture of HTML and PHP (with
    names ending in .php). Although this distinction between file types may be useful
    104 Build Your Own Database Driven Web Site Using PHP & MySQL
    to you, the developer, there is no reason your users need to be aware of which pages
    of your site rely on PHP code to generate them.
    Furthermore, although PHP is a very strong choice of technology to build almost
    any database driven web site, the day may come when you want to switch from
    PHP to some new technology. When that day comes, do you really want all the
    URLs for dynamic pages on your site to become invalid as you change the file names
    to reflect your new language of choice?
    I still have sites that link to my catalog/default.php so I think there's a lot of validity to that but you can do a lot with htaccess like
    Code:
    Redirect 301 /catalog/default.php http://www.domain.com/
    
    ##  rewrite domain.com to www.domain.com 
    RewriteCond %{HTTP_HOST} ^domain.com$
    RewriteRule ^/?$ "http://www.domain.com/" [R=301,L]
    ##  rewrite urls
    RewriteRule ^sitemapproducts.xml$ googleSitemapProducts.php
    RewriteRule ^sitemapcategories.xml$ googleSitemapCategories.php
    
    ##  rewrite index.php to root
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/
    RewriteRule ^index.php$ http://www.domain.com/ [R=301,L]
    John

Page 1 of 3 123 LastLast

Similar Threads

  1. Catalog Install Folder & Redirect Question?
    By srq in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 12-17-2009, 02:17 PM
  2. .htaccess on /catalog/admin folder?
    By jusluv2ski in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 10-11-2009, 11:03 AM
  3. what to upload on https folder
    By knullhund in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 02-15-2004, 02:52 PM
  4. Install in ROOT or CATALOG Folder???
    By Masalai in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 12-29-2003, 04:05 PM
  5. What is to do with extras and tep-docs folder?
    By ling0sg in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-16-2003, 08:07 AM

Tags for this Thread

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
  •