Developer forum

Forum » Swift » Mini cart in Swift

Mini cart in Swift

Tomas Gomez
Reply

Hi,

We need to implement a mini cart in a Swift solution. That is to show/hide a panel with the cart info when pressing the cart button of the right corner.

This was done at Rapido by the website settings, but these setting are not in Swift. As well, I cannot find any tutorial in Swift, only in Rapido https://doc.dynamicweb.com/rapido/configuration/website-settings-tabs/ecommerce#sideNavTitle1-2

In Swift, there is a "Cart Summary" item type but it is not possible by default to add it with the Visual editor.

Is the "Cart summary" what I need to implement a mini cart in Swift? What are the steps to do it?

Regards,
Tomas


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply
This post has been marked as an answer

Hi,

We don't have an off canvas mini cart in Swift.

I have created it as a feature request 13422, but it is not prioritized or planned into our road map.

BR,
Merethe 

Votes for this answer: 1
 
Tomas Gomez
Reply

Hi Merethe,

Thanks for the confimation.

As well, is there any Swift item to implement a selector for the number of columns displayed in the priduct list? There was an option in Rapido but I cannot find it in Swift.

Regards,
Tomas

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

If you use Product components, you can create a component based product list. Here you have more options for the product list.
It is setup on the Product component repeater:
https://www.screencast.com/t/hOJCkR8TRY

BR,
Merethe

 
Tomas Gomez
Reply

Hi Merethe,

Thanks for the info, we will use that Product component repeater.

One last question: You created the feature request 13422 for the mini-cart. Where can we see a list of these festure requests?

Regards,
Tomas

 

 
Tomas Gomez
Reply

Hi,

We finally implemented the mini-cart with a Shopping cart App and a custom template to show/hide it by bootstrap.

The problem is that the content of the mini-cart is not updated when the user adds a product. The mini-cart is only updated when refreshing the page, and adding a product doesn't refresh the page

What is the best way to keep updated the mini-cart?

Regards,
Tomas

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

You can reload the page by extending the add to cart js:

https://doc.dynamicweb.com/swift/customization/guides/extending-swift-javascript-modules#sideNavTitle1-1

Votes for this answer: 1
 
Tomas Gomez
Reply

Thanks Nicolai!

That's exactly the info I was in need for :-)

 
Alexander Tømmerholen
Reply

Hello,

Has anything happend to this feature request? We have customers that keep asking about this

 
Johanne Glimsdal
Johanne Glimsdal
Reply

Hi!

Any new info on this?

 

You must be logged in to post in the forum