Home Forums WoodMart support forum hello i use WoodMart theme but error!

hello i use WoodMart theme but error!

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #135673

    tronghoang.th
    Participant

    hello i use WoodMart theme but error! please help me fix it

    Attachments:
    You must be logged in to view attached files.
    #135683

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Recently, you rated our theme with 1 star on ThemeForest. Could you please be so kind and change your bad review since our theme is working well and we are here to help you? We would be very happy if you will do this here https://themeforest.net/downloads

    Thank you in advance

    #135688

    tronghoang.th
    Participant

    i has rated 5 star!

    #135689

    Artem Temos
    Keymaster

    Thank you very much. By default, WooCommerce doesn’t support shortcodes in terms and conditions area. We suggest you to create a separate page for that and use only plain text there. It would be much easier and that area doesn’t need a lot of texts.

    As an alternative, you can try to add the following code snippet to the functions.php file in your child theme and enable shortcodes there

    /*** Strip Shortcode from Terms & Conditions Box *****/
    remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content', 30 );
    add_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content_custom', 30 );
    function wc_terms_and_conditions_page_content_custom() {
    	$terms_page_id = wc_terms_and_conditions_page_id();
    	if ( ! $terms_page_id ) {
    		return;
    	}
    	$page = get_post( $terms_page_id );
    	if ( $page && 'publish' === $page->post_status && $page->post_content && ! has_shortcode( $page->post_content, 'woocommerce_checkout' )) {
    echo '<div class="woocommerce-terms-and-conditions" style="display: none; max-height: 200px; overflow: auto;">' . wp_kses_post( wc_format_content(preg_replace( "~(?:\[/?)[^/\]]+/?\]~s", '', $page->post_content ) ) ) . '</div>';}
    }
    #135692

    tronghoang.th
    Participant

    thanks!

    #135700

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘hello i use WoodMart theme but error!’ is closed to new replies.