Use a prepaid subscription package to upgrade your WOOCOMMERCE website

If there is something annoying after the unqualified Internet, then It is necessary to pay for the Internet every month. I don’t like to continue using the troubles I subscribe to the service through extra steps. 预付费订阅包博客

Solution -I prepaid payment for a whole year in advance. It is simple and economical (because the annual plan is better), and I don’t have to worry about the interruption caused by the non -payment service fee.

All the brain waves of my function in Woocommerce come from real life scenes.

Wooocommerce prepaid subscription package is no exception. My little \” Internet status \” reminds me of a option that allows customers to make prepaid for Woocommerce products during a specific subscription period.

The result of my idea was this article. Let us further study this concept to better understand it.

Why do you need a pre -paid subscription package for Woocommerce?

The first question to answer is why the prepaid function is needed?

Although it is necessary to pay regularly, it is not the trouble of online payment, but there are other systems in this specific system. question. For example, one of my customers once complained that due to the failure of

automatic loop payment, Subscribing orders have not been renewed. Another related issue that the system often observes is that even after payment,

The payment status will not change due to technical failure . In this case, the administrator must manually re -activate the subscription after the problem is corrected. Although this may be a feasible choice for a small customer base, this may be very time -consuming for the huge customer base. In addition, this will increase unnecessary expenses. Considering different time zones, this may not always be a feasible choice.

In addition to the technical failure, the function can also play an important role. At the same time, add the prepaid subscription package or prepayment function to your Woocommerce website. For example, we recently published a blog post about

using Woocommerce to create a gift giving website, which discussed the baseGift product for subscribing.

In this case, the pre -paid subscription package is the most meaningful for those who give gifts, because all payment issues will be dealt with without any trouble.

In all cases,

Woocommerce pre -paid subscription package [123 123 ] It will appear!

How to work for the end user for a pre -paid subscription package?

Step 1: Customers will choose a subscription plan for the product.

At this time, it will also provide users with options for selection between regular payment and one -time prepaid.

  • Step 2: If the customer chooses a pre -paid subscription package, the total subscription price will be calculated.
  • Step 3: Customers can continue to pay the entire subscription period for prepayment. Products or services will be provided to customers before the subscription period is over, and the subscription will stop until renewal.

How to work for the administrator for the prepaid subscription package? 预付费订阅包用户视图

Now, if you want to know whether the process will change on the management end, let me tell you that it will not. However, it is important to understand some details from the perspective of the website administrator to better understand the system. It is necessary to make some customs to make this prepaid subscription package seamlessly collaborated with the subscription plug -in of Woocommerce.

Step 1: The administrator must provide a option at the front end, customer customers, customers You can use this option to select the prepaid subscription package.

Step 2: If the customer chooses a prepaid model, the custom function must be written to calculate the total subscription fee.

  • Step 3: After the customer pays, the system must be checked regularly to verify the effectiveness of the subscription.
  • For example, if the customer chooses a monthly service for more than six months, it must be checked once a month within six months. At the end of the six months, the subscription will be suspended if the order is not continued.

  • Development function

In terms of customization, the following two functions must be developed.

The calculation of the subscription fee

If the customer chooses a pre -paid subscription package, the total price of the subscription must be calculated. For example, suppose you sell online magazines in the form of subscription. Now, if the subscription fee is $ 20 a month and the customer is registered for six months, the system must be able to calculate the total subscription fee, that is, $ 120.

The hook used for customized will be as follows according to your requirements. add_filter ( \u0026#39; woocommerce_get_price \u0026#39; , \u0026#39; wdm_change_price \u0026#39;

10

,

2

); add_filter ( \u0026#39; woocommerce_get_regular_price \u0026#39; ,  \u0026#39; wdm_change_price \u0026#39;  10  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2  2 123]) ADD_FILTER (

\u0026#39; woocommerce_get_sale_price_price \u0026#39;

,

\u0026#39; wdm_change_price \u0026#39;

10 2 2 2 2 2 2

2

 2  2  2  2  2  2  2  2  2 ]; 

In addition, the function of calculating the total cost is as follows.

function

wdm_change_price ($ price, $ Product_id_id ) { Return $ Price

*

 $ Subscripting_length;}        The verification and authentication and subscription verification and subscribe Renewal     The next step is to check whether a pre -paid subscription package for the product. If it is, the order status will be changed to \" processing \", and the payment status will be updated to \" to complete 

\” until the subscription is over.

ADD_ACTION (

\u0026#39; scheduled_subscripting_payment \u0026#39;

,

\u0026#39; wdm_Chage_order_Status \u0026#39; 10 , 2 ); 123] Function

wdm_chage_order_status

($ User_id, $ Subscripting_Key) {

// If the user has paid changes in advance, the subscription is renewed, otherwise the subscription }

In short

in the prepaid subscription or prepayment function in the woocommerce to the website owner and the website owner and Administrators are good. Although on the client, it makes the purchase process easier and the subscription is not hindered, but it reduces the expenses and ensures that the administrator is satisfied.

Then, when will you add this successful feature to your Woocommerce store?

Want to add a pre -paid subscription package function to your WooCommerce store?

Talk to our Wooocommerce experts

The picture is provided by freepik [ 123]

关于WooCommerce 订阅的进一步阅读:[123 ] How to use Woocommerce subscription to provide installment payment 5 steps to subscribe to WooCommerce to prevent failure The first 6 WOOCOMMERCE subscription features. Your website needs

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *