Developer forum

Forum » Ecommerce - Standard features » BOMProducts in Product-list or/and Related-Product

BOMProducts in Product-list or/and Related-Product

Thomas Jensen
Reply

Hi

in DW9 (9.5.0)

In the "Products" loop under the "ProductRelatedGroups" loop
I don't see the "BOMProducts" loop

In the "Products" loop in the Productlist template
I don't see the "BOMProducts" loop

The "getProductByID" is not a thing in DW9

 

Is there a way to get the "Parts Lists" item for a product in "Product list" or/and in "Relatede products" ?

 

Regards Thomas


Replies

 
Nicolai Pedersen
Reply

Nope, as it performs like crap. You mention 9.5 - did it work in 9.4?

Could you explain your use-case? Maybe there are a workaround.

 
Thomas Jensen
Reply

Hi Nicolai

Just tested it in a DW 9.4.15, and nop the BOMproducts is no to be found in the product list

Basicly in the product list, I need to show what parts a part list contains
I ekespect that the product list and the related product list, is build the same way

 

The scenario is like elgiganten, where in a product ex. a TV, under on the product you can buy the TV, a Stand, and a Soundbar as one packetch
I see the packetch as a parts list, and it is atatch to the product as a relatede products, and here i need to show all the parts

 

I was just thinking, if there is shomething I can do in repository ?

 

Regards  Thomas

 
Nicolai Pedersen
Reply

Hi Thomas

I cannot see from Elgiganten that they have those options in the product list.

I can see that they have packages when on a product detail.

What they seem to be doing is that you have a list of products "Frequently bought with" just presented in a clever manner.

So, create a related group called i.e. "Frequently bought with".

Create a product, i.e. "TV 125"". Add a number of add-ons in the related group "Frequently bought with"

On the product detail, show the tv. In the related list, instead of just showing the products you have related, you render them like on elgiganten.

"Packages"
"TV 125"" (Just reuse the data from the product card) + Add-on 1.

"TV 125"" (Just reuse the data from the product card) + Add-on 2.

Each of these "virtual" packages you wrap in a addmulti add to cart command, so if a user wants to add these to cart, it can be done in one go. The price is just the sum of the product + add-on.

Simple and neat.

Of course if your 'package' deals have special prices etc. this is not a viable option.

Let me hear if this could be an approach.

BR Nicolai

 
Thomas Jensen
Reply

Hi

First, yes there is spectial prices in what I'm to setup (like get battery for 50% off, when buying the packages), but that i have working

 

https://www.elgiganten.dk/product/mobil-gps/mobiltelefoner/HUAP20LBK/huawei-p20-lite-64-gb-smartphone-midnight-black
Here they have a mobile, and under they have a packages where you get the mobil and a cover

this only has one extra item so your solution could work, but if the packages have more, then where to get info about the parts

 

Related group "Frequently bought with" or one called "packages" is what i'm trying to use,
but the info from the list parts is missing (nowhere to be found in TemplatesTags)

A posible workaround is to load in eatch parts list item in it's own iframe, but that can not be the best solution

 

Regards  Thomas

 
Nicolai Pedersen
Reply

Hi Thomas

What they do on Elgiganten is easy and would be possible with my suggestion.

If you want package deals using BOMs, it gets a bit more complicated. You can use the API in Razor to retrieve the BOM products - or use the index + a JSON feed to load them async - or as you suggest use an Ifram. Iframe is kind of hacky and I would go for the JSON approach.

Elgiganten also loads them using an external feed. (My add-blocker actually removes them and other stuff). And that website is giving me an epileptic attack, it really is a bad site...!

BR Nicolai

 
Thomas Jensen
Reply

Hi

I will try the API thing
or can't I get that to work, then the index thing (I have an idea how to do this)

Thanks

 

You must be logged in to post in the forum