Having an issue with my website. I have a single product that I’d like to sell so I’d tried to change the buy now button into an enrol button so it has a single click checkout.
See here: https://dshacademy.webflow.io/product/du
however my buy now (which I’ve renamed enrol for the top navbar instantly disappears)
I had two questions:
How do I get it to become visible
How can I set up a single click checkout process if I only have 1 product?
@AjayPrakash I’m seeing the button on your website, could you share with us what the issue was? There are others with a similar problem and the solution isn’t quite clear yet. @liam have you added hosting? That’s our current theory for why these buttons aren’t showing up. @Arthur_Samo I saw your message in the other post. Was your hosting set up?
@sarahfrison Yes I have hosting set up, so I don’t think that’s the issue. I’m thinking my only way out at the moment is to make my own Buy button and call it with custom JS
@sarahfrison Do you know how I could recreate the button? I’m not sure how to make it correctly add the product (of the right variant) to the cart and take the user to the checkout page
Update: I’ve found a workaround. For some reason, the “Add to Cart” button does appear on the published site, even though the “Buy Now” button doesn’t. I made it act like a Buy Now button with the following custom Javascript:
// make "Add to Cart" button (which for us says "Donate Now to Trump Donald!") act like a "Buy Now" button
$('#[YOUR BUTTON ID]').on('click', function(event) {
window.open('[YOUR MAIN URL]/checkout','name','width=800,height=800')
});
In this case, I’m opening a new window, but you could just redirect to the checkout page instead. There are still some issues I haven’t been able to resolve:
The “Waiting” text that appears when you click the button never goes away. I just made it the same as the “Default” text so no one notices.
If you click the button more than once, it adds a second copy of the product to the cart. There’s no way to delete this on the checkout page or anywhere else… so this is not great. You can manually reset it at the developer level by deleting cookies, but I’ll have to find a better way on the user side.
Hi @AjayPrakash, are you still having issues with the “Enroll” buy now button? I am able to see it on the site. Currently the “Buy Now” button only works when there is a Stripe account connected and an Ecommerce site plan added to the project.
The “Buy Now” button does not work with the PayPal checkout flow, as the PayPal checkout flow starts with a modal prior to the user ending up on the PayPal checkout page.