I have a website built in RapidWeaver (version 4.4.2) - up and running for over 10 years. Just opened a Shopify account and started out with a test product / Buy Button. The folks at Shopify say everything is filled out properly and working. But after I embed the “Buy Button” code nothing appears in my preview or when I upload the new page to the internet.
I found some ideas about possibly needing to put part of the code in the header of the page but can’t seem to figure it out. Any help is appreciated.
I’m not familiar with RW 4 settings - but a couple of things to check:
There should be a Header section in the Page Inspector where you can add code
Also, when you insert the HTML code that goes into the body of your page, be sure that it is pasted in as plain text. You can usually do that by Selecting Edit - Paste as Plain Text from the menu (again, not sure what RW 4 settings look like).
This isn’t really my forte but in the Page Source/Page Inspector, you can see the javascript code that’s pasted into your site. I’d try putting that bit (the part in between <script> tags into the Javascript section of that Header tab and seeing if that does the trick.
When you add it, are you adding the <script> and </script> tags as well, or just the pieces in between it? Because Rapidweaver adds those tags automatically and I think duplicates can cause unwanted errors.
That’s about it from me as far as suggestions go, unfortunately. Hopefully someone can help get you sorted out.
If things are as I’m thinking… Code for BUY buttons go into the page where you want the button to appear. Paste into your page, highlight it, and from HTML menu select “Ignore formatting” from the HTML selections. See sample in pic below… the “green” means that “ignore formatting” has been applied. Private info has been edited out.
Double check that the code you are pasting has no smart quotes. Could you take a screenshot of the code for us to see? If there is private info black those characters out…
Left grid shows the code in green… right grid shows a button not in edit mode… image is being displayed.
Or perhaps a Buy Button on your page like that is not what you are doing… .I’m not clear. What you see below puts an item in the users cart… We are using Ultracart right now…
Hi @MD22 so all you should need to do is paste the generated code into a HTML stack and ignore formatting. Take a look at my example here. If it doesn’t work after that then you might wanna contact Realmac as it may be something to do with the fact how old RW4 is. I’m guessing here as it could be a number of things really.
Add a new blank stacks page
Put an html stack on that page
Go to Shopify
Get the embed code for the buy button,- make sure you are getting the right code. From their description it looks like they have buy button code and cart code. I don’t have Shopify but a different one, on mine, to generate a buy button you do it by going to that specific product to get the code. And to get the cart code you go to the general store area.
Paste the buy button code into the HTML stack, highlight and clear formatting.
Publish that page and have a look.