• Resolved delilahwaan

    (@delilahwaan)


    I want to offer a bundle of a physical product and a downloadable product. The downloadable product has a specified release date which is going to be a month before the physical product becomes available.

    I am using the WPC Composite Products for WooCommerce plugin to manage the bundle, as it allows me to do bundle discounts.

    The downloadable product is set to downloadable only (i.e. virtual product is off).

    I’ve run into a couple of things in my testing.

    Firstly, even though only products marked as BOTH virtual and downloadable should be auto-completing orders, WooCommerce seems to be skipping to autocompleting every order with a downloadable OR only virtual product in it. This continues to be the case even if I have the “Grant access to downloadable products after payment” option deselected in the “Access restriction” settings.

    Secondly, I’d like to be able to send the downloadable product and allow download from a specific date. As I understand, you can only send the links once you mark the order as complete. But if I have different available dates for the physical product, I don’t want to mark the entire order as complete, until the physical product is also shipped. I think I can get around this by selecting the “Grant access to downloadable products after payment” option for new orders that come in after the digital product is available but before the physical product is available, is this correct?

    System Status Report

    ### WordPress Environment ###
    
    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.4.1
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ? 3.8.2
    Log Directory Writable: ? To allow logging
    make /home/public/wp-content/uploads/wc-logs/ writable.
    
    WP Version: 6.7
    WP Multisite: –
    WP Memory Limit: ? 40 MB - We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.1.30-nfsn2
    PHP Post Max Size: 10 MB
    PHP Time Limit: 180
    PHP Max Input Vars: 1000
    cURL Version: 8.7.1
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    MySQL Version: 10.3.29-MariaDB-1:10.3.29+maria~xenial
    Max Upload Size: 10 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    [REDACTED]
    
    ### Post Type Counts ###
    
    attachment: 180
    custom_css: 2
    feedback: 3
    nav_menu_item: 2
    oembed_cache: 4
    page: 24
    post: 34
    product: 17
    protected_areas: 1
    revision: 896
    shop_coupon: 5
    shop_order: 30
    wp_block: 1
    wp_global_styles: 2
    wp_navigation: 2
    wp_template: 17
    wp_template_part: 8
    wpcode: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (15) ###
    
    Allow ePUB and MOBI formats upload: by eKnizky.sk – 1.0
    Passster: by Patrick Posner – 4.2.7
    CookieYes | GDPR Cookie Consent: by CookieYes – 3.2.7
    Editor Plus: by Munir Kamal – 2.10.0
    Gutenberg: by Gutenberg Team – 19.6.2
    MailerLite - Signup forms (official): by MailerLite – 1.7.13
    PixelYourSite: by PixelYourSite – 10.0.0
    Product Pre-Orders for Woocommerce: by VillaTheme – 1.2.5
    Advanced Shipment Tracking for WooCommerce: by zorem – 3.7.1
    MailerLite - WooCommerce integration: by MailerLite – 2.1.25
    WooCommerce Order Test - WP Fix It: by WP Fix It – 3.4
    WooCommerce Product Dependencies: by WooCommerce – 2.0.1
    WooCommerce Square: by WooCommerce – 4.8.3
    WooCommerce: by Automattic – 9.4.1
    WPC Composite Products for WooCommerce: by WPClever – 7.3.8
    
    ### Inactive Plugins (4) ###
    
    Google Analytics for WooCommerce: by WooCommerce – 2.1.8
    Jetpack: by Automattic – 14.0
    Site Kit by Google: by Google – 1.139.0
    WPCode Lite: by WPCode – 2.2.3.1
    
    ### Settings ###
    
    Legacy API Enabled: –
    Force SSL: –
    Currency: AUD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: composite (composite)
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    woosb (woosb)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ?
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    ### Logging ###
    
    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 0 B
    
    ### WC Pages ###
    
    Shop base: #477 - /shop/
    Cart: #478 - /cart/ -  Contains the woocommerce/cart block
    Checkout: #479 - /checkout/ -  Contains the woocommerce/checkout block
    My account: #480 - /my-account/
    Terms and conditions: #481 - /refund_returns/
    
    ### Theme ###
    
    Name: Livro
    Version: 1.0.25
    Author URL: https://automattic.com/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ? Not declared
    
    ### Templates ###
    
    Overrides: /home/public/wp-content/plugins/woocommerce/templates/block-notices/error.php
    /home/public/wp-content/plugins/woocommerce/templates/block-notices/notice.php
    /home/public/wp-content/plugins/woocommerce/templates/block-notices/success.php
    
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store
    
    Disabled Features: product-data-views
    experimental-blocks
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    blueprint
    reactify-classic-payments-settings
    use-wp-horizon
    
    Daily Cron: ? Next scheduled: 2024-11-17 07:01:03 +10:00
    Options: ?
    Notes: 143
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 3,052
    Oldest: 2024-10-17 03:49:51 +0000
    Newest: 2024-11-17 03:36:15 +0000
    
    Failed: 27
    Oldest: 2023-02-15 17:06:20 +0000
    Newest: 2024-06-10 22:00:16 +0000
    
    Pending: 4
    Oldest: 2024-11-17 04:06:01 +0000
    Newest: 2024-11-21 04:29:49 +0000
    
    
    ### Status report information ###
    
    Generated at: 2024-11-17 13:47:10 +10:00
    • This topic was modified 5 days, 14 hours ago by delilahwaan.
    • This topic was modified 5 days, 14 hours ago by delilahwaan. Reason: Fix typo
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter delilahwaan

    (@delilahwaan)

    OK an update:

    I went through and deactivated all plugins except Woocommerce, and put through a test order. Behavior for check out of virtual only and downloadable only products were both correct. Behavior of virtual AND downloadable products also correct.

    I then reenabled the plugins one by one and put through more test orders. No issues found.

    Weirdly enough, as part of deactivating all the plugins except for Woocommerce, I now have this error:

    Warning: touch(): Utime failed: Operation not permitted in?/home/public/wp-admin/includes/class-wp-filesystem-direct.php?on line?529

    Warning: chmod(): Operation not permitted in?/home/public/wp-admin/includes/class-wp-filesystem-direct.php?on line?173

    Looking at the permissions on the file, I’m not sure why the error is being triggered:

    -rw-rw-r--  1 delilahwaan  delilahwaan   18143 Apr  3  2024 class-wp-filesystem-direct.php

    Any thoughts?

    Thread Starter delilahwaan

    (@delilahwaan)

    …the new PHP error is being thrown because of some sort of cache issue ?????♀? and everything is now working correctly. Never mind!

    Plugin Support Jonayed Hosen (woo-hc)

    (@jonayedhosen)

    Hi @delilahwaan ,

    Great work on troubleshooting this issue! I’m glad to hear you’ve resolved it on your end and appreciate you sharing the solution with the community. It’s always helpful for others facing similar challenges.

    I’ll go ahead and mark this topic as resolved. If you need any further assistance with WooCommerce core, don’t hesitate to create a new topic—we’re here to help!

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.