nutz4skirtz Posted July 14, 2010 Posted July 14, 2010 cause getting answers around here is like pulling teeth. rotflmao i mean all i wanna know is how to make my links in the new products box open in a blank page??
Guest Posted July 14, 2010 Posted July 14, 2010 Dean, If you open a new window for new products, you will loose the OSCID. For the importance of the OSCID, you should read this: http://www.oscommerce.com/forums/topic/330479-what-is-the-oscsid-why-you-must-not-loose-it/page__hl__oscid Chris ps. forum questions are answered by other osc users and forum members, if we happen to miss your question, it is not that we are trying to be difficult, it's just that.......we missed your question.
nutz4skirtz Posted July 14, 2010 Author Posted July 14, 2010 thanks for the reply it was just my 3rd one today and ive just been going crazy. haha hehe hoho.. i figured this would get some ones attention. wasnt ment to be mean. sorry if ne1 took it the wrong way. this is only going to be the first click to the entrance of osc after that it will stay same window. my intent is just to have a new products box on my regular html page via a iframe. the problem im having now is the whole osc site is running in the iframe. this is why im trying to open it in a new window. am i thinking about this wrong??
chadcloman Posted July 14, 2010 Posted July 14, 2010 Use this at your own risk. In catalog/includes/boxes/whats_new.php, in the following code: $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br>' . $whats_new_price); change the two occurrences of <a href= to be <a target="_blank" href= Check out Chad's News.
nutz4skirtz Posted July 14, 2010 Author Posted July 14, 2010 awesome it worked but i must be talking about a different box. the one im refering to is the one that says new products for july. maybe ive been confusing myself too.
Guest Posted July 14, 2010 Posted July 14, 2010 Dean, You would apply Chad's code above to the products_new.php file instead of the whats_new.php file. Chris
nutz4skirtz Posted July 14, 2010 Author Posted July 14, 2010 thanks everyone. i got it all working. the only thing i need now is to get the products into 2 columns on the products_new.php page. i got it all stripped down and loading into my iframe. but for the life of me i can not get it to break down the products into 2 columns. i messed with it a few hrs last night but just keep messing it up. here the code i have can anyone tell me what to do??
Guest Posted July 14, 2010 Posted July 14, 2010 Dean, When you get a minute, do a search about iframes in oscommerce. You may want to rethink your work once you see the results. Chris
germ Posted July 14, 2010 Posted July 14, 2010 It is possible to have the PHP parser do it's magic on HTML files. I don't know the particulars about that, and maybe it's not possible on some server setups. If you could get your site to do that it would be better than an iframe. Probably a question you should pose to your host to see if it's possible and maybe how to make it happen (they might even get it to do that for you). 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.