rodnikpu Posted January 28, 2009 Share Posted January 28, 2009 Hello to all, How do I add dynamically the Add Item count to my HTML page. I have this site Rodnikpublishing and on each page I have Cart banner at the right top of the page with "0 items" at bottom. I just need help how to make a dynamic page that the item will count my customer's have on their cart. Let say right now if you try to surf my site if you click "Add to Cart", it will redirect you to the osCommerce "What's on my cart" page to view added to cart item(s). So once I go back to any of my page outside osCommerce the "0 items" should say "1 items" or "2 items" if I have added items to my account. How can I do this? I need the php code right? Is this code already in my osCommerce? How will I get it and how will I encapsulate to my html pages. Any advise will appreciate very much. Thanks in advance. Regards, Vick Link to comment Share on other sites More sharing options...
NodsDorf Posted January 28, 2009 Share Posted January 28, 2009 I looked at your site. You are using the oscommerce shopping cart but a totally different front end. I added an item to my cart which was saved on the oscommerce side but as you said, not in your main site. That is because oscommerce stores my actions but your front end does not. To quote freerangermum: "best way would be to use OSC frontend, but make it look like your existing site. Its much easier to change the look of OSC than to try to extract the engine!" Link to comment Share on other sites More sharing options...
rodnikpu Posted January 28, 2009 Author Share Posted January 28, 2009 To quote freerangermum:"best way would be to use OSC frontend, but make it look like your existing site. Its much easier to change the look of OSC than to try to extract the engine!" Thanks for your response and advise NodsDorf. If I will use the OSCommerce also as my front-end how do I do that? I'm really new on this. Is there any link tutorial how to change the look of OSC so it would look like my home page? Vick Link to comment Share on other sites More sharing options...
NodsDorf Posted January 28, 2009 Share Posted January 28, 2009 There is an add on for OSC called Simple Template System. http://www.oscommerce.com/community/contributions,1524 This allows you to modify the shop with general HTML and XML knowledge. I'm actually surprised you got the shopping cart system installed without the rest of it already. That said if you pay for hosting generally most host have an auto install for OSC, if not you can download OSC here: http://www.oscommerce.com/solutions/oscommerce Install instructions here: http://www.oscommerce.com/forums/index.php?showtopic=162231 when you download it you also get a readme file which does help. Just looking at your site it would be fairly easy to keep all the features and follow the same general layout. You got alot of your graphics done so it would be just a change over to a new system. You can view some of the live shops to see what all can be done here: http://shops.oscommerce.com/directory Here is one that is similar to yours: http://www.lalibreriadevaldivia.cl/CatalogoLibros/index.php The good thing for you is you're shop is already up and going so you can install the new shop and get it working the way you want then just change the pointers on your domain once you're finished. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.