Gasse1014life Posted May 9, 2011 Share Posted May 9, 2011 Hi all i need a lil help to get, by any method another .css linked to categories #17 by example. thank you. Link to comment Share on other sites More sharing options...
♥toyicebear Posted May 9, 2011 Share Posted May 9, 2011 You can have a look at this add-on for ideas: Great categories with different colors 1.0 Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
Gasse1014life Posted May 9, 2011 Author Share Posted May 9, 2011 thank you very much it will helpfull, ps, ive forgot to mention i have v.2.3.1 not modif. ty Link to comment Share on other sites More sharing options...
Gasse1014life Posted May 9, 2011 Author Share Posted May 9, 2011 re all, any one know how to create a cmd with the if / else tag to get a line like this; if $HTTP_GET_VARS['cPath']= index.php?cPath=30 { blablablabla...... } else { bloblobloblo..... } for the categories #30 (catalog/index.php?cPath=30 ) thank you very much Link to comment Share on other sites More sharing options...
npn2531 Posted May 9, 2011 Share Posted May 9, 2011 Two issues, 1)make sure '$HTTP_GET_VARS['cPath']= index.php?cPat' is the correct OSCommerce format for a cat path 2)You have a couple of php syntax errors it should be like this if ($HTTP_GET_VARS['cPath']= index.php?cPath==30) { blablablabla...... } else { bloblobloblo..... } Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Gasse1014life Posted May 10, 2011 Author Share Posted May 10, 2011 i have found an easy way to get only wanted categories linked to another .css in included/template_top.php replace line #48 <link rel="stylesheet" type="text/css" href="stylesheet30.css" /> with <link rel="stylesheet" type="text/css" href=" <?php $filename = 'stylesheet' . $_GET['cPath'] . '.css'; if (file_exists($filename)) { echo $filename; } else { echo "stylesheet.css"; } ?> " /> this is the only thing you have to modif. if you want to change .css to categories # 45 by example, only add a stylesheet45.css in same directory as stylesheet.css (/catalog) if not catalog will use original stylesheet. thank you for your help. Link to comment Share on other sites More sharing options...
Gasse1014life Posted May 11, 2011 Author Share Posted May 11, 2011 this code will help to devellope image and main style by categories <?php if ((int)$HTTP_GET_VARS['cPath']=='30'){ echo 'yeah 30'; } else { echo 'nooooo'; } ; ?> Link to comment Share on other sites More sharing options...
Gasse1014life Posted May 12, 2011 Author Share Posted May 12, 2011 Hi all , a lil question... any 1 know why where i put this code, <?php if ((int)$HTTP_GET_VARS['cPath']=='30'){ echo ''; }else{ echo include(DIR_WS_MODULES . FILENAME_SUB_CAT_IND); } ; ?> a lil 1 appear. *** FILENAME_SUB_CAT_IND are a blank page Link to comment Share on other sites More sharing options...
npn2531 Posted May 12, 2011 Share Posted May 12, 2011 try it like it this: <?php if ((int)$HTTP_GET_VARS['cPath']=='30'){ echo ''; }else{ echo include(DIR_WS_MODULES . FILENAME_SUB_CAT_IND); } ?> maybe that extra ; is the issue. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
Gasse1014life Posted May 13, 2011 Author Share Posted May 13, 2011 Yeah ty , its an unnecessary extra but its not resolving the trouble. thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.