taylermagnuson Posted June 4, 2015 Share Posted June 4, 2015 How can I clear the float on a single product or change the image size? I see in the title it shows /product_info.php?products_id=365 so I assume I can target target that in the css somehow. Any help? Thank you!! Link to comment Share on other sites More sharing options...
♥raiwa Posted June 4, 2015 Share Posted June 4, 2015 Hello tayler @@taylermagnuson, You could try this: if products_id=365 <div class="clearfix"></div> About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
taylermagnuson Posted June 4, 2015 Author Share Posted June 4, 2015 Hello tayler @@taylermagnuson, You could try this: if products_id=365 <div class="clearfix"></div> Are you saying to use "product_id=365" as a class? I dont understand Link to comment Share on other sites More sharing options...
♥raiwa Posted June 4, 2015 Share Posted June 4, 2015 Hello @@taylermagnuson, This was not the good solution, sorry. Try this: in: product_info.php If you are using big product image(s): Find line 109-113: ?> <div id="piGal" data-imgcount="<?php echo $photoset_layout; ?>"> <?php Replace with: if ($product_info['products_id'] == 365) { ?> <div id="piGal" style="float:none;" data-imgcount="<?php echo $photoset_layout; ?>"> <?php } else { ?> <div id="piGal" data-imgcount="<?php echo $photoset_layout; ?>"> <?php } If you are using only one small image : Find line 135-137 : ?> <div id="piGal"> Replace with: if ($product_info['products_id'] == 365) { ?> <div id="piGal" style="float:none;"> <?php } else { ?> <div id="piGal"> <?php } Where 365 is your product id to apply this modification. To change the image size you can include for the first example this line in the first conditions echo tep_image(DIR_WS_IMAGES . $pi['image'], '', 200, 200, 'id="piGalImg_' . $pi_counter . '"'); where 200 the size for the image of product 365 and put in the second part (all other products) the unmodified line: should look then like this: if ($product_info['products_id'] == 365) { ?> <div id="piGal" style="float:none;"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), 200, 200, 'id="piGalImg_' . $pi_counter . '" data-highres="'. DIR_WS_IMAGES . $product_info['products_image'] .'"'); } else { ?> <div id="piGal"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), '', '', 'id="piGalImg_' . $pi_counter . '" data-highres="'. DIR_WS_IMAGES . $product_info['products_image'] .'"'); } ?> </div> Similar for the second example. regards Rainer About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.