We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19132
    • 199 Posts
    I have an issue that I’m trying to solve:

    A user buys a limited access package that allows them to choose any 6 out of 52 possible products.

    Problem: How do actually limit them to any 6? Do I need a new snippet that tracks which 6 they’ve chosen and adds those choices to their User account?

    Those 6 are not predefined. They can be any 6 of 52.
      MySQL: 5.0.45
      PHP: 5.2.6
      Linux 2.6.9-023stab048.6-enterprise #1
      cURL enabled
      PDO enabled
      FFox Apple 3.6.8
      Firebug DIS-abled
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Keep a count in the SESSION. Add an increment to a SESSION variable to the add-to-cart snippet.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 19132
        • 199 Posts
        That works at the beginning of the transaction process.

        Will it work after the transaction when they login and start selecting the videos from a list?

        Thank you.
          MySQL: 5.0.45
          PHP: 5.2.6
          Linux 2.6.9-023stab048.6-enterprise #1
          cURL enabled
          PDO enabled
          FFox Apple 3.6.8
          Firebug DIS-abled