Developer forum

Forum » Swift » Badges not working in Swift?

Badges not working in Swift?

Martin Ottesen
Martin Ottesen
Reply

I have tried to set up badges on a solution of ours, and couldn't get it to work using the guide.

I then thought that it might have been our solution, and tried to set it up on a 1.13 demo we have. 

But neither here does it work. It shows the badges but there is no styling on them see image below, you see all the badges in the code but non on the product except % discount.

This is our demo solution - http://smartpage.swift.dwdemo.dynamicweb-cms.com/e-bikes/e-mountain-bikes 

 

 

This is the product I've added all the badges to: 


Replies

 
Jennifer Johansen Dynamicweb Employee
Jennifer Johansen
Reply
This post has been marked as an answer

Hi Martin

Looks like there is batched on the site

Things that is required for the batch to work is to have

  1. Custom product field called Campaign defined in Settings/ Product catalog / Product fields (IMAGE 1)
  2. If you have added extra campaign options f.x. 'Eco friendly badge' you can go to your products Ecommerce/PIM . Find campaign field and define if the option should be added
  3. In Swift tools/Design/Ecommerce badge (IMAGE 2)
    1. ​Click show page on the ribbon bar
    2. If you get an empty page , or badges that appear with no design :
      1. Click inspect, and empty cache and hard reload. The Batches should then appear
  4. If it is missing o the product catalog go to the specefic itemtype/column and define you batched
    1. E.g.. Conetent/Product/Edit Product list grid view (IMAGE 4)

 

 IMAGE 1 - Settings/ Product catalog / Product fields

 

 

IMAGE 2 - Content / Swift tools / Design / Ecommerce badges

 

IMAGE 3 -



IMAGE 4 -  Product list grid - define batches

Votes for this answer: 1

 

You must be logged in to post in the forum