Jump to content

Payment Module - Display related products


Recommended Posts

My payment module requires a callback for a "contributor" to a payment. So not the person who is actually paying. Like, a third-party who has an interest in what the customer has purchased.

 

So my redirect URL is something like;

 

http://prestashop.dev/index.php?
action=contributed&
controller=callback&
email=mike%40example.com&
fc=module&
first_name=Mike&
last_name=Lovely&
hmac=be01ecbd5ff8c176b8bb2e64304c1be5b39216786b5f8407d514936ca9a74ac9&
merchant_order_id=7&
module=chippin

This will take me to a contributor thank you page via a callback controller in the payment module where I can display the items that were purchased using `merchant_order_id` as the Cart object id.

 
Is there a way I can get more out of this? Can I somehow display related products or "people who bought this product also bought"?
 
I am not redirecting at this point btw. I am just doing;
return $this->setTemplate('contributed.tpl');

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...