This module allows users to pay for content before it is published. It enables administrators to configure products that, when purchased, grant users the ability to publish specific types of content for a set duration.
The Commerce Pay Publish module allows you to link a product with a node type so that users can pay before publishing their content.
Features
- Adds a new product type: Pay Publish (/product/add/pay_publish).
- Lets you set how many nodes a user can publish after purchasing a product.
- Allows you to set an expiration time for a node (how long it stays published).
- Allows you to set an expiration time for the product itself.
- Provides configuration options to link products to specific content types (/admin/config/commerce/commerce-pay-publish).
- Lets you select a trial product (/admin/config/commerce/commerce-pay-publish).
Configuration Steps
- Install the module along with its required dependencies.
- Create products at /product/add/pay_publish (set title, bundle limit, expiration duration, and product expiration).
- Go to the configuration page and select the content type: /admin/config/commerce/commerce-pay-publish.
- (Optional) Select a trial product: /admin/config/commerce/commerce-pay-publish.
- Create a node of the selected content type.
- After saving the node, you will be redirected to /price?nid=[nid].
- Choose a product from the list.
- Click Add to Cart & Checkout.
- You will be redirected to the Order Information page.
- Click Continue to Review.
- Review your order.
- Click Pay to purchase the plan.
- Your node will be published automatically.