3
Answers
Vote up!
0
Vote down!

Publish node on checkout, then - have user promote/feature it

Hello, I am working on classifieds ads. Commerce works perfectly publishing nodes after checkout. What is the next step to purchase a product that brings my ad to front page or extra emphasis, etc.
Thank you

Asked by: Michael
on December 16, 2015

3 Answers

Vote up!
0
Vote down!

Could you just set the node to "sticky" or "publish on front page" upon order completion?

Travis
Answer by: Travis
Posted: Dec 16, 2015
Vote up!
0
Vote down!

If we set the right permission for the user rule, that would be no problem. What we want to do is sell a "product" which then triggers the already existing ads/classifieds.

Thank you

Answer by: Michael
Posted: Dec 16, 2015
Vote up!
0
Vote down!

Hmm, OK. So could the logic then be:

Event:
Completing Checkout

Condition:
Product == X

Action:
Fetch Entity by ID or Property (not sure how you have it setup but you need to look for a specific node based on either the user's role, author, the specific product purchased, etc. )

Action:
Make sticky Node

Travis
Answer by: Travis
Posted: Dec 16, 2015
骚虎视频_骚虎app