RW 8.7. Depth theme. RapidcartPro. Trying to switch to Yuzool Nav stack. Having problems with the branding part, but that’s a separate issue. The Depth theme won’t display the font awesome correctly on the menu throughout the site. Had a previous post on this with some help but it didn’t solve the problem.
Might help if you told us where you found the code?
I don’t have RCP other than the demo version, but see if this post will help with the cart (This is for Foundation 6, but might work similarly with Navigation stack):
As for FA not working on all pages, it looks like you are getting a 404 on the web fonts for FA on the RCP pages:
Also, if you want to post code on this forum, if you select it and mark it as pre-formatted text ⌘ Cmd+⇧ Shift+C or the button above where you type </> Next to the big ”.
Aren’t there, since they appear to be part of the RCP plugin, my guess is for some reason they didn’t get published. I’d try to republish all files maybe.
I don’t have access to the server, so can’t say for sure. I also noticed that if I try to click on the cart button, I get a JS error?
As for the code, I don’t know if that is specific for that theme. I know the demo project just uses an offsite page to add the cart to the RW navigation.
I am most likely a bit dull here, but I cannot find ‘Menu Item’ stack. I did a web search on ‘menu item stack’ and only got navigation stacks from various developers.
Ok. I opened the web developer window and found the 404 errors? Is this something I did or didn’t do? Or should I contact 4gnd?
About fa, I thought that entering it into the page name would make it ubiquitous throughout the site menu.
I did republish. Where are you clicking to get a JS error? I checked a couple pages and didn’t get any errors?
That post was for Foundation 6. if you want to add a cart to the menu in a traditional theme, you add an offsite page (not stacks page but offsite): set the page name (left sidebar) to:
Created an offsite page. Put the code in. Republished all files. Tried the redirect box, too. The offsite page is not published as Show in navigation in General Settings.
First, I also used to be an HVAC controls programmer. This code doesn’t look very hard. Is there a good place to use as a learning resource?
And it did the job, except for needed spacing between the cart and total. I’ve seen carts with the total inside the cart. Possible with this? Perhaps related to the question above.
For The cart to work in the headers you will need to make every page php. The code above injects the money amnt using php. RW won’t automatically change the file extension from .html to .php since you are adding the php by hand.
As for the spacing you can try adding a non-breacking space between the amount and basket:
During my days as an HVAC controls guy customers would often ask, can you make the system (our company was a Schneider Ecostruxure rep) do this, do that? Well, yes, it could and I’d generally do what they asked for free. And now I feel like I am in the customer chair. And I am very grateful for your help.
The stylesheet code did the trick.
I’ll give the shopping cart codes a go.
As for the file name changing, this gets changed in General Settings>Filename>index.html to index.php?
I was also doing some searching on warehousing images and read Will’s ebook. He suggested a couple places to learn HTML. Sounds like a good idea during the cold Indiana winter.
For existing pages you’ll need to change the name in the page inspector from index.html to index.php. You will also need to delete the old .html files on the webserver manually with an FTP app or file manager.
For future files, you can change the default file extension to PHP in the advanced settings.
One other thing I think I remembered about RCP. If I remember correctly, you’ll need to put a shopping cart on every page if you want the cart total to work. Even if you hide it from being visible it needs to be there for the cart to work.
There are many ways to learn HTML, free, paid, books videos, and tutorials. The two (W3schools, and CodeAcademy) @willwood mentions are great resources. You can also find lots of stuff on youtube, Udemy, and online by searching. Don’t forget that html is only one part of what you should learn. You’ll probably use CSS as much or more than html.
I’d also suggest that you learn to use the chrome developers tools. Udemy has a pretty good free course on that. Firefox has great tools as well, Safari’s tools aren’t so bad either.