How to add the cart to non-RapidCart pages

RapidCart_Tips_and_Tricks_icon.png

Previous: Adding Multiple Thumbnails for each item

It's handy to have the cart in other pages of your site so visitors can surf without loosing their cart content and keeping the cart amount always on top.
We will use a book shop to illustrate how to do it.
Open your RapidWeaver project with the RapidCart page in it. Click on Page Options > General in the RapidCart page and then on `Copy template to clipboard"button as you see below:

RapidCart_Tips_and_Tricks_Book_shop_copy_to_clipboard.png

Now choose the non-RapidCart page (1) you need to insert the cart to and open "Page Inspector". Select Header (2)> Header Custom (3) and paste the code into the window.

RapidCart_Tips_and_Tricks_non-RapidCart_page.png

NOTE: You won't see the cart in Preview mode. You have to publish the site.

If the non-RapidCart page is stored in the root of your site (e.g. http://www.your-site.com), you've just finished and it will look like this:

Book_shop_published.png

If the non-RapidCart page lays in a folder (e.g. http://www.your-site.com/folder1/ ), you need to adjust the code for any rw_common reference.
Go to the non-RapidCart page and open "Page Inspector": as above, go to Header > Custom Header to edit the code.

For each path having a reference to rw_common set it as ../rw_common.

RapidCart_Tips_and_Tricks_folder1.png

If the non-RapidCart page is in http://www.your-site.com/folder/subfolder/ add the ../ twice for each rw_common occurrence.

RapidCart_Tips_and_trics_nonRapidCart_subfolder.png

Then publish the site again.

Next: How to replace add to cart button