Documentation for adding what's missing

Created on 18 December 2019, almost 5 years ago
Updated 26 April 2024, 7 months ago

I can see that this module has been created as part of a project and requires finishing off. I can also see that there are over 20 sites reporting that this module is being used. Can somebody who is using this module please elaborate on how they managed to use this module to create a pay to publish workflow if there are any out there please? I have a simple requirement:

The website is a directory website.
The site has a content type of "Directory Listing" (could be "job vacancy" on a job board for example)
Listings should last for a year and then are either paid for for another year or are unpublished when the license period has expired

That's about all it requires! Entity reference fields can use views to populate the list of available nodes so I'm thinking that a view of all listing nodes authored by the current logged in user which are currently unpublished could be used as the source for the entity reference field for the referenced entities which are then published / unpublished.

If any of you out there have done something similar and have the time to steer me and others in the right direction that would be much appreciated. What I'm trying to do here is a simple pay to publish website, that's all and I'm sure a few other people out there in the community have or will have similar requirements in future.

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇬🇧United Kingdom vaccinemedia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany swms

    And unfortunately, on the project we were using a custom checkout system: users would submit a node form and the product would be configured and placed into the cart automatically. So it was all custom code. I do have the relevant code for creating an order item and putting it in the cart, I'll dig it out when I have more time

    Has this "custom code" been published somewhere?

    I am looking for a similar solution (like in Commerce Node Checkout) where a user creates a node. On the node form there are several options (pay to publish, pay to promote to top of lists, pay to promote to front page, ...). If one of the options is marked, after saving the node, the user is redirected to the shopping cart, pays and the node is published, promoted, ...

  • 🇬🇧United Kingdom joachim

    > Has this "custom code" been published somewhere?

    No, sorry. And I've changed machines twice since that project now, so it's very likely it's gone.

    It was fairly straight forward though -- create the entities, set the values, save them. There might have been some things to do to put it into the cart -- look at the Commerce add to cart forms to see the API.

Production build 0.71.5 2024