• Resolved Antonio Augusto

    (@antonio24073)


    Hi,
    I’m using gutenberg for product post type and I need to differentiate excerpt and short description. When I edit short description=, it edits my excerpt modifying my excerpt text and adding “<p></p>” tags.
    I’m using short description inside my site and excerpt to Rank Math SEO.
    Best Regards.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @antonio24073

    Could you let us know how are you saving products’ excerpts?
    Please provide us with a [screenshot](https://wordpress.com/support/make-a-screenshot/) so that we can see what you are describing.

    Additionally, please share a copy of your site’s System Status. You can find it via WooCommerce → Status. Select Get system report and then Copy for support. Once you’ve done that, please paste it here in your response.

    Regards,

    Thread Starter Antonio Augusto

    (@antonio24073)

    The short description is overwriting the excerpt. See the image below:

    https://monosnap.com/file/mIg08cVoU8aaEtNB1N5sUqahBLAhgp

    This is my functions.php code to enable gutenberg:

    
    //ini enable Gutenberg for Woocommerce
    
    function activate_gutenberg_product( $can_edit, $post_type ) {
    
        if ( $post_type == 'product' ) {
            $can_edit = true;
        }
        return $can_edit;
    }
    add_filter( 'use_block_editor_for_post_type', 'activate_gutenberg_product', 10, 2 );
    
    function enable_taxonomy_rest( $args ) {
        $args['show_in_rest'] = true;
        return $args;
    }
    add_filter( 'woocommerce_taxonomy_args_product_cat', 'enable_taxonomy_rest' );
    add_filter( 'woocommerce_taxonomy_args_product_tag', 'enable_taxonomy_rest' );
    
    function register_catalog_meta_boxes() {
        global $current_screen;
        // Make sure gutenberg is loaded before adding the metabox
        if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
            add_meta_box( 'catalog-visibility', __( 'Catalog visibility', 'textdomain' ), 'product_data_visibility', 'product', 'side' );
        }
    }
    add_action( 'add_meta_boxes', 'register_catalog_meta_boxes' );
    
    function product_data_visibility( $post ) {
    
        $thepostid          = $post->ID;
        $product_object     = $thepostid ? wc_get_product( $thepostid ) : new WC_Product();
        $current_visibility = $product_object->get_catalog_visibility();
        $current_featured   = wc_bool_to_string( $product_object->get_featured() );
        $visibility_options = wc_get_product_visibility_options();
        ?>
    <div class="misc-pub-section" id="catalog-visibility">
        <?php esc_html_e( 'Catalog visibility:', 'woocommerce' ); ?>
        <strong id="catalog-visibility-display">
            <?php
    
            echo isset( $visibility_options[ $current_visibility ] ) ? esc_html( $visibility_options[ $current_visibility ] ) : esc_html( $current_visibility );
    
            if ( 'yes' === $current_featured ) {
                echo ', ' . esc_html__( 'Featured', 'woocommerce' );
            }
            ?>
        </strong>
    
        <a href="#catalog-visibility"
           class="edit-catalog-visibility hide-if-no-js"><?php esc_html_e( 'Edit', 'woocommerce' ); ?></a>
    
        <div id="catalog-visibility-select" class="hide-if-js">
    
            <input type="hidden" name="current_visibility" id="current_visibility"
                   value="<?php echo esc_attr( $current_visibility ); ?>" />
            <input type="hidden" name="current_featured" id="current_featured"
                   value="<?php echo esc_attr( $current_featured ); ?>" />
    
            <?php
            echo '<p>' . esc_html__( 'This setting determines which shop pages products will be listed on.', 'woocommerce' ) . '</p>';
    
            foreach ( $visibility_options as $name => $label ) {
                echo '<input type="radio" name="_visibility" id="_visibility_' . esc_attr( $name ) . '" value="' . esc_attr( $name ) . '" ' . checked( $current_visibility, $name, false ) . ' data-label="' . esc_attr( $label ) . '" /> <label for="_visibility_' . esc_attr( $name ) . '" class="selectit">' . esc_html( $label ) . '</label><br />';
            }
    
            echo '<br /><input type="checkbox" name="_featured" id="_featured" ' . checked( $current_featured, 'yes', false ) . ' /> <label for="_featured">' . esc_html__( 'This is a featured product', 'woocommerce' ) . '</label><br />';
            ?>
            <p>
                <a href="#catalog-visibility"
                   class="save-post-visibility hide-if-no-js button"><?php esc_html_e( 'OK', 'woocommerce' ); ?></a>
                <a href="#catalog-visibility"
                   class="cancel-post-visibility hide-if-no-js"><?php esc_html_e( 'Cancel', 'woocommerce' ); ?></a>
            </p>
        </div>
    </div>
    <?php
    }
    //end Gutenberg for Woocommerce
    Thread Starter Antonio Augusto

    (@antonio24073)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://promophone.com.br
    Site address (URL): https://promophone.com.br
    WC Version: 6.3.1
    REST API Version: ? 6.3.1
    WC Blocks Version: ? 6.9.0
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.2.1
    Log Directory Writable: ?
    WP Version: 5.9.2
    WP Multisite: –
    WP Memory Limit: 3 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: pt_BR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.21.6
    PHP Version: 7.4.28
    PHP Post Max Size: 100 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 60000
    cURL Version: 7.64.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.6.7-MariaDB
    Max Upload Size: 4 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.3.1
    WC Database Prefix: wpws_
    Total Database Size: 140.79MB
    Database Data Size: 109.69MB
    Database Index Size: 31.10MB
    wpws_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wpws_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wpws_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_actionscheduler_actions: Data: 5.02MB + Index: 5.80MB + Engine InnoDB
    wpws_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_actionscheduler_logs: Data: 3.02MB + Index: 3.13MB + Engine InnoDB
    wpws_aiowps_debug_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_aiowps_failed_logins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_alm: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_amv_data_table_result: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_amv_deleted_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_amv_ignored_folders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_amv_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cartflows_ca_cart_abandonment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_cjtoolbox_authors: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_cjtoolbox_backups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_cjtoolbox_blocks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_cjtoolbox_block_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_block_pins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_block_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_form_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_cjtoolbox_form_group_parameters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_cjtoolbox_form_group_xfields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_package_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_cjtoolbox_parameters: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_cjtoolbox_parameter_typedef: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_cjtoolbox_parameter_typeparams: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_cjtoolbox_templates: Data: 0.06MB + Index: 0.11MB + Engine InnoDB
    wpws_cjtoolbox_template_revisions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wpws_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpws_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_duplicator_pro_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_ee_products_sync_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_ee_product_sync_call: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_ee_product_sync_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_ee_product_sync_profile: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_ee_prouct_pre_sync_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_elementor_splittest: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_elementor_splittest_interactions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_elementor_splittest_post: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_elementor_splittest_variations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    wpws_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wpws_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_fbv: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_fbv_attachment_folder: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_ff_scheduled_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_entry_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_form_analytics: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_submissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_fluentform_submission_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_gglcptch_allowlist: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpws_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_itsec_distributed_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpws_itsec_logs: Data: 3.52MB + Index: 1.50MB + Engine InnoDB
    wpws_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_mclean_refs: Data: 0.16MB + Index: 0.00MB + Engine InnoDB
    wpws_mclean_scan: Data: 0.09MB + Index: 0.02MB + Engine InnoDB
    wpws_newsletter: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_newsletter_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_newsletter_sent: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_newsletter_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_newsletter_user_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_options: Data: 23.44MB + Index: 1.23MB + Engine InnoDB
    wpws_pgly_pix: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxe_google_cats: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_postmeta: Data: 31.08MB + Index: 9.59MB + Engine InnoDB
    wpws_posts: Data: 21.20MB + Index: 1.69MB + Engine InnoDB
    wpws_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpws_rank_math_analytics_keyword_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_rank_math_analytics_objects: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_rank_math_internal_links: Data: 0.14MB + Index: 0.05MB + Engine InnoDB
    wpws_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_revslider_sliders: Data: 0.27MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_slides: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_sip_mautic_contacts_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_termmeta: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wpws_terms: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wpws_term_relationships: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
    wpws_term_taxonomy: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
    wpws_usermeta: Data: 0.23MB + Index: 0.03MB + Engine InnoDB
    wpws_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_vi_wad_ali_orders_info: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_vi_wad_ali_shipping_info: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wpws_vi_wad_error_product_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_vi_wbe_history: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wpws_vi_wcuf_order_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_vi_wpbulky_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wacv_abandoned_cart_record: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wpws_wacv_cart_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wacv_email_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wacv_guest_info_record: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wccs_conditions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wccs_condition_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wc_product_attributes_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wpws_wc_product_meta_lookup: Data: 0.39MB + Index: 0.55MB + Engine InnoDB
    wpws_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_wdp_persistent_rules_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_wfconfig: Data: 0.48MB + Index: 0.00MB + Engine InnoDB
    wpws_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wffilemods: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wpws_wfhits: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wpws_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_wfknownfilelist: Data: 10.52MB + Index: 0.00MB + Engine InnoDB
    wpws_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_wfstatus: Data: 0.14MB + Index: 0.13MB + Engine InnoDB
    wpws_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_woot_tables: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_woot_tables_columns: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_woot_tables_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_woot_vocabulary: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wotv_woo_track_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpf_meta_data: Data: 1.52MB + Index: 1.23MB + Engine InnoDB
    wpws_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wpf_meta_values: Data: 0.05MB + Index: 1.91MB + Engine InnoDB
    wpws_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpmlautoresponderemails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlautoresponders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlautorespondersforms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlautoresponderslists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlbounces: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlclicks: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpws_wpmlcontents: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlcountries: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wpws_wpmlemails: Data: 0.00MB + Index: 0.02MB + Engine MyISAM
    wpws_wpmlfields: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpws_wpmlfieldsforms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlfieldslists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlforms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpws_wpmlgroups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlhistoriesattachments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlhistorieslists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlhistory: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpws_wpmllatestposts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmllatestpostssubscriptions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmllinks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlmailinglists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmloptions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlorders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlposts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlsubscribermetas: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlsubscribers: Data: 0.00MB + Index: 0.02MB + Engine MyISAM
    wpws_wpmlsubscriberslists: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wpws_wpmlsubscribersoptions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmltemplates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlthemes: Data: 0.10MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmlunsubscribes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wpws_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpws_wpr_rucss_used_css: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_wpsynchro_file_population_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wpsynchro_sync_list: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpws_wrc_caches: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpws_wrc_relations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpws_wsdesk_archived_tickets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wsdesk_archived_ticketsmeta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wsdesk_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpws_wsdesk_settingsmeta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wsdesk_tickets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpws_wsdesk_ticketsmeta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_coderun_oneclickwoo_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 1265
    bsf-sidebar: 2
    custom_css: 4
    custom_order_status: 2
    customize_changeset: 13
    e-landing-page: 2
    elementor_library: 40
    elementor-hf: 10
    flamingo_contact: 12
    flamingo_inbound: 17
    footer: 7
    itsec-dash-card: 12
    itsec-dashboard: 1
    nasa_block: 20
    nasa_pin_pb: 13
    nav_menu_item: 72
    newsletter: 1
    o-list: 2
    oembed_cache: 2
    page: 25
    polylang_mo: 2
    portfolio: 1
    postman_sent_mail: 250
    product: 41
    product_variation: 1423
    revision: 27
    rvp: 1
    shop_coupon: 23
    shop_order: 3
    vi_wad_draft_product: 40
    viwec_template: 14
    wacv_email_template: 3
    wcb: 2
    wp_block: 4
    wp_global_styles: 2
    wp_navigation: 2
    wp-rest-api-log: 168
    wpcf7r_action: 4
    wpcf7r_leads: 9
    xlwcty_thankyou: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (69) ###
    
    Query Monitor: by John Blackbourn – 3.8.2
    Advanced Database Cleaner: by Younes JFR. – 3.0.4
    Ajax Cart AutoUpdate for WooCommerce: by taisho – 1.5.5
    Astra Bulk Edit: by Brainstorm Force – 1.2.6
    Astra Theme Visual Hooks: by Brainstorm Force – 1.1.0
    Better Search Replace: by Delicious Brains – 1.3.4
    Brands for WooCommerce: by BeRocket – 3.7.0.2
    Bulky - Bulk Edit Products for WooCommerce: by VillaTheme – 1.0.9
    Click to Chat: by HoliThemes – 3.8
    CSS & JavaScript Toolbox: by Wipeout Media – 11.5
    Custom Order Status for WooCommerce: by Tyche Softwares – 2.0.3
    Disable Admin Notices Individually: by Creative Motion  – 1.2.8
    ELEX HelpDesk & Customer Support Ticket System: by ELEXtensions – 3.1.1
    Email Template Customizer for WooCommerce: by VillaTheme – 1.1.4
    Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce: by Tatvic – 4.6.7
    Pixel Cat Lite: by Fatcat Apps – 2.6.6
    Google Tag Manager for WooCommerce FREE: by Handcraft Byte – 1.9.4
    Header Footer Code Manager: by 99robots – 1.1.18
    Module Control for Jetpack: by RavanH – 1.6
    Jetpack: by Automattic – 10.7
    LH Copy Media File: by Peter Shaw – 1.08
    Loco Translate: by Tim Whitlock – 2.6.0
    Media Cleaner: by Jordy Meow – 6.3.1
    Pinterest for WooCommerce: by WooCommerce – 1.0.8
    Plugin Groups: by David Cramer – 2.0.6
    Post SMTP: by Yehuda Hassine – 2.0.24
    Product Variations Swatches for WooCommerce: by VillaTheme – 1.0.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    reSmush.it Image Optimizer: by reSmush.it – 0.4.2
    Responsive Sidebar: by Processby – 1.2.2
    Reveal IDs: by Oliver Schl?be – 1.5.4
    SAHU TikTok Pixel for E-Commerce: by  – 1.1.0
    Scroll To Top: by Idenovasi – 1.2.0
    Search Exclude: by Roman Pronskiy – 1.2.6
    Rank Math SEO: by Rank Math – 1.0.84
    Sidebar Manager: by Brainstorm Force – 1.1.7
    Simple Admin Language Change: by Karolína Vysko?ilová – 2.0.4
    TaxoPress: by TaxoPress – 3.5.1
    Split Test For Elementor: by Rocket Elements – 1.5.1
    Order Limit Lite for WooCommerce: by Xfinity Soft – 0.0.4
    CTX Feed: by WebAppick – 4.4.54
    WebP Express: by Bj?rn Rosell – 0.25.0
    Abandoned Cart Recovery for WooCommerce: by VillaTheme – 1.0.4.8
    Conditional Discounts for WooCommerce by ORION: by ORION – 2.27
    Auto Coupons for WooCommerce: by Richard Lerma Design & Development – 2.1.12
    Coupon Box for WooCommerce: by VillaTheme – 2.0.2.2
    Orders Tracking for WooCommerce: by VillaTheme – 1.1.12
    WooCommerce Parcelas Com e Sem Juros: by Leonardo Robles – 1.5
    Photo Reviews for WooCommerce: by VillaTheme – 1.1.6
    Product Filter by WooBeWoo: by WooBeWoo – 2.1.0
    List Products By Category Widget For WooCommerce: by Blaze Concepts – 1.3.0
    Return Refund and Exchange for WooCommerce: by WP Swings – 3.1.4
    Payment Plugins for Stripe WooCommerce: by Payment Plugins
    [email protected] – 3.3.17
    
    Virtual Reviews for WooCommerce: by VillaTheme – 1.2.2
    ALD - Aliexpress Dropshipping and Fulfillment for WooCommerce: by VillaTheme(villatheme.com) – 1.0.12
    WooCommerce Extended Coupon Features FREE: by Soft79 – 3.2.8
    WooCommerce Expand Tabs: by SilkyPress – 1.22
    Brazilian Market on WooCommerce: by Claudio Sanches – 3.7.2
    Mercado Pago payments for WooCommerce: by Mercado Pago – 5.7.4
    WooCommerce: by Automattic – 6.3.1
    Wootic: by Maxi Tromer – 0.2.1
    Wordfence Security: by Wordfence – 7.5.8
    Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.8.5
    WP Fastest Cache: by Emre Vona – 0.9.9
    WP Maintenance Mode & Coming Soon: by Themeisle – 2.4.4
    WP Mautic: by Mautic community – 2.4.2
    WP Paint - WordPress Image Editor: by ZetaMatic – 0.5.3
    WP REST Cache: by Acato – 2021.4.1
    WP Hardening: by Astra Security – 1.2.2
    
    ### Inactive Plugins (1) ###
    
    EXMAGE - WordPress Image Links: by VillaTheme(villatheme.com) – 1.0.3
    
    ### Dropin Plugins (1) ###
    
    db.php: Query Monitor Database Class
    
    ### Must Use Plugins (2) ###
    
    wp-hide-loader.php: by  –
    WP REST Cache - Must-Use Plugin: by Richard Korthuis - Acato – 2021.3.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: BRL (R$)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    yith_bundle (yith_bundle)
    
    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: ?
    
    ### WC Pages ###
    
    Shop base: #9 - /
    Cart: #148 - /carrinho/
    Checkout: #572 - /finalizacao-compra/
    My account: #12 - /minha-conta/
    Terms and conditions: #634 - /termos-de-servico/
    
    ### Theme ###
    
    Name: Astra Child
    Version: 3.7.6.1642700532
    Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    Child Theme: ?
    Parent Theme Name: Astra
    Parent Theme Version: 3.7.9
    Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Canceled: 1
    Oldest: 2022-03-15 17:14:58 +0000
    Newest: 2022-03-15 17:14:58 +0000
    
    Complete: 11,523
    Oldest: 2022-02-13 13:22:17 +0000
    Newest: 2022-03-15 23:48:04 +0000
    
    Failed: 1
    Oldest: –
    Newest: –
    
    Pending: 4
    Oldest: 2022-03-15 23:58:04 +0000
    Newest: 2022-04-08 00:00:08 +0000
    
    ### Status report information ###
    
    Generated at: 2022-03-15 23:48:56 +00:00
    
    Thread Starter Antonio Augusto

    (@antonio24073)

    it is not safe to publish it in here. Please copy and I will remove.

    Mirko P.

    (@rainfallnixfig)

    Hi @antonio24073,

    Thanks for sharing your custom snippet and system status.

    This unexpected behavior could be caused by a conflicting theme or plugin. The first step would be checking if it’s working with this setup:

    1) Change the theme to the default Storefront
    2) Disable all plugins (except WooCommerce)
    3) Copy the custom snippet in your child theme’s functions.php file

    If the product short description and excerpt are properly working then it means that your theme or one of your plugins was causing a conflict.

    Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Before making changes, you should always ensure that you have a backup of your site and database in case anything goes wrong. More info at: Backing up WordPress content.

    Let us know how it goes.

    Thread Starter Antonio Augusto

    (@antonio24073)

    Hi,

    I did a test which discards your hypothesis.

    1. Open the softaculous wordpress demo.
    2. Install woocommerce and storefront.
    3. add the snippet with theme editor
    4. add a product
    5. fill short descrition with: test short description
    6. fill excerpt with: test excerpt
    7. save and refresh edition page
    8. fill excerpt again with: test excerpt more
    9. save and refresh edition page
    10. the expected result is excerpt = “<p>teste short description</p>”

    Best regards

    Mirko P.

    (@rainfallnixfig)

    Hi @antonio24073,

    Thanks for getting back with more details.

    Kindly note that the default Add New Product page in WooCommerce doesn’t have an excerpt box. If it still doesn’t work with a basic setup, it clearly means that there’s something to fix on your custom snippet.

    We are unable to provide support for customizations per our Support Policy.

    If you need any assistance with the code and/or customization, you can reach out to a web developer or one of our experts – https://woocommerce.com/customizations/.

    I’m going to close this thread now as the issue is not directly related to WooCommerce core itself. Feel free to open a new topic if you have any other questions.

    Best regards.

    Thread Starter Antonio Augusto

    (@antonio24073)

    Hi,
    It is not a customization. It’s a bug fix, because who modify and link short description and excerpt was the woocommerce plugin.
    Best regards,

    Thread Starter Antonio Augusto

    (@antonio24073)

    I tried:

    
    
    add_action('rest_after_insert_post', 'read_meta_field_post_excerpt', 10, 2);
    function read_meta_field_post_excerpt( $post, $request ) {
        global $my_post_excerpt;
        $my_post_excerpt = get_post_meta($post->ID, 'post_excerpt', true);
    }
    add_action( 'woocommerce_new_product', 'mp_sync_on_product_save', 10, 1 );
    add_action( 'woocommerce_update_product', 'mp_sync_on_product_save', 10, 1 );
    function mp_sync_on_product_save( $product_id ) {
        global $my_post_excerpt;
        $product = wc_get_product( $product_id );
        $the_post = array(
            'ID'           => $product_id,//the ID of the Post
            'post_excerpt' => $my_post_excerpt
        );
        wp_update_post( $the_post );
    }

    with no success

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘differentiate excerpt and short description’ is closed to new replies.