We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38846
    • 30 Posts
    I have this in another post on this but I need to boil it down to just this problem.

    Basically I am using ULV to create a wishlist and then adding check boxes to allow the user to check which Items they would like to submit in a quote cart. All that is pretty much worked out.

    The one problem I do have is that in the users profile I array the added items in the wishlist and allow them to remove individual items there as well.

    Well I skimped on this and just added
    [[~[[+id]]]]?ulv_list=remove
    which is the gist of the ulv remove call to the snippet. This works fine but when you hit remove in the wish list it redirects to the original product page instead of staying on the wishlist and just refreshing. I assume because the call is actually to remove from the page instead of the wishlist. Just wondering if there is a way to have it stay on the current page and just refresh instead. [ed. note: darwin last edited this post 14 years, 3 months ago.]
      • 40029
      • 52 Posts
      Hi,

      I do not know this plugin at all, I downloaded and read your code is very simple and well written and it seems that the behavior you describe is normal.

      If you want to use it in a "tunnel ajax" or something, you can comment the redirect line in this file:

      core/components/uservaluelist/model/uservaluelist/uservaluelist.class.php

      ...
      					$this->saveUserList($key, $currentValues);
      // comment this			$this->modx->sendRedirect($this->getRedirectLink($addKey));
      ...
      




      after that you must take control of the graphical output in your Web application.

      In any case would try to contact its creator:

      http://www.scherpontwikkeling.nl/over-ons/patrick-nijkamp.html

      is quite possible that being a MODx professional partner, he can provide a more elegant solution.

      Regards
        Developer of RTOS and Drivers
        Specializes in portability of BSD/Linux
        • 38846
        • 30 Posts
        That did not work, but nice thinking. I think since the ID is added it must go back to the ID in order to remove. I just decided that it isn't that big of a deal and that it is kind of nice to remind the customer that they just removed the item and provide a link back to the wishlist.