Skip to content

Configure the Subscription

Let’s see how to configure subscription purchasing on a catalog product using variations with Purchase Type and Subscription Frequency attributes.

Access Subscription Frequencies and Create New Ones

Section titled “Access Subscription Frequencies and Create New Ones”

When installing the Ciklik module, subscription frequencies are already available and can be applied to products of your choice.

They can be found in the Catalog > Attributes and Features section, then Attributes > Subscription Frequency.

You can create new frequencies in this section from PrestaShop version 8 onwards, they will then be available to be applied as variations to products you want to sell by subscription.

If you are on version 1.7.7, here is how to proceed: create a subscription frequency

Configure the Subscription Offer for a Product

Section titled “Configure the Subscription Offer for a Product”

The first step is to change the product from Simple Product status to Product with Variations status.

Then go to the Variations tab of the product and using the variation generator, you can create as many variations as subscription frequency options desired.

You can then modify the price for each variation in Price Impact (excl. tax) if you want to offer an advantage to subscribers.

Once the variations are generated, you have the flexibility needed to manage:

  • SKUs: which can remain identical regardless of the purchase type for the given product (one-time or subscription)
  • unique IDs per variation
  • a unique price per variation

All that remains is to check the “Accept Orders” box in the Availability Preferences section of the product.

Mode 2: Using the Alternative to Variations

Section titled “Mode 2: Using the Alternative to Variations”

Let’s see how to use an alternative mode to variations, in favor of a system based on dedicated frequency tables.

This mode is activated in the module settings.

Once the frequencies are created in the database in the new table, they are available in the Module tab from the product detail page.

Frequencies become checkboxes to make the product eligible for subscription at different frequencies.

For each frequency, you have the option to define:

  • A percentage discount
  • Or a fixed value discount

This mode avoids any catalog synchronization and allows adding or removing frequencies without modifying the product. Stock management is unified for all frequencies.

You can offer subscriptions with a commitment cycle.

This prevents your customers from unsubscribing for the duration of the commitment.

This feature is activated in the module settings, by selecting Enable Commitment and choosing the commitment duration.

The feature can be enabled or disabled as needed.

The commitment duration applies to all subscriptions offered on your site.

The commitment cycle corresponds to a period during which a customer cannot unsubscribe. The commitment is not linked to a minimum number of orders.

The advantages of this feature are as follows:

  • Offer a discount when subscribing without risking immediate cancellation
  • Support the customer in adopting the subscription product or service
  • Control marketing acquisition and retention costs

You can allow your subscribers to add non-recurring products to their next order.

This upsell feature is activated in the Ciklik module.

With upsell enabled, an add to subscription button is visible on product pages when the visitor is logged into their account.

Logged-in users can add a product to their next subscription order directly from product pages.

A popup allows selecting the target subscription.

The subscriber finds in their customer area, My Subscriptions section, the details of additional products for each subscription.

They can remove non-recurring products before their next order.

Note:

  • Upsell requires user authentication to display the option
  • Added products are delivered only once on the next rebill
  • Compatible with active subscriptions only

The advantages of the upsell feature are:

  • Increased average basket and revenue: By suggesting relevant complementary products, you naturally encourage your customers to spend more.
  • Enhanced customer loyalty: By offering a wider range of complementary products, you give your customers more reasons to discover new products and stay loyal to your brand.
  • Reduced customer acquisition costs: By maximizing sales to your existing subscriber base, you reduce pressure on acquiring new customers, which is often more expensive.

When the module is installed, the available subscription frequencies are:

  • Monthly
  • Every 2 months
  • Every 3 months

For creating additional subscription frequencies, it is directly possible on PrestaShop 8+ in the Attributes section.

On PrestaShop 1.7.7+ there are database manipulations to perform.

Here is the complete procedure:

  • First, you need to create a new attribute in the PrestaShop admin, on the “Subscription Frequency” option.
  • Once this new attribute is created, you need to retrieve its id. In this example, we will assume that this new attribute has id 33, and it was to create a new 4-month frequency.
  • Then you need to connect to the database.
  • Go to the ciklik_frequencies table
  • Retrieve the id of the created frequency, e.g., 33.
  • Add a row in ciklik_frequencies with id_attribute as 33, interval as ‘month’, and interval_count as 4
  • Once done, the new attribute is available and can be used.

To hide other payment methods when there is a subscription in the cart,

open the file themes/{theme}/templates/checkout/_partials/steps/payment.tpl and add the following code above: {foreach from=$payment_options item="module_options"}

{assign var="ciklikOption" value=null}
{foreach from=$payment_options item="module_options"}
{if isset($module_options[0]) && $module_options[0].module_name == 'ciklik'}
{assign var="ciklikOption" value=$module_options}
{break}
{/if}
{/foreach}
{if $ciklikOption !== null}
{assign var="payment_options" value=[$ciklikOption]}
{/if}