Developer forum

Forum » Rapido » Rapido and minicart

Rapido and minicart

Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi,

On a Rapido-based solution, I need to put the minicart as an element into the productlist-page, next to the normal listview.

My experience with Rapido on this point is limited, so is this possible at all?

--
Best regards
Kurt Moskjaer Andersen


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Kurt

Everything is possible!

You need to move the masterdesktopactionsMenuMiniCart block from the header into the list.

Read more here:

https://doc.dynamicweb.com/rapido/development/blocks/introduction-quickstart

https://doc.dynamicweb.com/rapido/development/blocks/example-1-master-template

BR Nicolai

Votes for this answer: 1
 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi Nicolai,

Okay, thanks :)

Best regards
Kurt

 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi Nicolai,

Is it correct, that I cannot reference the blocks from the Masterpage, from within the Productlist?

As mentioned at the beginning of this thread, I need to move the minicart from the header to the list. Instead of recreating the code for the minicart, I thought I could remove the block from the header and attach it to the productlist instead, but I guess that is not possible?

In the Custom__Blocks.cshtml under MasterBlocks I remove it with the following command:

BlocksPage masterCustomBlocksPage = BlocksPage.GetBlockPage("Master");
masterCustomBlocksPage.RemoveBlockById("MasterDesktopActionsMenuMiniCart");

Then in the Custom__Blocks.cshtml under Productlist/Blocks I would do the following:

BlocksPage masterBlocksPage = BlocksPage.GetBlockPage("Master");
BlocksPage customBlocksPage = BlocksPage.GetBlockPage("ProductList");

Block miniCart = masterBlocksPage.GetBlockById("MasterDesktopActionsMenuMiniCart");
customBlocksPage.Add("Views", miniCart);

... but this is not possible, as the miniCart cannot be referenced from here.

 

--
Best regards
Kurt Moskjaer Andersen

 

You must be logged in to post in the forum