How to ‘write-protect’ a product?
-
Is it possible to write-protect a product if I have manually edited it? There are a handful of errors in the data feed that we use and each time I make a correction, the error reappears when the next data feed updates.
-
Hi @gemini23
Thanks for reaching out!
Firstly, I apologize for the delayed response.
Can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively?
If you don’t already have a screenshot service installed, you can try https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.
Thanks
I have managed to ‘write-protect’ the description (from the code from the datafeed exporter) – but is there a way to ‘write-protect’ the price?
ie so that if there is an update in the data feed, it doesn’t override the price – basically there are a few errors in the prices in the data feed and I have to amend them manually.. and have to re-amend when the product feed updates.
https://www.londontheatre1.com/shows/cabaret-kit-kat-club-at-the-playhouse/
- This reply was modified 1 year, 11 months ago by Gemini23.
Hi there @gemini23 ??
I have managed to ‘write-protect’ the description (from the code from the datafeed exporter) – but is there a way to ‘write-protect’ the price?
Could you elaborate further on how you were able to “write-protect” the description, please?
ie so that if there is an update in the data feed, it doesn’t override the price – basically there are a few errors in the prices in the data feed and I have to amend them manually.. and have to re-amend when the product feed updates.
I am checking the page at https://www.londontheatre1.com/shows/cabaret-kit-kat-club-at-the-playhouse/ and the “Buy here” button links to an external site.
In order to understand the store’s setup better, could you please share a copy of your site’s System Status? You can find it via
WooCommerce > Status
. SelectGet system report
and then click theCopy for support
button.?You can either paste it in your response here, or use https://pastebin.com/ for pasting it there and sharing it with us.Looking forward to hearing from you!
Hi
I used the following code (as provided by the data feed ‘provider’)
/**
* Prevent product titles, descriptions & excerpts from being overwritten during Product Set updates.
*
* @param array $post Array containing WordPress Post information.
* @param array $product Array containing Datafeedr Product information.
* @param array $set Array containing Product Set information.
* @param string $action Either “update” or “insert” depending on what the Product Set is doing.
*
* @return array Updated $post array.
*/
function mycode_prevent_product_title_content_excerpt_override( $post, $product, $set, $action ) {if ( ‘insert’ == $action ) {
return $post;
}unset( $post[‘post_title’] ); // Prevent title from being overwritten.
unset( $post[‘post_content’] ); // Prevent description from being overwritten.
unset( $post[‘post_excerpt’] ); // Prevent excerpt from being overwritten.return $post;
}add_filter( ‘dfrpswc_filter_post_array’, ‘mycode_prevent_product_title_content_excerpt_override’, 999, 4 );`
And Woocommerce System Report as follows
### WordPress Environment ### WordPress address (URL): https://www.londontheatre1.com Site address (URL): https://www.londontheatre1.com WC Version: 7.1.0 REST API Version: ? 7.1.0 WC Blocks Version: ? 8.7.5 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1q-fips SUHOSIN Installed: – MySQL Version: 5.7.39-42-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.1.0 WC Database Prefix: wp_ Total Database Size: 683.28MB Database Data Size: 527.05MB Database Index Size: 156.23MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b2s_posts: Data: 0.02MB + Index: 0.14MB + Engine InnoDB b2s_posts_network_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b2s_posts_sched_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b2s_user: Data: 0.02MB + Index: 0.05MB + Engine InnoDB b2s_user_contact: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b2s_user_network_settings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_Aalb_Asin_Response: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_aal_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_aal_request_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 13.52MB + Index: 14.38MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 11.52MB + Index: 7.03MB + Engine InnoDB wp_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_failed_logins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_global_meta: Data: 17.50MB + Index: 0.00MB + Engine InnoDB wp_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_album: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_album_gallery: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_file_paths: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_gallery: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_image: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_image_comment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_image_rate: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_image_tag: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_shortcode: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bwg_theme: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.14MB + Index: 0.07MB + Engine MyISAM wp_comments: Data: 1.84MB + Index: 0.19MB + Engine MyISAM wp_dfrpswc_temp_trashable_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_easy_gallery: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_easy_gallery_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_em_bookings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_em_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_em_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_em_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_em_tickets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_em_tickets_bookings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_eo_events: Data: 0.04MB + Index: 0.04MB + Engine MyISAM wp_eo_venuemeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_ewwwio_images: Data: 5.59MB + Index: 3.44MB + Engine MyISAM wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gdsr_data_article: Data: 0.09MB + Index: 0.01MB + Engine MyISAM wp_gdsr_data_category: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_data_comment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_moderate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_multis: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_multis_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_multis_trend: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_multis_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gdsr_templates: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_gdsr_votes_log: Data: 0.05MB + Index: 0.05MB + Engine MyISAM wp_gdsr_votes_trend: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_grp_google_place: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_grp_google_review: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_hustle_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_hustle_entries_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_hustle_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_hustle_modules_meta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_hustle_tracking: Data: 2.52MB + Index: 5.52MB + Engine InnoDB wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_mapping_to_external_entities: Data: 0.20MB + Index: 0.13MB + Engine InnoDB wp_mailpoet_newsletters: Data: 0.41MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_newsletter_links: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_templates: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_premium_newsletter_extra_data: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_segments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_sending_queues: Data: 8.50MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_clicks: Data: 0.17MB + Index: 0.19MB + Engine InnoDB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_opens: Data: 1.52MB + Index: 1.22MB + Engine InnoDB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_subscribers: Data: 0.33MB + Index: 0.30MB + Engine InnoDB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_segment: Data: 0.25MB + Index: 0.17MB + Engine InnoDB wp_mappress_maps: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mappress_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_masterslider_options: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_masterslider_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mclean_refs: Data: 4.52MB + Index: 0.00MB + Engine InnoDB wp_mclean_scan: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mts_wp_reviews: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsletter: Data: 1.52MB + Index: 0.22MB + Engine InnoDB wp_newsletter_emails: Data: 5.52MB + Index: 0.00MB + Engine InnoDB wp_newsletter_sent: Data: 8.16MB + Index: 11.70MB + Engine MyISAM wp_newsletter_stats: Data: 6.52MB + Index: 5.03MB + Engine InnoDB wp_newsletter_user_logs: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_newsman_an_clicks: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_newsman_an_links: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_newsman_an_sub_details: Data: 0.07MB + Index: 0.04MB + Engine MyISAM wp_newsman_an_timeline: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_newsman_blocked_domains: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsman_emails: Data: 0.80MB + Index: 0.00MB + Engine MyISAM wp_newsman_email_templates: Data: 0.76MB + Index: 0.00MB + Engine MyISAM wp_newsman_lists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsman_locks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsman_lst_default: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_newsman_lst_special_offers: Data: 0.70MB + Index: 0.39MB + Engine MyISAM wp_newsman_lst_temporary: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsman_lst_wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_newsman_lst__test: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_newsman_mqueue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsman_sentlog: Data: 0.18MB + Index: 0.27MB + Engine MyISAM wp_newsman_timestamps: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_newsman_workers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_image_storage: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_section_storage: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_nextend2_smartslider3_generators: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nextend2_smartslider3_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_nextend2_smartslider3_slides: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_nggcf_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nggcf_fields_link: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_nggcf_field_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ngg_album: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ngg_gallery: Data: 0.10MB + Index: 0.02MB + Engine MyISAM wp_ngg_pictures: Data: 7.91MB + Index: 0.30MB + Engine MyISAM wp_options: Data: 24.03MB + Index: 0.43MB + Engine MyISAM wp_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_images: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_podsrel: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_postmeta: Data: 142.29MB + Index: 44.06MB + Engine MyISAM wp_posts: Data: 126.98MB + Index: 9.30MB + Engine MyISAM wp_po_plugins: Data: 1.07MB + Index: 0.41MB + Engine MyISAM wp_random_content_record: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_redirections: Data: 0.39MB + Index: 0.06MB + Engine InnoDB wp_rank_math_redirections_cache: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_rank_math_sc_analytics: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_redirection_404: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_redirection_modules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_review_user_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_review_user_profile: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rich_snippets_review: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_sgs_log_events: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_sgs_log_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_shortpixel_folders: Data: 0.14MB + Index: 0.05MB + Engine InnoDB wp_shortpixel_meta: Data: 6.52MB + Index: 1.73MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_stream: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_stream_meta: Data: 0.06MB + Index: 0.08MB + Engine InnoDB wp_tcb_api_error_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.79MB + Index: 0.21MB + Engine MyISAM wp_terms: Data: 0.02MB + Index: 0.06MB + Engine MyISAM wp_term_relationships: Data: 0.51MB + Index: 1.06MB + Engine MyISAM wp_term_taxonomy: Data: 0.04MB + Index: 0.02MB + Engine MyISAM wp_tge_answers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_tge_questions: Data: 0.22MB + Index: 0.02MB + Engine InnoDB wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_tqb_event_log: Data: 0.52MB + Index: 0.00MB + Engine InnoDB wp_tqb_results: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_tqb_tests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_tqb_tests_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_tqb_users: Data: 0.41MB + Index: 0.00MB + Engine InnoDB wp_tqb_user_answers: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_tqb_variations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_usermeta: Data: 0.68MB + Index: 0.26MB + Engine MyISAM wp_users: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 1.33MB + Index: 0.66MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBadLeechers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfBlocks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBlocksAdv: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfConfig: Data: 0.31MB + Index: 0.00MB + Engine InnoDB wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfFileMods: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_wfHits: Data: 1.52MB + Index: 0.36MB + Engine InnoDB wp_wfHoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfIssues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfKnownFileList: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wfLeechers: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wfLockedOut: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLogins: Data: 0.19MB + Index: 0.06MB + Engine InnoDB wp_wfNet404s: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfNotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfPendingIssues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfScanners: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wfSNIPCache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfStatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wfThrottleLog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfVulnScanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpil_report_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wysija_campaign: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_campaign_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_custom_field: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_email: Data: 13.52MB + Index: 0.00MB + Engine InnoDB wp_wysija_email_user_stat: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_email_user_url: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_wysija_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_queue: Data: 0.14MB + Index: 0.08MB + Engine InnoDB wp_wysija_url: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_wysija_url_mail: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wysija_user: Data: 0.50MB + Index: 0.16MB + Engine InnoDB wp_wysija_user_field: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_user_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_user_list: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_addons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_adv_shed_entries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_adv_task_delete: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_api_invocation_count: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_fb_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_ln_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_multiple_time_intervals_account: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_pi_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_tasks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_tb_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_smap_tw_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 64.61MB + Index: 18.03MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 5.28MB + Index: 6.98MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.36MB + Index: 0.31MB + Engine InnoDB wp_yoast_prominent_words: Data: 10.52MB + Index: 14.55MB + Engine InnoDB wp_yoast_seo_links: Data: 7.52MB + Index: 4.03MB + Engine InnoDB wp_yoast_seo_meta: Data: 2.52MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 4 acf-field-group: 1 attachment: 41130 blox: 2 customize_changeset: 8 custom_css: 2 datafeedr-productset: 95 displayed_gallery: 121 envira_album: 1 event: 11 gal_display_source: 5 is_search_form: 1 lightbox-slider: 1 lightbox_library: 7 location: 1 mailpoet_page: 1 ml-slider: 2 nav_menu_item: 127 newsman_ap: 7 ngg_album: 2 ngg_gallery: 1456 ngg_pictures: 15858 oembed_cache: 125 page: 263 photocrati-comments: 902 plugin_filter: 1 popup: 1 popup_theme: 6 post: 10964 product: 3143 revision: 10501 schema: 2 soliloquy: 1 tablepress_table: 4 thrive_image: 4 tqb_quiz: 4 tqb_results: 4 tribe_events: 4 tribe_organizer: 1 tribe_venue: 2 w4pl: 1 wpb-rs-global: 3 wpgae_click_event: 53 wpgae_scroll_event: 1 wysijap: 1 _pods_field: 21 _pods_page: 1 _pods_pod: 2 _pods_template: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (38) ### AddToAny Share Buttons: by AddToAny – 1.8.5 Advanced Custom Fields: by WP Engine – 6.0.5 Antispam Bee: by pluginkollektiv – 2.11.1 Attachment Pages Redirect: by Samuel Aguilera – 1.1.2 Category Sticky Post: by Tom McFarlin – 2.10.1 Classic Editor: by WordPress Contributors – 1.6.2 Conditional Menus: by Themify – 1.2.0 Custom Sidebars: by WebFactory Ltd – 3.36 Datafeedr API: by datafeedr.com – 1.3.8 Datafeedr Product Sets: by datafeedr.com – 1.3.13 Datafeedr WooCommerce Importer: by datafeedr.com – 1.3.3 Delete Expired Transients: by WebAware – 2.0.7 Display Posts: by Bill Erickson – 3.0.2 Gallery Custom Links: by Jordy Meow – 2.1.5 Genesis 404: by Bill Erickson – 1.5.0 Genesis Club Lite: by Russell Jamieson – 1.17 Genesis Connect for WooCommerce: by StudioPress – 1.1.1 Genesis Featured Page Advanced: by Nick Diego – 1.9.9 Genesis Design Palette Pro: by Reaktiv Studios – 1.3.20 Genesis Simple Edits: by StudioPress – 2.3.1 Genesis Simple Menus: by StudioPress – 1.1.1 Genesis Simple Sidebars: by StudioPress – 2.2.2 Genesis Widgetized Footer: by David Decker - DECKERWEB – 1.4.0 London Theatre: by Eric Busch – 1.0.3 My Custom Code: by – Newsletter: by Stefano Lissa & The Newsletter Team – 7.5.6 PB oEmbed HTML5 Audio - with Cache Support: by Pascal Bajorat – 2.6 SiteGround Optimizer: by SiteGround – 7.2.9 Customizer for WooCommerce: by SkyVerge – 2.7.7 WooCommerce: by Automattic – 7.1.0 (update to version 7.1.1 is available) Yoast SEO Premium: by Team Yoast – 19.5 Yoast SEO: by Team Yoast – 19.11 Asset CleanUp Pro: Page Speed Booster: by Gabe Livan – 1.2.2.7 WP Crontrol: by John Blackbourn & contributors – 1.15.0 WP File Manager: by mndpsingh287 – 7.1.7 WP Gallery Custom Links: by johnogg – 1.12 WP Google Analytics Events: by PineWise – 2.7.1 WP-TheatreData-To-Post: by Sabirul Mostofa – 1.0 ### Inactive Plugins (5) ### Classic Widgets: by WordPress Contributors – 0.3 Media Cleaner (Pro): by Jordy Meow – 6.2.5 My Custom Code: by – Query Monitor: by John Blackbourn – 3.10.1 WP Rollback: by GiveWP.com – 1.7.2 ### Must Use Plugins (1) ### Asset CleanUp Pro: Plugin Filtering: by Gabriel Livan – 1.0 ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left 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: #216598 - /atg-tickets/ Basket: #315419 - /basket/ Checkout: #315420 - /checkout/ My account: #315421 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Metro Pro Version: 2.2.2 Author URL: https://www.studiopress.com/ Child Theme: ? Parent Theme Name: Genesis Parent Theme Version: 3.4.0 Parent Theme Author URL: https://www.studiopress.com/ 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 shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-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 woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-12-12 16:26:48 +00:00 Options: ? Notes: 112 Onboarding: completed ### Action Scheduler ### Complete: 25,271 Oldest: 2022-11-11 22:41:40 +0000 Newest: 2022-12-12 00:32:37 +0000 Failed: 11,733 Oldest: 2021-02-18 19:17:03 +0000 Newest: 2022-12-09 23:00:36 +0000 Pending: 1 Oldest: 2022-12-12 22:56:53 +0000 Newest: 2022-12-12 22:56:53 +0000 ### Status report information ### Generated at: 2022-12-12 14:56:25 +00:00
Hi there @gemini23 ??
I have managed to ‘write-protect’ the description (from the code from the datafeed exporter) – but is there a way to ‘write-protect’ the price?
Thanks for reaching back, with further information on this.
I am inspecting the site’s System Status Report (SSR), and the following plugins stand out:
Datafeedr API: by datafeedr.com – 1.3.8
Datafeedr Product Sets: by datafeedr.com – 1.3.13
Datafeedr WooCommerce Importer: by datafeedr.com – 1.3.3I suggest getting in touch with their support channel, with this inquiry, since there are additional ones, like:
London Theatre: by Eric Busch – 1.0.3
My Custom Code: by –that point to additional custom code, that is not possible to share in a public forum like this.
Gut feeling: I suspect the solution might be along the lines of adding the following line to the snipped you shared:
unset( $product[‘price’] ); // Prevent product prices from being overwritten
Again, the snippet mentioned right above is just an idea.
I trust that points you in the right direction, but if you have more questions, let us know. We’re happy to help.
- The topic ‘How to ‘write-protect’ a product?’ is closed to new replies.