Theme conflicting with API product data feed

This topic has 25 replies, 2 voices, and was last updated 11 months, 1 weeks ago ago by Rose Tyler

  • Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 19, 2023 at 11:33

    Hello, Plusout,

    Thank you for your response.

    We can conclude that the issue is caused by one of the custom functions in your child theme, which start from line 7 and go to the end of the functions.php file, as shown in the screenshot bellow:
    https://prnt.sc/XEr9z9-5Eb5E

    We have already disabled them on your staging, you need to enable each of them one by one to find out which one is causing the issue.

    The file with the functions is located at the following path:
    wp-content/themes/xstore-child/functions.php

    Kind Regards,
    8theme team

    Please contact administrator
    for this information.
    Avatar: plusout
    Teal
    Participant
    May 19, 2023 at 11:46

    HI There,

    many thanks for your help.

    This is for a plugin that we no longer use and has been deleted, we don’t need the customisation now and di=d not know it was still there.

    Can I just delete the section you hvae highlighted in red from the functions.php? No need to test and turn them on aagin as we don’t need them any more.

    Thanks

    Guy

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 19, 2023 at 12:09

    Hello, Plusout,

    Please read our reply one more time.
    Custom code in functions.php file starts from 7 line but it is all other file content, not just code on our screenshot. Some part of the code causes the problem, we can’t say for sure what exactly part because tests should be done by you, part by part.
    Please check functions.php file on your staging site, you will see that the code is commented (disabled), if you do not need all the disabled code, you may not enable it and just delete it.
    We hope it is clear now.

    Kind Regards,
    8theme team

    Avatar: plusout
    Teal
    Participant
    May 22, 2023 at 10:07

    Hi There,

    we found the code in the functions file that was causing the problem. It is now disabled in functions.php and the other functions are working fine, with all product data coming thorough the API on the the live site.

    Many thanks for you help with this.

    Regards

    Guy

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 22, 2023 at 10:12

    Hello, Plusout,

    Thank you for bringing this to our attention. We are pleased that you were able to resolve the issue. Have a nice day!

    Kind Regards,
    8theme team

  • 1 2
    Viewing 25 results - 21 through 25 (of 25 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.