PrestaShop

PrestaShop 8.2 Virtual Product Downloads: Mastering Bank Transfer Delivery

Selling virtual products like e-books, software licenses, or online consulting sessions has become a cornerstone of modern e-commerce. It offers flexibility, scalability, and often higher profit margins compared to physical goods. However, ensuring a seamless and automated delivery process for these digital items, especially when dealing with diverse payment methods like bank transfers, can present unique challenges for PrestaShop merchants.

At Migrate My Shop, your PrestaShop Migration Hub, we frequently encounter scenarios where merchants, despite having a robust PrestaShop setup, face hurdles in specific operational flows. A recent PrestaShop forum thread highlighted a common issue in PrestaShop 8.2.0: virtual product download links failing to send after a bank transfer payment was manually marked as 'Payment accepted', even though card payments worked flawlessly.

This guide delves deep into this problem, offering a comprehensive solution and best practices for configuring your PrestaShop 8.2 store to ensure reliable virtual product delivery across all payment types.

PrestaShop Order Status Configuration for Virtual Products
PrestaShop Order Status Configuration for Virtual Products

The Core Problem: Order Status Configuration & Download Trigger

The merchant in question had a new PrestaShop 8.2.0 installation, selling PDF guides and online consulting. While card payments correctly triggered the email with the download link, bank transfers did not. The process involved manually changing the order status from 'Awaiting bank wire payment' to 'Payment accepted' once funds cleared. Despite 'Payment accepted' having 'Consider the associated order as validated' checked, the download link email was not sent, nor was the link visible in the customer's order history.

This scenario points to a critical misunderstanding of how PrestaShop's order statuses interact with virtual product delivery mechanisms. The solution lies in understanding two specific, yet often overlooked, flags within PrestaShop's order status configuration:

  • "Consider the associated order as validated" (logable): This flag is absolutely essential for triggering the download_product email. The email is dispatched when an order transitions from a non-logable state to a logable state. If the initial 'Awaiting payment' state is already logable, this crucial transition never occurs, and the email won't send.
  • "Set the order as paid" (paid): This flag controls the visibility of the download link in the customer's order history and on the dedicated download page. For the customer to access their purchased virtual product, the current order state must have this flag checked.

Correcting Your PrestaShop Order Statuses

To resolve the download link issue for bank transfers in PrestaShop 8.2, follow these steps:

  1. Navigate to Shop Parameters > Order Settings > Order Statuses.
  2. For 'Awaiting bank wire payment' (or similar initial bank transfer status): Ensure that "Consider the associated order as validated" (logable) is UNCHECKED. By default, this should be the case, but it's vital to confirm. If it's checked, the system won't detect a 'validation' transition when you move it to 'Payment accepted'.
  3. For 'Payment accepted': Ensure that BOTH "Consider the associated order as validated" (logable) AND "Set the order as paid" (paid) are CHECKED. The logable flag will trigger the email upon transition from 'Awaiting bank wire payment', and the paid flag will make the download link accessible in the customer's account.

It's important to note that, contrary to some older PrestaShop versions or common assumptions, there is no specific checkbox labeled "Téléchargement des produits virtuels activé" (Download virtual products enabled) in PrestaShop 8.2.x order status configuration. The logic is handled by the combination of the logable and paid flags.

Beyond Statuses: The `download_hash` and Order Creation

Another critical, yet subtle, point highlighted in the forum discussion relates to the download_hash. This unique identifier, which links an order detail to its virtual product file, is generated and written into the ps_order_detail table at the very moment the order is placed.

If you created a virtual product, placed a test order, and then attached the actual PDF file to the product, that specific test order will never have a download_hash associated with it. Consequently, no download link can ever be generated or sent for that particular order.

Diagnostic Tip: To verify this, you can check your database. Replace `XX` with your order ID and `ps_` with your table prefix:

SELECT product_id, download_hash, download_deadline FROM ps_order_detail WHERE id_order = XX;

If the `download_hash` is empty for your problematic bank transfer order, you've found your culprit. The solution is simple: ensure the virtual file is attached to the product before any customer places an order, and then perform a new test order.

Addressing the Validity Period Conundrum

The merchant also inquired about the start date for the virtual product's validity period (e.g., 30 days). In PrestaShop 8.2, the download_deadline (the expiration date for the download link) is calculated at the time of order creation, not payment validation. This means if a bank transfer takes 2-3 days to clear, the customer effectively loses those days from their download window.

While PrestaShop 8.2 does not offer a built-in mechanism to recalculate this deadline upon payment validation, you have a few options:

  • Extend the Duration: The simplest workaround is to increase the validity period for your virtual products. If you typically offer 30 days, consider setting it to 35 or 40 days to account for potential payment delays.
  • Clear Communication: Inform your customers about the potential delay in download link availability for bank transfers and the start of the validity period.
  • Custom Module (Advanced): For more precise control, a custom PrestaShop module could be developed to dynamically adjust the download_deadline upon a specific order status change (e.g., 'Payment accepted'). This would require development expertise.

Enhancing Customer Experience for Service Bookings

For virtual products like consulting sessions, the merchant used a text customization field for customers to suggest a desired date. While simple, text fields lack validation and can lead to scheduling conflicts.

Without resorting to paid modules, here are some alternatives:

  • Text Field (Simplest): Continue using the text customization field. It's straightforward but requires manual follow-up and confirmation with the customer.
  • Product Variations as Time Slots: This is a clever, free alternative. Create product attributes for 'Date' and 'Time Slot'. For each consulting service, create combinations (variations) for specific dates and times you offer. Set the stock for each combination to '1' (or the number of available slots). Customers then select an actual available slot, preventing double bookings. This requires manual updating of combinations as slots are booked or new ones become available, but offers a more structured booking experience.

Best Practices for Seamless Virtual Product Sales

  • Thorough Testing: Always test your virtual product purchase flow with all enabled payment methods, including edge cases like bank transfers, before going live.
  • Clear Communication: Provide clear instructions to customers, especially for bank wire payments, regarding the process and expected delivery times for their digital goods.
  • Monitor Email Logs: Regularly check your PrestaShop email logs (if enabled) or your hosting provider's mail logs to ensure all transactional emails, including download links, are being sent successfully.
  • Consider Dedicated Modules: While the goal here was to avoid paid modules, for complex virtual product scenarios (e.g., license key generation, advanced download management), investing in a reputable PrestaShop virtual product module can significantly enhance functionality and automation.
  • Regular Updates: Keep your PrestaShop installation, modules, and theme updated to benefit from the latest features, security patches, and bug fixes.

Mastering virtual product delivery in PrestaShop, especially with payment methods like bank transfers, requires a precise understanding of order status configurations and system logic. By correctly setting your logable and paid flags, ensuring your virtual files are attached pre-order, and understanding the nuances of download deadlines, you can provide a smooth and automated experience for your customers.

If you're facing complex e-commerce challenges, considering a platform migration, or need expert assistance optimizing your PrestaShop store, don't hesitate to reach out to Migrate My Shop. We're here to ensure your online business thrives.

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools