carlofattori
Forum Replies Created
-
Forum: Plugins
In reply to: [Free Downloads WooCommerce] free download in product tableif it is not a solution that allows you to have the button “download for free” directly in the product table close the post
Forum: Plugins
In reply to: [Free Downloads WooCommerce] free download in product tableI solved by deleting the “add to cart” button in the product table and leaving only the link to the product. in this way accessing the product activates the “free download”.
Forum: Plugins
In reply to: [WooCommerce] warning … array offset on value of type null …after several attempts I saw that the problem disappears if you enable coupons (WooCommerce->Settings Enable coupons).
in my case I do not need this option but I will use it as a workaroundForum: Plugins
In reply to: [WooCommerce] warning … array offset on value of type null …### WordPress Environment ### WordPress address (URL): https://localhost/progetti/wp_emmerre Site address (URL): https://localhost/progetti/wp_emmerre WC Version: 6.6.0 REST API Version: ? 6.6.0 WC Blocks Version: ? 7.6.0 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: it_IT External object cache: – ### Server Environment ### Server Info: Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.6 PHP Version: 8.1.6 PHP Post Max Size: 40 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.77.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 10.4.24-MariaDB Max Upload Size: 40 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Il tuo server non ha la classe SoapClient attiva - alcuni plugin gateway che usano SOAP potrebbero non funzionare correttamente. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.6.0 WC Database Prefix: wp_ Dimensione totale database: 10.44MB Dimensione dati database: 7.75MB Dimensione indice database: 2.69MB wp_woocommerce_sessions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_woocommerce_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_order_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_actionscheduler_actions: Dati: 0.02MB + indice: 0.11MB + motore InnoDB wp_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_actionscheduler_logs: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_check_email_log: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_commentmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_comments: Dati: 0.02MB + indice: 0.09MB + motore InnoDB wp_e_events: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_gla_budget_recommendations: Dati: 0.22MB + indice: 0.14MB + motore InnoDB wp_gla_merchant_issues: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_gla_shipping_rates: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_gla_shipping_times: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_custom_fields: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_dynamic_segment_filters: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_feature_flags: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_forms: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_mailpoet_log: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_mailpoet_mapping_to_external_entities: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_newsletters: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_newsletter_links: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_mailpoet_newsletter_option: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_newsletter_option_fields: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_newsletter_posts: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_newsletter_segment: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_newsletter_templates: Dati: 2.52MB + indice: 0.00MB + motore InnoDB wp_mailpoet_scheduled_tasks: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_scheduled_task_subscribers: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_segments: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_sending_queues: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_settings: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_statistics_bounces: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_mailpoet_statistics_clicks: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_mailpoet_statistics_forms: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_statistics_newsletters: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_statistics_opens: Dati: 0.02MB + indice: 0.08MB + motore InnoDB wp_mailpoet_statistics_unsubscribes: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_mailpoet_statistics_woocommerce_purchases: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_mailpoet_stats_notifications: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_subscribers: Dati: 0.02MB + indice: 0.13MB + motore InnoDB wp_mailpoet_subscriber_custom_field: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_subscriber_ips: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_subscriber_segment: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_mailpoet_user_agents: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailpoet_user_flags: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_options: Dati: 3.05MB + indice: 0.06MB + motore InnoDB wp_postmeta: Dati: 0.14MB + indice: 0.06MB + motore InnoDB wp_posts: Dati: 0.13MB + indice: 0.06MB + motore InnoDB wp_smtpmail_data: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_snippets: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_termmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_term_relationships: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_usermeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_users: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_wc_admin_notes: Dati: 0.05MB + indice: 0.00MB + motore InnoDB wp_wc_admin_note_actions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wc_customer_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_wc_order_product_lookup: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_wc_order_stats: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_wc_order_tax_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_wc_product_attributes_lookup: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_product_download_directories: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_product_meta_lookup: Dati: 0.02MB + indice: 0.09MB + motore InnoDB wp_wc_rate_limits: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wpml_mails: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wpsmtp_logs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB ### Post Type Counts ### attachment: 14 customize_changeset: 16 elementor_library: 1 mailpoet_page: 1 nav_menu_item: 3 page: 13 post: 2 product: 4 revision: 34 shop_order: 1 somdn_temp_download: 19 somdn_tracked: 15 wp_global_styles: 2 ### Security ### Secure connection (HTTPS): ? Il tuo negozio non utilizza HTTPS. Scopri di più su HTTPS e certificati SSL . Hide errors from visitors: ? ### Active Plugins (6) ### Code Snippets: by Code Snippets Pro – 3.1.1 Elementor: by Elementor.com – 3.6.6 Jetpack: by Automattic – 11.0 SMTP Mail: by PB One – 1.2.13 Free Downloads WooCommerce Pro: by Square One Media – 3.5.1 WooCommerce: by Automattic – 6.6.0 ### Inactive Plugins (7) ### Akismet Anti-Spam: by Automattic – 4.2.4 Free Downloads WooCommerce: by Square One Media – 3.5.1 Google Listings and Ads: by WooCommerce – 1.13.5 Hello Dolly: by Matt Mullenweg – 1.7.2 MailPoet 3 (New): by MailPoet – 3.90.1 WooCommerce Menu Cart: by WP Overnight – 2.12.0 WooCommerce Payments: by Automattic – 4.3.0 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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: ? ### WC Pages ### Shop base: #6 - /negozio/ Carrello: ? La pagina non è impostata Pagamento: ? La pagina non è impostata Il mio account: #9 - /mio-account/ Termini e condizioni: ? La pagina non è impostata ### Theme ### Name: Storefront Version: 4.1.0 Author URL: https://woocommerce.com/ Child Theme: ? – Se stai modificando WooCommerce o un tema genitore che non hai costruito personalmente ti consigliamo di utilizzare un tema child. Vedi: Come creare un tema child WooCommerce Support: ? ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ? Next scheduled: 2022-06-17 11:16:52 +02:00 Options: ? Notes: 48 Onboarding: completed ### Action Scheduler ### Completato: 38 Oldest: 2022-06-09 11:56:49 +0200 Newest: 2022-06-16 07:05:04 +0200 In attesa: 1 Oldest: 2022-06-17 07:05:04 +0200 Newest: 2022-06-17 07:05:04 +0200 ### Status report information ### Generated at: 2022-06-16 20:08:33 +02:00
Forum: Plugins
In reply to: [Free Downloads WooCommerce] free downloadable productsthanks Richard for the help but I did not solve (maybe I make some mistakes myself).
I used the plugin code snippet to add and activate the snippet:
add_filter(‘somdn_is_free’,’__return_true’,99);
I also tried to insert the other 2 lines of code (remove_filter and remove_action) but the paid item still not to be downloaded for free.the plugin code snippet displays a message:
“…ray offset on value of type null in C:\xampp\htdocs\progetti\wp_emmerre\wp-content\plugins\woocommerce\src\Admin\Features\Navigation\CoreMenu.php on line 231”probably has nothing to do with it but in any case I show below the contents of line 231 of the CoreMenu file.php
array_merge( $product_items[‘new’], array( ‘order’ => 50 ) ),
$coupon_items[‘default’], <— row 231
// Marketplace category.
array(question1
———
wanting to manually enter the code (without plugin code snippet), in which file and in which position should I insert it ?question2
———
in the email I received there were 3 lines of code:
remove_filter(…
remove_action(…
add_filter(…in the answer on the web (the one I’m replying to) there is only one line
add_filter(…do I have to enter 3 lines of code or 1 ?
thanks in advance