• Resolved sabv

    (@sabv)


    Hi all,
    I’m working with Hestia theme and WooCommerce and I need help to solve a problem:
    I installed WC because I need to have a product, this product is a calendar from Pinpoint Reservation System, this one:
    https://pinpoint.world/wordpress-booking

    Ok. So, I have my reservation page in which I want the calendar to be displayed, what would be the product page of WooCommerce.
    For this I have seen that there are shortcodes.
    And here the problem begins.

    All shortcodes works except the one I need: [product_ page id=”myId”], when I try to save the page, I received this error: “update failed, response is not valid json response” and in browser there are 5 errors:

    function wc_print_notices() in /home/aldea/domains/aldea.com/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3727

    Stack trace:
    #0 /home/aldea/domains/aldea.com/public_html/wp-includes/class-wp-hook.php(303):
    woocommerce_output_all_notices(”)

    #1 /home/aldea/domains/aldea.com/public_html/wp-includes/class-wp-hook.php(327):
    WP_Hook->apply_filters(NULL, Array)

    #2 /home/aldea/domains/aldea.com/public_html/wp-includes/plugin.php(470):
    WP_Hook->do_action(Array)

    #3 /home/aldea/domains/aldea.com/public_html/wp-content/plugins/woocommerce/templates/content-single-product.php(43):
    do_action(‘woocommerce_bef…’)

    #4 /home/aldea/domains/aldea.com/public_html/wp-includes/template.php(772):
    require(‘/home/aldea…’)

    #5 /home/aldea/domains/aldea.com/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284):
    load_template(‘/hom in /home/aldea/domains/aldea.com/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php

    I have been with this problem for almost two weeks and I have tried a thousand things and everything I have seen in forums and others and there is no way.

    It is striking that if I call [product id=”myId”] it works perfectly, I know that it is when displaying product_page and I understand that there comes the conflict between Hestia theme and Woocommerce.

    I also know it has something to do with permalinks because WooCommerce needs a shop page and I have marked my reservation page as shop.
    I have tried many pages doing different tests and nothing, always the same error.
    Now I have: mydomain/%postname% and in permanent product links: custom base/page-reservation

    Do you have any idea, hint, suggestion, solution?
    I really appreciate your help.

    I have all my plugins and hestia updated, the php version is adequate.
    Yes I am using Gutemberg blocks, and I have not tried to deactivate the hestia theme because I am a little afraid of losing the design, but I will, but changing the theme would be difficult for me because I have customized it a lot with CSS, (I know child theme).
    I would like to find one solution by modifying some of the code.

    I know that I can show the product (listed, not in detail) and from there click and go to the reservation page (where the calendar would be), but for usability issues I would not like to do it like that and that is why I keep “fighting”.

    I hope your help.
    Thank you very much in advance and excuse my English but I’m from Spain.

    Regards,
    Sabela

Viewing 1 replies (of 1 total)
  • Hi @sabv!

    Thanks for choosing Hestia!

    Please make sure you use the latest versions of WordPress, of the Pinpoint Booking System plugin and of WooCommerce. I would also recommend to make sure the PHP version is up to date, but you already said that it is adequate. It looks like all the errors listed point out to files regarding WooCommerce and WordPress, so it doesn’t seem to be a theme related issue. I tried to replicate it, but for me everything works fine, I don’t get any error.

    Thank you and have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘Shortcode product page id problem in page template’ is closed to new replies.