MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 *db= database ok we are loooking at the home page. you will need to have atlest 9 products in cat #1 now this is going to be tricky becase we are goingto go to the database (you can do alot of dammage here so be carfull) 1) go to your server and find out how to log in to your db 2) in your db look for the table named "products" 3) press the browse button 4) you should be able to select the product that you want to change 5) you are going to change the "products_date_added" to todays date. (keep the same format for the date 6) you showd see the 9 products you did this for at the end of the day the code will be good Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 i have created cat named all products, now where is it's file. am not sure what you are trying to do. toy want to have a category with all products or you want to have the title of the category show up at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 let's forget it, i am a bit confused myself. in future if i have probs i will post reply in this topic so please do check it. Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 If you repost here i will see it. I am sorry if i was un able to help at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 hi again. well i am here for help again. there are two links on the navbar: Top & Catalog , they both are same, in your site you have deleted. i to want to do delete Catalog but not permanenetly rather by making it a comment so that i can get it back. can you please tell me where is the file and how to make it a comment Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 actualy what i did i deleted the home and re-named the catalog as home. all that is done in one place 1) go to:includes/languages/english.php or your language 2) look for // header text in includes/header.php define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'TOP'); define('HEADER_TITLE_CATALOG', 'CATALOG'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); it starts in about line 50 or so 3) here you want to make sure that define('HEADER_TITLE_TOP', ''); // there is no spaces betewwn the sinlge quotes at the end and define('HEADER_TITLE_CATALOG', 'Home'); // change the CATALOG to read HOME at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 well instead of english.php i edited application_top.php . i commented the catalog. bcoz you have an arrow before home in your site, i did not like that arrow before home. and everything's fine $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); // $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link //(FILENAME_DEFAULT)); Link to comment Share on other sites More sharing options...
thefi12 Posted May 3, 2006 Share Posted May 3, 2006 I am trying to add a buy now button next to each item. I don't know how. Also every thing that I am adding to my site right now are going to my NEW FOR MAY page and I would like to add items that I all ready on my site so the customers can see that I have other items also. Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 the new for may will show the 9 newer items that you up load. you can change the uplaod date the way that i explain in # 26 http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=851175 or you can change the querry but i dont feal like writing querris at this time. at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 another question, is there a way that i can edit the title according to the page, i.e. suppose if i go to any of your site's categories the browser displays the same title each time, is there a way to have different titles. just like you had done with changing category names at the beginning of this topic, do you know how to do it Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2006 Share Posted May 3, 2006 Wow quick and great thread, i can learn from this one. Thanks! Hey MoisesZaragoza, how do i get THREE products to display, i currently only display two you see, also its only two columns, but a lot of rows, is there a way to narrow it down? Thanks for any tips :) And sorry for hi-jacking here :D Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 the new for may will show the 9 newer items that you up load. you can change the uplaod date the way that i explain in # 26 http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=851175 or you can change the querry but i dont feal like writing querris at this time. ok for the title what you have to do is : add before this line require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); This query $category_title_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "'"); $category_title = tep_db_fetch_array($category_title_query); $category_title_string = $category_title['categories_name']; Then in the <title> tag of the page put something like: if((isset($current_category_id)) && tep_not_null($current_category_id)) echo "Name of your store - Category - $category_title_string"; at the end of the day the code will be good Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 Wow quick and great thread, i can learn from this one. Thanks!Hey MoisesZaragoza, how do i get THREE products to display, i currently only display two you see, also its only two columns, but a lot of rows, is there a way to narrow it down? Thanks for any tips :) And sorry for hi-jacking here :D ok what do you want to do? you want to show 3 products per row in the New products For May area? at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 but i want the title to change not only for categories but also for all other pages for example for the conditions page, contact us page , create account, login, etc, etc. i think this can be done by the same value you had given me before for changing category names. look in every page there is a title whose code HEADING_TITLE so i think that by setting this value we can have title for every page based on the heading of that page. do you know on somethink like that. Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 I'm sure that you can do that with the bradcrums what I did was i actually added the titles by hand but I did not had as much knolege as i do now at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 so can you make something like that Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 3, 2006 Share Posted May 3, 2006 so can you make something like that try <title> <?php echo($breadcrumb->last()); ?></title> at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 in which file should i try Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2006 Share Posted May 3, 2006 ok what do you want to do? you want to show 3 products per row in the New products For May area? Yes Exactly :) Link to comment Share on other sites More sharing options...
yanarasod Posted May 3, 2006 Share Posted May 3, 2006 hi MoisesZaragoza, well as we were talking about changing page title. i have another idea we can change page title by 'NAVBAR_TITLE_1' or 'NAVBAR_TITLE_2' etc. can you come with a code just as you did for category name by editing codes in the breadcrumb.php file Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2006 Share Posted May 4, 2006 Hm in wondering, how can i add more rows to the New Products module? Got 100+ products so would be great to have more rows, maybee even set it to go to all products instead of new-products.. ? So New products for May would render all products, to fill out the rows Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 4, 2006 Share Posted May 4, 2006 Hm in wondering, how can i add more rows to the New Products module? Got 100+ products so would be great to have more rows, maybee even set it to go to all products instead of new-products.. ? So New products for May would render all products, to fill out the rows ok in the file include/modules/new_products.php near the end you will see $col ++; if ($col > 2) { $col = 0; $row ++; } } ok this is $col ++; // add a new colum if ($col > 2) { // how many product display per colum this is set to 3 right now # 0,1,2 = 3 $col = 0; // start over at 0 $row ++; // add a new row } } at the end of the day the code will be good Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 4, 2006 Share Posted May 4, 2006 in which file should i try that should go in the index.php file at the end of the day the code will be good Link to comment Share on other sites More sharing options...
yanarasod Posted May 4, 2006 Share Posted May 4, 2006 but the title only changes for catgories not for all pages. also i dont want to remove the default text look: suppose this is the default text: My Site now under any category with your code the title changes to the category name removing the default text, i would like to have it this way: My Site | Category . also note that i dont want it based on header title rather on navbar title. Link to comment Share on other sites More sharing options...
MoisesZaragoza Posted May 4, 2006 Share Posted May 4, 2006 but the title only changes for catgories not for all pages. also i dont want to remove the default text look: suppose this is the default text: My Site now under any category with your code the title changes to the category name removing the default text, i would like to have it this way: My Site | Category . also note that i dont want it based on header title rather on navbar title. you can try <title>my Store | <?php echo($breadcrumb->last()); ?></title> at the end of the day the code will be good Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.