Home Forums WoodMart support forum /wp-json/wc/v3/products returns a HTML blok from woodmart

/wp-json/wc/v3/products returns a HTML blok from woodmart

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #678386

    larsnielsengm
    Participant

    /wp-json/wc/v3/products returns a HTML blok from woodmart

    It should return products in json format, but instead it returns a HTML blok made in woodmart !!!

    #678415

    Artem Temos
    Keymaster

    Hello,

    Please update the theme to the latest version first. Then disable all plugins that are not related to our theme so we can investigate the issue.

    Kind Regards

    #688489

    larsnielsengm
    Participant

    The problem is back

    This time it did not help:

    1) Update you theme
    2) Disable all plugins except woocommerce and woodmart related

    Please look at i ASAP

    #688492

    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?

    Thank you in advance

    #688763

    larsnielsengm
    Participant

    It is a live webshop, but you are free to set it in maintainance, disable plugins … check the webshop … and reactivate everything

    login and password is in private-section

    #688797

    Artem Temos
    Keymaster

    In this case, you need to create a staging development copy of your website. There, you will be able to do such kind of experiments without any harm to your production website.

    Kind Regards

    #688800

    larsnielsengm
    Participant

    The error is STILL there – please fix it …. I have given you all access in privatre-section

    #688815

    Artem Temos
    Keymaster

    We need you to disable the plugins temporarily. Please do this yourself so we don’t break anything on your website.

    #689017

    larsnielsengm
    Participant

    We have now disabled all plugins – please fix the problem

    #689044

    larsnielsengm
    Participant

    Please FIX ASAP – its a live webshop, so every minute the webshop is down, it losing money …..

    #689047

    Artem Temos
    Keymaster

    Hello,

    Please, provide us with your admin access as well. The one you sent previously doesn’t work.

    Kind Regards

    #689055

    larsnielsengm
    Participant

    see below

    #689056

    larsnielsengm
    Participant

    see below path

    #689062

    Artem Temos
    Keymaster

    The issue arises from the custom code you’ve added to the theme. Here’s the link to the code: https://monosnap.ai/file/yCmwiuEzGJkVIkhsFaTLEteR8hipBm. To resolve the problem, you need to remove this code, and the theme will start functioning correctly.

    #689070

    larsnielsengm
    Participant

    Thanks a lot … this solved the problem

    We have added
    $siteurl_vars = $_SERVER[‘REQUEST_URI’];
    if (strpos($siteurl_vars,’wp-json’) === false) {

    … include custom code
    }

    }

    #689073

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

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

The topic ‘/wp-json/wc/v3/products returns a HTML blok from woodmart’ is closed to new replies.