Advertisement:

Author Topic: Add "Free" checkbox next to price on item-post.php  (Read 3720 times)

Dude

  • Newbie
  • *
  • Posts: 48
Add "Free" checkbox next to price on item-post.php
« on: December 13, 2012, 01:40:20 pm »
It would be cool to have a "Free" checkbox next to the price field on item-post.php
It does not need to be some fancy stuff that require to modify the db structure, it could simply be a JavaScript that places 0 in the field OnClick
By the way, I guess this must me super easy for the ones among you who have some JS skills, so don't hesitate to share some code

Dude

  • Newbie
  • *
  • Posts: 48
Re: Add "Free" checkbox next to price on item-post.php
« Reply #1 on: December 13, 2012, 02:13:52 pm »
Found it myself

Code: [Select]
<input type="checkbox" onclick="document.getElementById('price').value ='0'" />Free

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: Add "Free" checkbox next to price on item-post.php
« Reply #2 on: December 13, 2012, 08:00:42 pm »
Hi Dude,

That is a great solution you found and it should work very well.

Jay