Arkataev Posted July 21, 2013 Share Posted July 21, 2013 (edited) Hi! I input a piece of code in Product.tpl: <form id=f1 name=f1 method="POST" action="http://www.oplata.info/asp/pay.asp"> ... <table cellpadding="3" cellspacing="1" border="0"><tr> <!--<td><input type=text name=in size=7 value="0.5" readonly></td> --> <td> <select size=1 style="width:130px;" name="type_curr"> <option value="WMZ">WMZ</option> <option value="QSR">QIWI</option> <option value="WMR">WMR</option> <option value="WME">WME</option> <option value="WMU">WMU</option> <option value="PCR"></option> </select> </td> <td> <input type="submit" class="buybutton" value="Buy"> </td> </tr><tr> <input type="hidden" name="id_goods" value={$product->reference|escape:'htmlall':'UTF-8'}> <input type="hidden" name="id_agent" value=0> <input type="hidden" name="fail_page" value="#"> instead of the original "add to cart" button. This should redirect user to a side resource to continue payment. But on clicking "submit" (Buy) button it redirects to a "cart" page. Please, could anyone give me a hint where I can fix this? [sOLVED] Edited August 2, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 in this case you should change back office options go to te preferences > products tab in your back office and change the option for: Link to comment Share on other sites More sharing options...
Arkataev Posted July 21, 2013 Author Share Posted July 21, 2013 in this case you should change back office options go to te preferences > products tab in your back office and change the option for: Thank you for the answer. But unfortunately it didn't work Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 22, 2013 Share Posted July 22, 2013 go to modules block cart and configure disable ajax cart Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 Thank you for the answer. But unfortunately it didn't work is there any way to test your website? if so, please share the url Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 22, 2013 Share Posted July 22, 2013 u can also use this module http://www.prestashop.com/forums/topic/259593-free-module-lof-modal-cart-module/ Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 jitenx i've got notification about this addon from one of merchants. It's not free module. it's a free for non-commercial use, but whole ecommerce is commercial what you think? Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 22, 2013 Share Posted July 22, 2013 its from land of coder (brain os) its free module ..ya i agree wid u Link to comment Share on other sites More sharing options...
Arkataev Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Hi! I managed to find out that any other form that has input type ="submit" button does exactly the same - forwards to cart page. I uninstalled cart block completely, the store is in the catalog mode, all cart functionality disabled. But "submit" keeps doing all the same. I suppose there has to be something somewhere in a controller or maybe in js. Edited July 24, 2013 by vega17 (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 omg just go to block cart module and disable ajax cart Link to comment Share on other sites More sharing options...
Arkataev Posted July 24, 2013 Author Share Posted July 24, 2013 omg just go to block cart module and disable ajax cart Done, but no result Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 wat u want. excavate *exactly Link to comment Share on other sites More sharing options...
Arkataev Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) I need to put the custom form on the product page that could return proper information when user clicks "submit" button. Now any form placed in product tpl. redirects to a cart page. Edited July 24, 2013 by vega17 (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 any site doing the same u wat u want..do u mean wen customer clicks add to cart he sud get shopping cart summary? Link to comment Share on other sites More sharing options...
Arkataev Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) I have disabled cart functionality completely, there is now "Add to cart" at all on product page. Instead of it I want to put my own form this type: <form method="post" action="productcontroller.php"> <input type="text" name="aid" value="Enter your ID" size="30"> <input name="Submit" type=submit value="OK"> </form> I want this form to send information to productcontroller. php where it will be processed with the proper php. But when I click OK ("submit") It still forwards to www.myshop/cart page as If I was clicking "add to cart" buttton Edited July 24, 2013 by vega17 (see edit history) Link to comment Share on other sites More sharing options...
Arkataev Posted August 1, 2013 Author Share Posted August 1, 2013 [sOLVED] Link to comment Share on other sites More sharing options...
vekia Posted August 1, 2013 Share Posted August 1, 2013 hello vega can you share your solution for this problem? Link to comment Share on other sites More sharing options...
Arkataev Posted August 2, 2013 Author Share Posted August 2, 2013 (edited) actually that was my mistake:) I missed <form id="buy_block"> on line 299 in product.tpl. that included a link to a cart page. That thing had been spoiling all my attempts. To make my form work properly I just needed to change the corresponding link in that line.. The example is here (russian language) Edited August 2, 2013 by vega17 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 thanks for clarification I can go ahead now and mark this topic as solved thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now