WooCommerce

Advanced Subscriptions for WooCommerce 3.1.x

New branch 3.1.x of Advanced Subscriptions for WooCommerce: subscriptions with Bizum, a store copy that never charges your customers, start date on coupons, twelve more translations, and fixes on renewals and Redsys.

JC Jose Conti 8 min read
Banner de Advanced Subscriptions for WooCommerce 3.1 con un ciclo de renovación y un pago con Bizum

The development of this version has cost 1,800 euros. The accumulated cost for this year is 48,410 euros. The accumulated cost since the first version is 48,410 euros, but the cost for you is only the license from 80€.

New branch 3.1.x of the plugin Advanced Subscriptions for WooCommerce. Its major novelty is subscriptions with Bizum: the included Bizum gateway can now sell subscriptions and charge their renewals automatically, without the customer needing to be present. Additionally, a copy of your store (a staging environment) never charges your customers or sends them emails, coupons can have a start date, the plugin comes translated into twelve more languages, and brings a good list of fixes on renewals, discounts, and the Redsys gateway.

Versions of the branch

3.1.0

Important:

  • Recommended update for all stores: includes charging fixes on renewals and the included Redsys gateway.
  • Subscriptions with Bizum are disabled. Activate them only if your bank has enabled recurring payments with Bizum on your terminal, as not all banks offer them yet.
  • When updating, the plugin saves your store's address as the real (production) address. If the store runs later at another address, or if the type of WordPress environment is 'staging', 'development', or 'local', renewals are created but remain pending, not charged, and no subscription emails are sent to customers. If you change the domain for real, indicate the new address in Advanced Settings › 'Live site URL' or click 'This is the production site: enable payments' in the notice.

New:

  • Subscriptions with Bizum: the included Bizum gateway can sell subscriptions and charge their renewals automatically, without the customer present (recurring payments with Bizum from Redsys). It is activated with 'Offer Bizum for subscriptions' in the Bizum settings.
  • The customer's Bizum is saved as a payment method, just like a card: it appears in My Account › Payment Methods ('Bizum ending in …'), where it can be deleted or a new one added. Renewals are charged with the customer's most recent Bizum, and a renewal that Redsys denies goes to normal retries.
  • Maximum renewal amount for Bizum: Bizum associates each saved Bizum with an amount, so it is advisable to indicate in 'Maximum renewal amount' the highest renewal you expect. Without it, renewals can only be exactly the amount of the first payment, and Bizum is not offered in 'Add payment method'. A renewal above the customer's limit is not charged, and the order explains the reason. Bizum is not offered for subscriptions that renew less frequently than once a year, as a saved Bizum expires after a year of inactivity.
  • If Redsys responds to a renewal with a new recurring payment identifier (TID), the saved Bizum will start using it and retain its limit.
  • A copy of your store never charges your customers: a staging site, or any copy at another address (another domain or a subfolder), leaves its renewals pending, without calling any payment gateway and without sending subscription emails to customers. The plugin remembers the real address so that the search and replace of a cloning tool cannot change it, and shows a notice in the copy.
  • Start date for coupons: each coupon can have a 'Valid from' date next to its expiration date. Before that date, it cannot be applied, and the customer sees from when they can use it. Subscriptions that already have a recurring coupon retain their discount on renewals.
  • Twelve more translations included: Catalan (ca), Basque (eu), Galician (gl_ES), Portuguese from Portugal (pt_PT) and Brazil (pt_BR), French (fr_FR), Italian (it_IT), German (de_DE, informal, and de_DE_formal), Dutch (nl_NL, informal, and nl_NL_formal), and Polish (pl_PL). The entire plugin is translated, including the Redsys, Bizum, Google Pay, and Inespay gateways that are built-in.
  • Translation into Spanish (es_ES) completed: the last two untranslated texts are now in Spanish.
  • The fields for discount tiers by renewal, in the product and in each variation, are announced with the name of their column in screen readers.

Fixed:

  • A subscription with a duration ends on its date. Each renewal used to add the full duration to the end date, so a subscription set to last, for example, three months would never expire. Now the end date is fixed when starting the subscription, and renewals do not change it.
  • A canceled subscription is never charged. A renewal is only charged while its subscription is active or pending payment. A subscription pending cancellation could be charged if it had an unpaid renewal, and payment retries and the 'Retry Pending Order Payment' action from the admin did not check the subscription status.
  • A subscription that the store puts on hold is not charged. If you put it on hold (the 'On hold' status in its edit screen or the bulk action), its renewals wait until you reactivate it. A subscription on hold because a payment failed retains its retries.
  • Canceling a paid order cancels its subscription. Canceling the first paid order of a subscription now also cancels it, as a full refund already did. Previously, the subscription could remain active, and a subscription pending that order could even be deleted.
  • The renewal of a deleted subscription is never charged: a renewal order whose subscription no longer exists is rejected, and the 'Retry Pending Order Payment' action follows the same rules as automatic charging.
  • One Redsys gateway, one charge. If the WooCommerce Redsys Gateway plugin was installed in a folder with another name, the included Redsys gateway was also loaded, and a renewal could be charged twice. Now the included one is removed in any case.
  • A renewal never charges another customer's order. A subscription that had lost its link with its last renewal could take the most recent unpaid order from the store, from any customer, and charge it. Now it only looks at its own renewal orders.
  • The discount tiers configured on the product screen are saved: the tiers, type, and discount switch of the product and each variation were not saved when updating the product. Now they are, just like the rest of the settings that are saved the same way: the start date of the product and its variations, the discount of the first payment, and role discounts.
  • Variations can have more than one discount tier: '+ Add Tier' adds a tier to that variation, and it is enough to remove one to save it.
  • An unpaid manual renewal receives a reminder, not a second order. With cash on delivery, bank transfer, or check, the payment retry twelve hours after an unpaid renewal created a second pending renewal order for the same period and sent a second invoice. Now it resends, as a reminder, the invoice of the order that is already waiting.
  • A failed renewal that the customer pays with a card is marked as paid. When a renewal failed and the customer paid for it later through Redsys, the order remained as failed. Now it is marked as paid, and the subscription is active again. A subsequent rejection from Redsys on a failed order adds a note and leaves it failed, never canceled.
  • License activation: when the license server rejects a key, its message is displayed as normal text, without literal HTML tags, and no longer appears next to 'Your settings have been saved.'. Changing an active license key for another now activates the new one.

Security:

  • My Account › Add payment method: the Redsys form to add a card (or a Bizum) only opens for the customer who requested it.
  • License activation checks, in addition to the nonce of the settings, that the user can manage WooCommerce.

Development:

  • New filters: aswc_is_staging_site, aswc_coupon_valid_from, aswc_coupon_is_valid_yet, aswc_send_manual_renewal_reminder, aswc_subscription_chargeable_statuses (can only reduce the list) and aswc_cancel_subscription_on_parent_order_cancelled.
  • New actions: aswc_manual_renewal_reminder_sent and aswc_subscription_cancelled_on_parent_order_cancelled.
  • New setting 'Live site URL' in Advanced Settings. See docs/hooks-reference.md.

Compatibility:

  • Tested up to WordPress 7.1 and WooCommerce 11.1.0.
  • Requires WordPress 6.5 or higher, WooCommerce 8.0 or higher, and PHP 7.4 or higher.
  • Fully compatible with WooCommerce's high-performance order storage (HPOS) and with the Cart and Checkout blocks.
  • Still works autonomously, without relying on the WooCommerce Subscriptions extension.

¡No te pierdas las novedades!

¡No hacemos spam! y te puedes dar de baja cuando quieras

Share
JC
Jose Conti
Desarrollador WordPress y WooCommerce. Buceando en WordPress desde 2004.

Leave your comment

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