Forum

The forum is a free service supported by community members. Please consider opening a support ticket if you need timely help.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Apr 2011 07:07 AM by  Vassilis Terzopoulos
Custom text in confirmation page based on user role
 10 Replies
Sort:
You are not authorized to post a reply.
Page 1 of 3123 > >>
Author Messages


New Member


Posts:
New Member


--
08 Apr 2011 07:11 PM
    I need to add a "where to go from here" section in the confirmation page, pointing the users to the downloads page if they purchased a downloadable product or to pages with special content if they got a subscription.

    I thought that I would be able to do so just by assigning a special role to the user and then drop in the confirmation page some text/html modules visible only to specific roles... but this doesn't work.

    Then I thought that I probably can use some conditional logic in a custom confirmation template but I am not sure how I can test in there whether a user is in a role or has purchased a specific product.

    Any ideas?

    Thanks
    0


    Veteran Member


    Posts:2957
    Veteran Member


    --
    08 Apr 2011 08:43 PM
    The Text/HTML module approach is the easiest and it should work. Are you able to verify that the user gets assigned the role after checkout?
    0


    New Member


    Posts:
    New Member


    --
    08 Apr 2011 09:20 PM
    Here is what I did.

    I made the confirmation page link to appear in the menu.
    I went on the confirmation page and dropped in a text/html module.
    I updated the permissions of the module to be visible only to a custom role I have made which I assign to the users successfully after a specific product purchase.
    I created a test user and made a test purchase.
    Role assigned successfully but I could not see the html module on the confirmation page when the purchase is completed.
    If then I click the "Confirmation" link in the menu, I do see the html module but of course there is no confirmation. Just a red message "Invalid transaction. This transaction has been completed or cancelled." which is normal as nobody should not be able to browse the confirmation page by hand.

    Any ideas?

    Thanks
    0


    Veteran Member


    Posts:2957
    Veteran Member


    --
    09 Apr 2011 04:27 AM
    This is due to DNN caching the user roles. So even though the role has been applied, the site only sees the role after a few minutes or when the user logs out and logs back in. We added cache instructions in the next release that should address this issue.

    Thanks,
    0


    New Member


    Posts:
    New Member


    --
    09 Apr 2011 06:27 AM
    You are right. In order the user to be able to access any resources available to the new role we assign to him after a successful purchase, he has to logout and login again.

    Although I could live without the custom text on the confirmation page for now, forcing the user to logout and login again in order to be able to access site resources after the purchase is a problem.

    Could you please let me know when the next release will be available?

    Thanks
    0
    You are not authorized to post a reply.
    Page 1 of 3123 > >>