ecroskey Posted December 31, 2003 Share Posted December 31, 2003 How do you call the "What's New" info box from the shopping cart into a different site or at least a page outside of the shopping cart? Eric Link to comment Share on other sites More sharing options...
trendyfashion Posted December 31, 2003 Share Posted December 31, 2003 Just did this myself...you can call any boxes like this <?php include(DIR_WS_BOXES . 'whats_new.php'); ?> or replace whats new with whatever box you want. I dont know if I am right on using include or require I am reading up on php now to find out. Look at mine..although its a mess now I am just moving boxes. So check back in a few days to see how it comes together. My Webpage I am goint to have a row not stacked but you get the picture. The Wiki Docs: Read them, live them and be thankful for them! Link to comment Share on other sites More sharing options...
ecroskey Posted December 31, 2003 Author Share Posted December 31, 2003 Trendy, that's still inside the cart though. How would I link to the box from outside the cart? I have one page that I want to run the "What's New" promotion from that exists on a different web site, so really the question is, how do you link to tsomething that exist in one site from a different site. Thanks, Eric Link to comment Share on other sites More sharing options...
Logik Posted December 31, 2003 Share Posted December 31, 2003 just include it... <?php include 'catalog/includes/boxes/box.php'; ?> not to shure of syntax but something like that should work... Link to comment Share on other sites More sharing options...
ecroskey Posted December 31, 2003 Author Share Posted December 31, 2003 Logik, can you expand on that? How do you right the link? Link to comment Share on other sites More sharing options...
241 Posted December 31, 2003 Share Posted December 31, 2003 I would guess that what you really want to do is to have the info that you are after called into an html page outside of the os catalog? No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Logik Posted December 31, 2003 Share Posted December 31, 2003 or <?php include 'http://www.example.com/catalog/includes/boxes/whats_new.php'; ?> hummm nm that wont work outside... Link to comment Share on other sites More sharing options...
ecroskey Posted December 31, 2003 Author Share Posted December 31, 2003 241 right! Site 1 ----------------------Site 2 w/ Cart "What's New"<---------"What's New" Logik, that's what I tried first, but doesn't work. Link to comment Share on other sites More sharing options...
trendyfashion Posted December 31, 2003 Share Posted December 31, 2003 Well if you want it out of your shopping cart edit it out of the catalog/includes/colum_right.php. The code I gave you is for inside your site. I am not at my computer right now so I dont have my html editor but if you want to link it to another site I think there is an "include" call in html. I will look tonight when I get home if you dont figure it out. The Wiki Docs: Read them, live them and be thankful for them! Link to comment Share on other sites More sharing options...
ecroskey Posted January 2, 2004 Author Share Posted January 2, 2004 Just wondering if anyone has had a chance to come up with a solution for this yet? Eric Link to comment Share on other sites More sharing options...
tkeats Posted January 12, 2004 Share Posted January 12, 2004 Just wondering if anyone has had a chance to come up with a solution for this yet? Eric http://www.oscommerce.com/community/contributions,295 Is there what your looking for?? Thomas A signature is something that reflects its user. - The dictionary The question is not, 'to code, or not to code' the question is, 'if we do not code, are we really alive?' -- anonymous Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.