nonu Posted December 26, 2009 Posted December 26, 2009 i need help i want hide full right column (required full width) on special products id or products page please help
Guest Posted December 26, 2009 Posted December 26, 2009 Amit, remove all the boxes from column_right.php but, you may want to put some of those into column_left.php (shopping cart at least) Chris
Guest Posted December 26, 2009 Posted December 26, 2009 Removing the boxes from column_right.php will result in having an empty right column...one with no boxes in it. But, you still have a column. To get rid of the column entirely on the product listing page, open up catalog>product_info.php Scroll down to the bottom of the file and delete this chunk of code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> Make the same change on any other core pages that call for column_right.php to lose the column there, as well. - Andrea
blr044 Posted December 27, 2009 Posted December 27, 2009 The previous post is one way of having control over your columns. But I use this contribution. Which I believe it involes fewer steps. Hope one of these suggestions will help. Bennett
nonu Posted December 27, 2009 Author Posted December 27, 2009 Thank you very much to all, but i want to remove right column only for one products ..and need rest of all products i need only one products with full page width without column width
nonu Posted December 30, 2009 Author Posted December 30, 2009 i can pay if anybody help me regarding this isse
germ Posted December 30, 2009 Posted December 30, 2009 On a "vanilla" osC install it would be something like this (if I understand what you want): In /catalog/product_info.php you would change this code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> To something like this: <!-- body_text_eof //--> <?php if ( (int)$HTTP_GET_VARS['products_id'] != XXX ) { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> Just change the XXX to be the product id you want to hide the column on. ALWAYS BACKUP A FILE BEFORE EDITING IT. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
nonu Posted December 30, 2009 Author Posted December 30, 2009 On a "vanilla" osC install it would be something like this (if I understand what you want): In /catalog/product_info.php you would change this code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> To something like this: <!-- body_text_eof //--> <?php if ( (int)$HTTP_GET_VARS['products_id'] != XXX ) { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> Just change the XXX to be the product id you want to hide the column on. ALWAYS BACKUP A FILE BEFORE EDITING IT. I am really thank full its working fine
nonu Posted January 27, 2010 Author Posted January 27, 2010 On a "vanilla" osC install it would be something like this (if I understand what you want): In /catalog/product_info.php you would change this code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> To something like this: <!-- body_text_eof //--> <?php if ( (int)$HTTP_GET_VARS['products_id'] != XXX ) { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> Just change the XXX to be the product id you want to hide the column on. ALWAYS BACKUP A FILE BEFORE EDITING IT. Can you help me with opposite fuction? like only one special products id show right column..
germ Posted January 27, 2010 Posted January 27, 2010 On a "vanilla" osC install it would be something like this (if I understand what you want): In /catalog/product_info.php you would change this code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> To something like this: <!-- body_text_eof //--> <?php if ( (int)$HTTP_GET_VARS['products_id'] == XXX ) { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> Just change the XXX to be the product id you want to see the column on. ALWAYS BACKUP A FILE BEFORE EDITING IT. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
nonu Posted January 28, 2010 Author Posted January 28, 2010 On a "vanilla" osC install it would be something like this (if I understand what you want): In /catalog/product_info.php you would change this code: <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> To something like this: <!-- body_text_eof //--> <?php if ( (int)$HTTP_GET_VARS['products_id'] == XXX ) { ?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php } ?> Just change the XXX to be the product id you want to see the column on. ALWAYS BACKUP A FILE BEFORE EDITING IT. thanks for reply but i want show right column only for one products rest of all products without column
germ Posted January 28, 2010 Posted January 28, 2010 thanks for reply but i want show right column only for one products rest of all products without column If you wanted it to show only for a particular category, this code: <?php if ( (int)$HTTP_GET_VARS['products_id'] == XXX ) { ?> Would need to be something like: <?php if ( $cPath == 'XXX' ) { ?> (Replace the XXX with the category ID) It's very unclear to me exactly what it is you want. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Denz Posted April 21, 2010 Posted April 21, 2010 Hi There, This code works great but I am trying to manipulate it... but to no success.... What I am trying to do is show column right on the home page and have it removed on all other pages. I like the way the product listings go full width available, as the above code does when removed. Can anyone help please? I am sure it is simple and I will go DUH when I see how it is done, but I just cannot get it going! Thanks in advance...
germ Posted April 21, 2010 Posted April 21, 2010 <?php if ( basename($PHP_SELF) == FILENAME_DEFAULT ) { ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Denz Posted April 21, 2010 Posted April 21, 2010 Thanks for your quick response Jim, but it did not work. The column_right.php shows on the home page but also on pages like index.php?cPath=24 ... this is where I do not want it displayed! I have <?php if ( basename($PHP_SELF) == FILENAME_DEFAULT ) {?> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"><!-- right_navigation //--><?php require(DIR_WS_INCLUDES . 'column_right.php'); ?><!-- right_navigation_eof //--> </table></td><?php }?> Was that right... am I asking the impossible???
germ Posted April 21, 2010 Posted April 21, 2010 <?php if ( ( basename($PHP_SELF) == FILENAME_DEFAULT ) && ( $cPath == '' ) ) { ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Denz Posted April 21, 2010 Posted April 21, 2010 Thanks again Jim... that did not work. I still have the column showing on pages other than the HOME page. EG. I want it to show on index.php but not on index.php?cPath=24 or index.php?cPath=53. Driving me nuts...
germ Posted April 21, 2010 Posted April 21, 2010 Thanks again Jim... that did not work. I still have the column showing on pages other than the HOME page. EG. I want it to show on index.php but not on index.php?cPath=24 or index.php?cPath=53. Driving me nuts... I'm at a loss to tell you what to do. I tried that exact code and it works (does what you want it to do) for me. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Denz Posted April 22, 2010 Posted April 22, 2010 hmmm weird.... maybe it is something I have put in that is stopping it going... looks like I will have to put up with it there! Thanks for your help anyway! :thumbsup:
Denz Posted May 28, 2010 Posted May 28, 2010 Hi Jim, I am contacting you again cause you seem to be the guru at this!!! :) I was having SSL problems so I downloaded your SSL help stuff, read through countless threads where you have helped people and changed my config and app_top file to every way youhave suggested, and spent hours trying to figure out what the heck was stopping my login (and cart pages) from being secure. In the end I found it was this: <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> I have taken that out of each page (login.php, checkout_shipping.php, create_account.php, etc) and I do not get the non secure items message and all loads ok. I have 7 OSC stores running and have never had to remove this line before. But, this is the first time I am using a purchased template (if that makes any difference). Do you know why that line would be stopping the secure server working? Do I really need it in, or can I run without it (as I am now)? Thanks Denise
germ Posted May 28, 2010 Posted May 28, 2010 Hi Jim, I am contacting you again cause you seem to be the guru at this!!! :) I was having SSL problems so I downloaded your SSL help stuff, read through countless threads where you have helped people and changed my config and app_top file to every way youhave suggested, and spent hours trying to figure out what the heck was stopping my login (and cart pages) from being secure. In the end I found it was this: <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> I have taken that out of each page (login.php, checkout_shipping.php, create_account.php, etc) and I do not get the non secure items message and all loads ok. I have 7 OSC stores running and have never had to remove this line before. But, this is the first time I am using a purchased template (if that makes any difference). Do you know why that line would be stopping the secure server working? Do I really need it in, or can I run without it (as I am now)? Thanks Denise If you take that out the store probably never goes HTTPS The "non secure items" is caused from loading scripts or images from HTTP sources on a HTTPS page. If you put the code back in and post (or PM me) your URL I can probably help you get it working as it should. :) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Denz Posted June 1, 2010 Posted June 1, 2010 Hi Jim, Sorry for the delay in getting back to you. I was waiting for our own secure cert to be implemented and changing the site to php5. So now I have put that line back in and tried all your ideas on the application_top.php as well as the different methods of turning the secure server on in the config file but still the images are playing havoc. The website is www.myvet.co.nz secure server is https://myvet.co.nz . I cannot set the config file to secure server on cause then it just does not go, and it is a live site! Not sure if this makes any difference for you. Thanks for your help again. Denise
germ Posted June 1, 2010 Posted June 1, 2010 The config file is set improperly. In the page source if I manually make the URL HTTPS I see this: <base href="https://myvet.co.nz/htdocs/"> It needs to be this: <base href="https://www.myvet.co.nz/"> The SSL cert. is issued to thw site with the "www." so you need that in the define for HTTPS_SERVER like this: define('HTTPS_SERVER', 'https://www.myvet.co.nz'); // eg, https://localhost - should not be empty for productive servers I'm not sure where you're getting the htdocs from? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Denz Posted June 2, 2010 Posted June 2, 2010 Oh of course... so stupid of me! Sometimes (most of the times) it is the simplist things that trip you up. The htdocs was a hang over from when we had the shared ssl... the path was like https://sharedssl.com/users/myvet.co.nz/htdocs - so I just removed the shared ssl stuff and left the myvet/htdocs. Did not even think to remove it now. DOH@me! :rolleyes: Thanks muchly!!!! AGAIN! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.