How can I edit categories that need to showed with AMP plugin?

This topic has 6 replies, 2 voices, and was last updated 3 months ago ago by Jack Richardson

  • Avatar: BRoAcademy
    My Little Lord Ltd
    Participant
    July 14, 2024 at 01:09

    Hello,

    I have a quick question: without the AMP extension the website (even without any product) has a very bad score on mobile, implementing the AMP extension the problems looks like mitigated but there are two major issue:

    1) The cookie extension identify the AMP plugin provided in theme as not google compliant so if activated will not show the pop up for the cookie consent
    2) I need to show only specific categories of product and currently from the AMP section editor I cannot filter only specif categories, even if they are subcategories.

    Can you please advise how these two issue can be solved?

    Kind Regards
    Dario

    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 15, 2024 at 07:39

    Dear @My Little Lord Ltd,

    We hope this message finds you well.

    1. While it is challenging to ensure compatibility with all existing plugins, we are open to exploring the possibility of integrating with the specific ones you are using. Could you please provide the name of the extension you are currently utilizing for validation testing? It appears that this extension identifies compatibility by detecting unique functions from popular AMP plugins. It is possible that our AMP plugin lacks the specific function required for this identification, which could be causing the issue.

    2. Should you be able to provide us with the correct FTP and wp-admin access, we would be more than happy to assist you by adding a filter to facilitate queries of product category functions in AMP. This would allow you to customize the query parameters as you see fit, using your child-theme/functions.php file. For more details on how to modify these parameters, you may refer to the WordPress Developer Resource: https://developer.wordpress.org/reference/classes/wp_query/.

    We look forward to your response and are eager to assist you further.

    Best Regards,
    Jack Richardson
    The 8Theme Team

    Avatar: BRoAcademy
    My Little Lord Ltd
    Participant
    July 15, 2024 at 14:35

    Hi guys,

    1) The plugin is “Cookie Notice & Compliance for GDPR / CCPA” also included in your plugin installer under the name Cookie Notice. The information is in setting of the plug in. There is the pro version on website to meet google consent v2 but not think that this can be the reason, feel free to have a look and as the plugin is in your list maybe you can discuss with their team for details 🙂

    Attaching in private area details to login on website.

    2) I am attaching the details of FTP access

    Thank you in advance for your support.

    Regards
    Dario

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 15, 2024 at 15:05

    Dear @My Little Lord Ltd,

    I hope this message finds you well. We regret to inform you that we were unable to establish a connection using the FTP access credentials provided. However, we have implemented improvements that allow you to modify the query for product categories on your end, using the newly added filter ‘xstore_amp_products_categories_query_args’ (it will be included in next plugin update also).

    To proceed with the necessary modifications, we kindly request the following information from you:

    1. Correct FTP access credentials.
    2. Creation of at least a few products.
    3. Creation of a few product categories.

    Once these steps are completed, we can provide an example solution for a few unique categories to be displayed. Please be advised that any additional customization beyond this scope is not covered by our support services.

    Thank you for your attention to these matters. We look forward to your prompt response so we can continue to assist you effectively.

    Best Regards,
    Jack Richardson
    The 8Theme Team

    Avatar: BRoAcademy
    My Little Lord Ltd
    Participant
    July 15, 2024 at 16:55

    Hi guys,

    I have checked the FTP access and generated a new one. Please let me know if now able to access.

    I have added the categories and product

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 16, 2024 at 07:16

    Dear @My Little Lord Ltd,

    We are pleased to inform you that we have successfully implemented the necessary code snippet in your child-theme/functions.php file, following the provision of the correct FTP access details. The code added is as follows:

    add_filter('xstore_amp_products_categories_query_args', function($query_args) {
        $query_args['include'] = array(508, 509);
        return $query_args;
    });

    As a result, only two categories, corresponding to the IDs specified in the function above, are now displayed on the homepage of the AMP version of your website.

    Should you need to locate the IDs of other product categories, you can do so by navigating to the modification section of a product category. This can be accessed via your Dashboard under Products -> Categories -> Edit specific category. The URL will resemble the following format: https://yourwebsite.com/wp-admin/term.php?taxonomy=product_cat&tag_ID=509&post_type=product, where ‘tag_ID’ represents the ID of your product category.

    Please take a moment to review the changes at your earliest convenience.

    Best regards,
    Jack Richardson
    The 8Theme Team

  • Viewing 6 results - 1 through 6 (of 6 total)

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

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