1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Set default bet limit

Discussion in 'Sportsbook Closed Suggestions' started by EasyEazy, Aug 14, 2018.

  1. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    Is there a way to set a bet limit default? We constantly use the same amount and rather than setting it on every bet is there a way to set a default amount?
     
  2. Bob

    Bob Developer Staff Member

    Not currently (and it can't be done via a template edit or you will screw things up). The Min and Max amounts are determined programatically via the Bet Entity. Right now the Min is hard coded to 1, however, in the future, the Min will be determined by evaluating both the default and available cash (which ever is LOWEST would be the value passed to the spinbox.. eg. if the default was set to $500 and the viewing user only had $100, the min would be $100 where as if the viewing user had $1000, the min would be $500.

    I'll move this to suggestions since its already planned.
     
  3. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    Thanks Bob
     
  4. Bob

    Bob Developer Staff Member

    Phase I of this has been implemented (Phase II will come with SB 2.1)

    I've added a new option that allows you to set a default value for the Wager amount.

    Note: There are several conditions that will effect the final default value. For example, if you set the default value to 100 and the viewing user only has $50 available cash, the default will have a final value of 50 when rendering the form.

    Selection_286.png

    And as you can see, the default amount is now 100 instead of 1.

    Selection_287.png

    Note: I've added the Min and Max wager amounts and removed the Available Sportsbook cash (as the Max Wager Amount IS the Available Sportsbook cash IF its less than the Max Wager Amount Setting (which will be part of Phase II).
     
  5. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    Superb @Bob thank you so much.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.