AMP not working for products with 3 selectable attributes

This topic has 37 replies, 2 voices, and was last updated 10 months, 3 weeks ago ago by Rose Tyler

  • Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 15, 2023 at 13:43

    Hi there, we are having issues with AMP for some products that have 3 selectable attributes.

    Please see this product as an example; https://premiumpetware.co.nz/product/mendota-slip-leads-brass-collection/

    There are no issues via PC browser.

    It seems to be expecting the input of a further variable, and will not add the product (with all three options selected) to the cart.

    Regards,

    Blair

    36 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 15, 2023 at 14:19

    Hello, PremiumPetware,

    Thank you for contacting us and for using XStore.

    In order to troubleshoot the issue you are experiencing, we suggest that you first try disabling all third-party plugins (including cache plugins) that are not bundled with XStore. You can refer to the following link for a list of included plugins: https://xstore.helpscoutdocs.com/article/36-included-plugins . Additionally, please clear the cache of your browser and check again. It is possible that one of the additional plugins is causing problems.

    Kind Regards,
    8theme team

    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 18, 2023 at 11:08

    Hi There, it turned out that the issue is possibly related to the variable product having a special character in one of the attributes variations ( ” symbol for inches – although these have been working for years using woopress theme and on Xstore until last woocommerce / theme update) The other thing that has changed with variations is that there is now an example attribute added by default in the attributes list which also has the selection options ticked by default.
    {closure}(”) #1 /code/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /code/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /code/wp-settings.php(645): do_action(‘wp_loaded’) #4 /code/wp-config.php(93): require_once(‘/code/wp-settin…’) #5 /code/wp-load.php(50): require_once(‘/code/wp-config…’) #6 /code/wp-blog-header.php(13): require_once(‘/code/wp-load.p…’) #7 /code/index.php(17): require(‘/code/wp-blog-h…’) #8 {main} thrown

    I have cleared mobile cache and the live and test environment cache, and am still seeing AMP in Test system and Xstore mobile in the live system.
    I have tried deactivating and reactivating AMP plugin in LIve but am still seeing the Xstore mobile view.

    I have made some edits to the website using Yellowpencil which I am finding really useful, but wondering if this may be causing an issue.

    Any suggestions on what to try next?

    Regards,

    Blair

    Please contact administrator
    for this information.
    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 18, 2023 at 11:11

    PS I did follow your suggestion of disabling all non-xstore plugins when trying to identify the attribute issue, thank you.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 18, 2023 at 13:05

    Hello, PremiumPetware,

    Please provide temporary wp-admin and FTP access to the site with the problem.

    To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.
    To create FTP access, please contact your hosting provider for assistance.

    Thank you for your cooperation.

    Kind Regards,
    8theme team

    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 20, 2023 at 09:11

    Hi Rose,

    sorry for the delay. Details added to Private area.

    Thanks and regards,

    Blair

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 20, 2023 at 09:52

    Hello, PremiumPetware,

    Thank you for wp-admin access.
    We can’t connect FTP, unfortunately. Please try to connect to FTP using FileZilla by yourself.
    Is there a restriction by IP or something else?

    Kind Regards,
    8theme team

    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 20, 2023 at 10:07

    Hi Rose, yes those credentials do work for me in Filezilla. I did forget to advise the port to use. Will put in the private area.

    I am not aware of any region locking, there are no settings for it that i can find.

    Regards,

    Blair

    Please contact administrator
    for this information.
    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 20, 2023 at 10:36

    Hi Rose, I should point out that that platform we use has a specific protocol. Code updates need to be made in the Dev system merged with live to create a test system, which if ok is then promoted to live. So no updates are made in the live directly. the dev, test and live systems have their own sftp connections.

    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 20, 2023 at 11:25

    Hello again, I saw that there were theme updates available and have added those. I also found that the wp-redis plugin was not set up properly and have followed the instructions to get that working. I have promoted these to the test environment, apologies if this interferes with anything that you mat be doing. The AMP GUI is being presented in test, and responds to configuration changes immediately on reloading the page. When you are finished reviewing thing I will push the changes to live (if testing is successful).

    Regards,

    Blair

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 20, 2023 at 11:32

    Hello, PremiumPetware,

    Thanks for sharing the details but when we tried to make some changes in files to check the issue FTP shows us the next message:
    Error: wp-content/plugins/xstore-amp/includes/templates/woocommerce/single-product/add-to-cart/variable.php: open for write: permission denied

    Error: File transfer failed

    In our opinion, the main issue is because your attributes have spaces between words which creates error for AMP.
    We will try to recreate the situation on our local sites while you are checking and providing us correct ftp access to your web-site with normal permissions. Also, please, leave in private content area the path to which site we can make our changes (if you have dev/staging one then it will be better to try to fix it there rather on real one).

    Kind Regards,
    8theme team

    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 20, 2023 at 13:19

    Hi Rose, I have updated to the latest theme version and core plugin.

    The issue with AMP gui not being displayed in live on mobile persists.

    Details for connection to the test environment is attached.

    Thanks and regards,

    Blair

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 20, 2023 at 15:24

    Hello, PremiumPetware,

    Thank you for your response.

    We will have another specialist review your inquiry in greater detail and will be in touch with you (it may take a few days).

    We kindly ask for your patience and request that you do not alter access.
    On the live site you can disable the AMP plugin, we will work on your test site.

    Kind Regards,
    8theme team

    Avatar: PremiumPetware
    PremiumPetware
    Participant
    April 21, 2023 at 09:14

    Thank you Rose, appreciate your support with resolving this

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 24, 2023 at 14:37

    Hello, PremiumPetware,

    Thank you for your patience and we apologize for the long delay in responding.

    Please download a new version of XStore AMP plugin by a link from the Private Content area.
    We would like to hear your feedback after the test and what bugs you noticed unresolved.

    Kind Regards,
    8theme team

    Please contact administrator
    for this information.
    Avatar: PremiumPetware
    PremiumPetware
    Participant
    May 28, 2023 at 02:35

    Hi there, I tried installing the supplied version of AMP to my test environment. Refreshed caches etc, and the website will not open on my mobile at all. The page load progress bar gets about 2/3 of the way across and stalls.
    After deactivating the AMP plugin, the mobile view of xstore then appears and works normally.

    Looking in the php log the same error is repeated, presumably every time i tried to refresh the page. Details added to private area.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 28, 2023 at 09:27

    Hello PremiumPetware,

    Thank you for your response.

    We will have a specialist review your inquiry in greater detail and will be in touch with you after the weekend. Sorry for such a delay.

    Kind Regards,
    8theme team

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 29, 2023 at 08:09

    Hello PremiumPetware,

    We didn’t face such an issue during our tests. Maybe it is caused by your modifications in wp-config file on the same day you installed the new version of the plugin (check Private Content) ?
    Also, we wanted to rename xstore-amp folder and install the one that was officially released before to check if you had such issues with the previous version of the plugin but it is not possible to do because of the permissions:
    /wp-content/plugins/xstore-amp /wp-content/plugins/xstore-amp-new: permission denied
    Could you please, try to check if the errors are coming with the previous version of XStore AMP plugin ? or provide us correct access so we could check it with our “own hands”.

    Kind Regards,
    8theme team

    Please contact administrator
    for this information.
    Avatar: PremiumPetware
    PremiumPetware
    Participant
    May 29, 2023 at 10:05

    Hi there, instead of just overwriting, I deleted the xstore-amp plugin folder and re-uploaded the files that you have provided.

    AMP is now running but I am still having the same issue where you cannot add a product with 3 variables to the shopping cart. See the example in private area. The selected product is in stock, and with the three options selected I should be able to add this to the cart.

    Regards,

    Blair

    Please contact administrator
    for this information.
    Avatar: PremiumPetware
    PremiumPetware
    Participant
    May 29, 2023 at 10:12

    PS – I had updated some other plugins including the theme and migrated the changes from Dev to Test, so I presume that is why the dates have changed for multiple things. In the platform that I use, you upload to Dev, and then migrate code to test which also copies data from live to test.

    Cheers, Blair.

  • 1 2
    Viewing 20 results - 1 through 20 (of 37 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.