Block/single Page for the thank you page to add functinality

Permalink Browser Info Environment
It would be very cool if we could display different info on a landing page depending on what product, or class of products was purchased.

For instance, we are selling event tickets and beer glasses, two very different things.

Is it possible to, upon order confirmation/completion, know the contents of the order, that way we could choose a different block to display, etc. on the page, and/or use that for other logic on the site.

Thanks!

Type: Discussion
Status: In Progress
dmeller
View Replies:
mesuva replied on at Permalink Reply
mesuva
Hi David,

I agree that this would be great to be able to handle, but it really is a big technical challenge to achieve due to the way Snipcart works and how it's really all processed on their end. There's nothing at all data wise available on the complete page that relates to the order that was just put through, concrete5 doesn't even know that that has happened. Any/all information about an order has to come through Snipcart's callback to the site, but that then happens independent of the session that the current user is a part of.

The complementing membership add-on partly handles this, in that it processes a call-back from Snipcart which includes the order details and registers users according to what product/group relationships have been set up. That process _might_ be able to be adjusted to redirect to different pages, but I'll be honest and say it was a complete nightmare to get it working in the first place.

If you were creating user accounts at the same time it would be possible with the add-on right now, as you could place those users in user groups and then use those for block visibility permissions. But for guest customers it would have to be a case of redirecting to a particular page, and that's where I've not got a quick solution sorry.

concrete5 Environment Information

(pasted in other comments)

Browser User-Agent String

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.