We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    In my document (with some offer) I wan’t to have the button "add to cart" (or add to favorites) which would display that offer in other document (ex. "My favorites").
    In case of multiple "favorite selections" thru the site, it would display all the documents (in somekind of document "My favorites")

    What is the best way for doing that?

    I don’t wan’t to implement entire shop system like FoxyCart... just that option mentioned above....
    The goal is to have one document that would list your favorite items

    Hope ya can help me out.... wink
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 20349 ☆ A M B ☆
      • 453 Posts
      Update:

      I tried to experiment a lil’ bit...

      <a href=“savelink.php?link=$_SERVER[‘REQUEST_URI’]?“> Put in my plan! </a>


      the savelink.php would be then something like this
      <?PHP 
      session_start();
        $_SESSION [‘link’][] = $_GET[‘link’];
      ?>



      ..and the output
      <?PHP
      session_start();
        foreach ((array) $_SESSION['link'] as $link) {
          echo $link;}
      ?>
      




      When I try something like this I get the following error:
      Parse error: syntax error, unexpected T_STRING in /home/............/manager/includes/document.parser.class.inc.php(772) : eval()’d code on line 2



      Anybody has a solution for this?
        BASE - Web Design Studio
        MODX Ambassador

        Website