Skip to main content
18 events
when toggle format what by license comment
Mar 9, 2021 at 17:03 comment added Dhara Talaviya add_action('init', 'customcart'); instead of 'init' hook it will work with 'template_redirect'
Nov 9, 2013 at 14:08 comment added Sanjay Nakate You have any idea about woo commerce email attachment.
Oct 25, 2013 at 17:04 comment added Sanjay Nakate hey you are genius...................
Oct 25, 2013 at 17:03 vote accept Sanjay Nakate
Oct 25, 2013 at 16:58 history edited helgatheviking CC BY-SA 3.0
edit based on chat
Oct 25, 2013 at 15:44 comment added helgatheviking let us continue this discussion in chat
Oct 25, 2013 at 15:42 comment added Sanjay Nakate what you write this code in function.php
Oct 25, 2013 at 15:32 comment added helgatheviking I have tried your form, and the submit button's value is not posted. Please try what I have suggested.
Oct 25, 2013 at 15:28 comment added Sanjay Nakate you can check it i have added my html form in the bottom side
Oct 25, 2013 at 15:28 comment added helgatheviking I don't believe the submit button's value is posted. See my edited code and try that.
Oct 25, 2013 at 15:25 comment added helgatheviking My code is already posted above. Also you should edit your question with your form code, as it can be hard to read code in the comments.
Oct 25, 2013 at 15:22 comment added Sanjay Nakate can you share your code what exactly you made the changes in function.php
Oct 25, 2013 at 15:19 comment added Sanjay Nakate see this my form <form name="addpro" method="post" action=""> <input type="submit" name="addcustomcarts" value="ADD TOO CART" /> </form>
Oct 25, 2013 at 15:16 comment added helgatheviking Are you sure your form set to post? Because, I've switched to $_POST and once I click 'Submit' the post is inserted and added to the cart.
Oct 25, 2013 at 15:14 history edited helgatheviking CC BY-SA 3.0
update code
Oct 25, 2013 at 15:05 comment added Sanjay Nakate your code is not working i used post instead of get
Oct 25, 2013 at 14:51 comment added Sanjay Nakate i have a form with on submit button and form method is post
Oct 25, 2013 at 14:42 history answered helgatheviking CC BY-SA 3.0