martinlangley Posted November 21, 2012 Posted November 21, 2012 Hi everybody, I'm new to this forum so please bear with me if I've got the wrong section! I am trying to hack the code for addition of items to the shopping basket in product_info.php/ application_top.php. The problem is that I can find very little correspondence between the php code and the html which results in the browser during normal navigation of the store, between adding a product to the basket and going to the checkout. Could someone kindly explain to me where the bulk of this html code is stored such that the above php modules can output it, so I can amend it with my required javascript widget. Many thanks in advance Best regards Martin ps, the page html is attached as a .txt file, I need to know where it all comes from! The site can be viewed at http://87.112.169.242/catalog pps, uploader failed, txt is below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>single storey clean (small), Mr FIxit</title> <base href="http://87.112.169.242/catalog/" /> <link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.22.css" /> <script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.22.min.js"></script> <script type="text/javascript"> // fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484 if ( $.attrFn ) { $.attrFn.text = true; } </script> <script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script> <link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="ext/960gs/960_24_col.css" /> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <link rel="canonical" href="http://87.112.169.242/catalog/product_info.php?products_id=29" /> </head> <body> <div id="bodyWrapper" class="container_24"> <div id="header" class="grid_24"> <div id="storeLogo"><a href="http://87.112.169.242/catalog/index.php"><img src="images/store_logo.png" alt="Mr FIxit" title="Mr FIxit" width="129" height="54" /></a></div> <div id="headerShortcuts"> <span class="tdbLink"><a id="tdb1" href="http://87.112.169.242/catalog/shopping_cart.php">Cart Contents</a></span><script type="text/javascript">$("#tdb1").button({icons:{primary:"ui-icon-cart"}}).addClass(" ui-priority-secondary").parent().removeClass("tdbLink");</script><span class="tdbLink"><a id="tdb2" href="http://87.112.169.242/catalog/checkout_shipping.php">Checkout</a></span><script type="text/javascript">$("#tdb2").button({icons:{primary:"ui-icon-triangle-1-e"}}).ad dClass("ui-priority-secondary").parent().removeClass("tdbLink");</script><span class="tdbLink"><a id="tdb3" href="http://87.112.169.242/catalog/account.php">My Account</a></span><script type="text/javascript">$("#tdb3").button({icons:{primary:"ui-icon-person"}}).addClass ("ui-priority-secondary").parent().removeClass("tdbLink");</script> </div> <script type="text/javascript"> $("#headerShortcuts").buttonset(); </script> </div> <div class="grid_24 ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"> <a href="http://87.112.169.242" class="headerNavigation">Top</a> » <a href="http://87.112.169.242/catalog/index.php" class="headerNavigation">Catalog</a> » <a href="http://87.112.169.242/catalog/index.php?cPath=22" class="headerNavigation">Domestic Cleaning</a> » <a href="http://87.112.169.242/catalog/product_info.php?cPath=22&products_id=29" class="headerNavigation"></a></div> </div> <div id="bodyContent" class="grid_16 push_4"> <form name="cart_quantity" action="http://87.112.169.242/catalog/product_info.php?products_id=29&action=add_ product" method="post"> <div> <h1 style="float: right;">£60.00</h1> <h1>single storey clean (small)</h1> </div> <div class="contentContainer"> <div class="contentText"> <div id="piGal" style="float: right;"> <a href="http://87.112.169.242/catalog/images/ani_man_vacuuming.gif" target="_blank" rel="fancybox"><img src="images/ani_man_vacuuming.gif" alt="single storey clean (small)" title="single storey clean (small)" width="120" height="120" hspace="5" vspace="5" /></a> </div> <script type="text/javascript"> $("#piGal a[rel^=fancybox]").fancybox({ cyclic: true }); </script> Vacuum cleaning of single storey house or flat carpets plus mop of smooth floors. Includes scrub of tables and kitchen/bathroom surfaces and cooking equipment but excludes oven cleaning or limescale removal. Coverage 30 square meters floor area. <div style="clear: both;"></div> </div> <div class="buttonSet"> <span class="buttonAction"><input type="hidden" name="products_id" value="29" /><span class="tdbLink"><button id="tdb4" type="submit">Add to Cart</button></span><script type="text/javascript">$("#tdb4").button({icons:{primary:"ui-icon-cart"}}).addClass(" ui-priority-primary").parent().removeClass("tdbLink");</script></span> <span class="tdbLink"><a id="tdb5" href="http://87.112.169.242/catalog/product_reviews.php?products_id=29">Reviews</a></ span><script type="text/javascript">$("#tdb5").button({icons:{primary:"ui-icon-comment"}}).addClas s("ui-priority-secondary").parent().removeClass("tdbLink");</script> </div> </div> </form> </div> <!-- bodyContent //--> <div id="columnLeft" class="grid_4 pull_16"> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Categories</div> <div class="ui-widget-content infoBoxContents"><a href="http://87.112.169.242/catalog/index.php?cPath=22"><strong>Domestic Cleaning</strong></a> (2)<br /><a href="http://87.112.169.242/catalog/index.php?cPath=26">Fitness Services</a> (1)<br /><a href="http://87.112.169.242/catalog/index.php?cPath=27">Gardening</a><br /><a href="http://87.112.169.242/catalog/index.php?cPath=28">PC/Network Support</a><br /><a href="http://87.112.169.242/catalog/index.php?cPath=24">Photography</a> (2)<br /><a href="http://87.112.169.242/catalog/index.php?cPath=23">Plumbing</a> (1)<br /></div></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Manufacturers</div> <div class="ui-widget-content infoBoxContents"><form name="manufacturers" action="http://87.112.169.242/catalog/index.php" method="get"><select name="manufacturers_id" onchange="this.form.submit();" size="1" style="width: 100%"><option value="" selected="selected">Please Select</option><option value="6">Canon</option><option value="4">Fox</option><option value="8">GT Interactive</option><option value="9">Hewlett Packard</option><option value="5">Logitech</option><option value="1">Matrox</option><option value="2">Microsoft</option><option value="10">Samsung</option><option value="7">Sierra</option><option value="3">Warner</option></select></form></div></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Quick Find</div> <div class="ui-widget-content infoBoxContents" style="text-align: center;"> <form name="quick_find" action="http://87.112.169.242/catalog/advanced_search_result.php" method="get"> <input type="text" name="keywords" size="10" maxlength="30" style="width: 75%" /> <input type="hidden" name="search_in_description" value="1" /><input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" alt="Quick Find" title=" Quick Find " /><br />Use keywords to find the product you are looking for.<br /><a href="http://87.112.169.242/catalog/advanced_search.php"><strong>Advanced Search</strong></a> </form> </div></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><a href="http://87.112.169.242/catalog/products_new.php">What's New?</a></div> <div class="ui-widget-content infoBoxContents" style="text-align: center;"><a href="http://87.112.169.242/catalog/product_info.php?products_id=30"><img src="images/sink1.jpg" alt="Domestic sink installation" title="Domestic sink installation" width="100" height="80" /></a><br /><a href="http://87.112.169.242/catalog/product_info.php?products_id=30">Domestic sink installation</a><br />£100.00</div></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Information</div> <div class="ui-widget-content infoBoxContents"> <a href="http://87.112.169.242/catalog/shipping.php">Shipping & Returns</a><br /> <a href="http://87.112.169.242/catalog/privacy.php">Privacy Notice</a><br /> <a href="http://87.112.169.242/catalog/conditions.php">Conditions of Use</a><br /> <a href="http://87.112.169.242/catalog/contact_us.php">Contact Us</a> </div></div></div> <div id="columnRight" class="grid_4"> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><a href="http://87.112.169.242/catalog/shopping_cart.php">Shopping Cart</a></div> <div class="ui-widget-content infoBoxContents">0 items</div></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><a href="http://87.112.169.242/catalog/account_notifications.php">Notifications</a></div > <table border="0" cellspacing="0" cellpadding="2" class="ui-widget-content infoBoxContents"><tr><td><a href="http://87.112.169.242/catalog/product_info.php?products_id=29&action=notify "><img src="images/box_products_notifications.gif" alt="Notifications" title="Notifications" width="50" height="50" /></a></td><td><a href="http://87.112.169.242/catalog/product_info.php?products_id=29&action=notify ">Notify me of updates to <strong>single storey clean (small)</strong></a></td></tr></table></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Share Product</div> <div class="ui-widget-content infoBoxContents" style="text-align: center;"><a href="http://87.112.169.242/catalog/tell_a_friend.php?products_id=29"><img src="images/social_bookmarks/email.png" border="0" title="Share via E-Mail" alt="Share via E-Mail" /></a> <a href="http://www.facebook.com/share.php?u=http%3A%2F%2F87.112.169.242%2Fcatalog%2Fpro duct_info.php%3Fproducts_id%3D29" target="_blank"><img src="images/social_bookmarks/facebook.png" border="0" title="Share on Facebook" alt="Share on Facebook" /></a> <div class="g-plus" data-action="share" data-href="http://87.112.169.242/catalog/product_info.php?products_id=29" data-annotation="none" data-height="15" data-align="left"></div><script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <a href="http://pinterest.com/pin/create/button/?description=single+storey+clean+%28smal l%29&media=http%3A%2F%2F87.112.169.242%2Fcatalog%2Fimages%2Fani_man_vacuuming.gif&url =http%3A%2F%2F87.112.169.242%2Fcatalog%2Fproduct_info.php%3Fproducts_id%3D29" class="pin-it-button" count-layout="none"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a> <a href="http://twitter.com/home?status=http%3A%2F%2F87.112.169.242%2Fcatalog%2Fproduct_ info.php%3Fproducts_id%3D29" target="_blank"><img src="images/social_bookmarks/twitter.png" border="0" title="Share on Twitter" alt="Share on Twitter" /></a></div></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><a href="http://87.112.169.242/catalog/reviews.php">Reviews</a></div> <table border="0" cellspacing="0" cellpadding="2" class="ui-widget-content infoBoxContents"><tr><td><a href="http://87.112.169.242/catalog/product_reviews_write.php?products_id=29"><img src="images/box_write_review.gif" alt="Write Review" title="Write Review" width="50" height="50" /></a></td><td><a href="http://87.112.169.242/catalog/product_reviews_write.php?products_id=29">Write a review on this product!</a></td></tr></table></div> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Currencies</div> <div class="ui-widget-content infoBoxContents"> <form name="currencies" action="http://87.112.169.242/catalog/product_info.php" method="get"> <select name="currency" onchange="this.form.submit();" style="width: 100%"><option value="USD">U.S. Dollar</option><option value="EUR">Euro</option><option value="GBP" selected="selected">Pounds Sterling</option></select><input type="hidden" name="products_id" value="29" /></form> </div></div></div> <div class="grid_24 footer"> <p align="center">Copyright © 2012 <a href="http://87.112.169.242/catalog/index.php">Mr FIxit</a><br />Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a></p> </div> <div class="grid_24" style="text-align: center; padding-bottom: 20px;"> <a href="http://87.112.169.242/catalog/redirect.php?action=banner&goto=1" target="_blank"><img src="images/banners/oscommerce.gif" alt="osCommerce" title="osCommerce" width="468" height="50" /></a></div> <script type="text/javascript"> $('.productListTable tr:nth-child(even)').addClass('alt'); </script> </div> <!-- bodyWrapper //--> <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script> </body> </html>
burt Posted November 21, 2012 Posted November 21, 2012 You need to explain more fully what it is that you are trying to achieve. Addition of items logic is contained in /includes/application_top.php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.