-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buy Now Button gives a 404 Error for products that are listed on home page #39
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
@palashdrvaidyas can you please share your website link to i can give it a try to understand the exact issue.? |
@varunsridharan I have exactly the same problem. While using a direct link within a button in Home page to: Deprecated: add_to_cart_redirect is deprecated since version 3.0.0! Use woocommerce_add_to_cart_redirect instead. in /var/www/vhosts/cliqer.io/httpdocs/wp-includes/functions.php on line 5088
Deprecated: WC_Cart::get_checkout_url is deprecated since version 2.5! Use wc_get_checkout_url instead. in /var/www/vhosts/cliqer.io/httpdocs/wp-includes/functions.php on line 4713 Also if I install previous version the same happens so something must have been meshed up with the DB because only a full restore brings it back. Of course tried everything I could think of like reset permalinks, php version 7.4-7.3, nginx-apache etc. but without any luck. |
@varunsridharan Can you please have a look as soon as possible as this is crucial on my case. |
i just checked and it seems. it dosen't seems to be from my plugin.
my plugin uses the latest hooks provided by WooCommerce. may be it could be from some other plugin or may be you could have been using the older version of Quick Buy. And i still can't replicate 404 Error!! |
@varunsridharan Thank you for looking at it. |
@varunsridharan Please use this link to check yourself: |
@cliqer i think i found the issue. and this issue seems to be present in older version too and i am not sure how it worked for you before the recent update. anyways i will try to get this fixed asap and push an update. |
@cliqer sorry bad news. we never had |
@varunsridharan let me try and will report back. |
@varunsridharan Tried sku and id, refreshed permalinks but the same happens. Any other ideas? |
@cliqer |
@varunsridharan Hello |
@palashdrvaidyas thanks for sharing the dev / staging site. well i just checked the page you said. and it seems to be that the permalinks are not updated properly. |
Hello @varunsridharan I have already tried updating the product permalink nothing worked for me. Yes I am using cache plugin Fast Velocity Minify on my site plus server-side caching is also enabled. |
I just ditched the plugin and used: /checkout?add-to-cart=338&code=trial as the link on the button. Thank you for this @varunsridharan; it was great while it lasted but unfortunately doesn't work any more. |
@cliqer sorry that i am not able to solve the issue. the thing right now is that i am not able to replicate the same issue anywhere else in my setup and the end users are not ready to share a test site to debug the issue. :-( |
i have created a new Word Press site and installed WooCommerce & Quick buy. still am not able to replicate it. can you guys help in this ? site at http://***************/ |
@palashdrvaidyas i have given you the admin access and do what ever changes you need to do. so that i can get debug and find whats wrong with your type of config or if its with my plugin. |
This issue is also occurring on a number of our websites. It had previously been working fine, but I was alerted by a client that first noticed it happening on Wed 12 August 2020. The [BUY NOW] button on the product pages work fine, but clicking the [BUY NOW] button on the home page gives an error "No Results Found. The page you requested could not be found. Try refining your search, or use the navigation above to locate the post." and the URL generated by the button is https://lakesidecc.online/buy-now/713/1 or similar. That is https://lakesidecc.online/buy-now/{id}/{qty} |
I have modified your test WordPress site to demonstrate the issue. It occurs when the WooCommerce/Settings/Products/Shop page=Homepage. Clicking on any of the Red [BUY NOW] buttons on the home page will cause the error 404 to trigger. |
@rafflestore thanks will have a look @ it in a day max. |
Hi @varunsridharan even i have enabled the buy now in the home page on clicking, its giving a 404 error. Hope this is fine for you to debug the issue. |
In my case, I changed the option URL Endpoint to 'cart?add-to-cart={id}' and solve my problem for now. Just a tip to don't appear 404 error while the fix is not solved.
|
@felini @palashdrvaidyas @rafflestore @cliqer thanks for your support. |
@felini @palashdrvaidyas @rafflestore @cliqer |
Hi varunsriddharan, I have this config in my site: Please view Home URL (is the final URL of my Site) and Site URL (is Wordpress URL)... Quick Buy Shoe this URL endpoint: But that is not de final URL and generated error 404 page. The final url should be: https://cawel.co/finalizar-compra/{id}/{qty} Already update the permalinks. I don't have any cache plugin, I already uninstalled Quick Buy and reinstalled it. How can I solve that the endpoint url is, my Home URL and not the Site URL? |
@alephart are you using the latest version of Quick Buy? Can you share the version number. and once you have updated the plugin you have to save the settings once again and try to update the permalinks |
@varunsridharan sure see: I had already installed and updated the permalinks ... it doesn't work. |
@alephart weired !!! would you mind sharing site access to debug / can you share screenshot of all the settings options from our plugin ? |
@varunsridharan ready, i create an account with your email... This screenshot settings: Options General: Permalinks: |
Thanks for supporting this plugin by providing access to your site :-) Well i was able to check and figure out the issue but not a proper fix for it yet. Let me explain on whats going on (its a note to myself to )
|
The issue is happening after the recent update in the version of 2.7.4. The buy now to checkout page functionality is working fine on product pages but on the products listed in the home page it is giving a 404 Error.
The text was updated successfully, but these errors were encountered: