soulfain Posted January 9, 2009 Share Posted January 9, 2009 Hi, I noticed my "add to cart" button doesn't work when it's clicked on product_info page. It behaves like blank image link, nothing happens when I click it. I've tried to solve it but it still doesn't work. Does anyone know the solution? Cheers, Soulfain Link to comment Share on other sites More sharing options...
germ Posted January 9, 2009 Share Posted January 9, 2009 The most common reason for a button to not work would be a missing or incorrectly nested <form ...> </form> tags. They should appear in equal number in the HTML source. Without your URL it's impossible to pinpoint the cause. :blush: 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 > Link to comment Share on other sites More sharing options...
soulfain Posted January 9, 2009 Author Share Posted January 9, 2009 Thanks for reply. I don't have URL because I work with it at localhost. But I can paste here HTML: Product_info.php http://wklej.org/id/36783/ Output code: http://wklej.org/id/36784/ It makes me a bit confused because there's no tag <input> in the product_info.php. Also </form> tags are in different places, and there's no beggining <form>. Link to comment Share on other sites More sharing options...
germ Posted January 9, 2009 Share Posted January 9, 2009 It doesn't work because you have two </form> tags in a row. In the HTML source you linked to, this part is missing: <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> Or at least the HTML output that results from that code. I also read in another thread you use STS. You're probably looking in the wrong file. When you have STS the whole site works different. I'd find the STS support thread and post in it. I know nothing about how it works. 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 > Link to comment Share on other sites More sharing options...
soulfain Posted January 9, 2009 Author Share Posted January 9, 2009 This HTML is located in line 47. I didn't edit PHP by myself because I'm the begginer. I'd also post my issue at the STS Support thread. Cheers, Soulfain Link to comment Share on other sites More sharing options...
bkellum Posted January 10, 2009 Share Posted January 10, 2009 This HTML is located in line 47. I didn't edit PHP by myself because I'm the begginer. I'd also post my issue at the STS Support thread. Cheers, Soulfain Paul, Are you using STS or not? You didn't make that clear. Gem is correct in that this is most likely due to an incorrect form tag. STS behaves the same way as a stock osC in this area unless you are using the Product Info Template feature within STS. Before I go in detail, let me know if you are using STS or not. Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
soulfain Posted January 10, 2009 Author Share Posted January 10, 2009 Bill Kellum, Yes. I use STS. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.