Developer forum

Forum » Ecommerce - Standard features » Several Ecom modules at same page

Several Ecom modules at same page

Bo Dudek
Reply

Hi

a) We have a template where as a part of the main navigation we are outputting Ecom Groups and Subgroups.. and when mouseovering a Subgroup in this navigation we AJAX load Products from the mouseovered Subgroup and show the Products as a part of the navigation. This works great. 

b) But we have a subpage on which we publish Groups and Products using the Ecom Module. On this page if you click a Group, then you are shown the same page but with GroupID as a url parameter. This url parameters makes sure, that we show Products from the user chosen Group. This works great. But when at this specific page, then the navigation from a) is messed up because suddenly the AJAX loaded Products uses the url parameter.

Suggestions? 

Thanks


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Bo

Not sure I understand your setup completely. But you should have 1 or more hidden pages where you get the data for your AJAX calls that is seperated from the page that shows the content.

Never have more than one ecom catalog module on a page. It can give you lots of issues...

BR Nicolai

 
Bo Dudek
Reply

Hi

Let me simplify a bit: I have a navigation on my website which shows groups, subgroups and when mouseover a subgroup I ajax-load products for the subgroup. The ajax-load is done using a hidden page. This is ecom module #1. 

When the user clicks a (main)group in the navigation, then he's taken to a regular page, which outputs the subgroups as a part of the content area. This is ecom module #2.

At some other pages just before outputting the content area we - below the navigation - outputs the (main)groups in a kind of a slider. When mouseover a group here we show the related subgroups, and when mouseover a subgroup we ajax-load the related products. This is ecom module #3. 

Basically the main issue is, that I need the navigation to show groups + subgroups + products and on specific pages below the navigation I also need to show groups + subgroups and products. I have been considering outputting the ecom data at one single place and then using js to move / copy it when needed. But this is not a great approach for seo. 

I actually thought, that I would be able to make an ecom based navigation out of the box, but I can't make it work.

Thoughts?

Thanks

 
Nicolai Høeg Pedersen
Reply

Hi Bo

On the page properties, options tab, navigation dialog, you can tick a box to include products in the navigation XML. Should that not be enough? Or am I misunderstanding something? A screendump maybe?

BR Nicolai

 
Bo Dudek
Reply

Hi

Ok, missed that part. When doing so, then the navigation outputs groups, subgroups and products as expected. Great. 

But I still need to be able to output a group-slider with subgroups, which shows products when mouseover a subgroup. And on the same page I need to output e.g. a list of products from a chosen subgroup BELOW the group-slider. 

Is that (im)possible?

Thanks

 
Nicolai Høeg Pedersen
Reply

Screendump please? Need to see it...

 
Bo Dudek
Reply

Hi

Fair enough :)

In the top of https://cl.ly/1O2H2G2Y471j you see the group-slider and below you see a list of subgroups because the user has just clicked HANDSKER i the (main)group. If the user now clicks RENGØRINGSHANDSKER in the group-slider, then the product-list below will update and show products belonging to RENGØRINGSHANDSKER online. This could be done by filtering with e.g. data-attributes.

But - the user should also be able to see the products from the sub-group RENGØRINGSHANDSKER by simply entering an url including the group id. And in order to be able to achieve this, then I need to get ecom data for the group-slider but also ecom data for the produc-list. And - this is cauing me headache here.

Thanks

 
Bo Dudek
Reply

Nicolai, did you have a change to have a look at it? 

Thanks

 
Nicolai Høeg Pedersen
Reply

Well, I have no great ideas... It looks like a bit complicated navigation scheme.

Both the navigation and the catalog module can show all the data you need, so you 'just' have to build in logic to handle it.

BR Nicolai

 
Bo Dudek
Reply

Hi

One option could be to add all the needed data to the menu as data-attributes as we spend "ressources" anyway when outputting the menu. And then fetch those data into the group-slider when needed. AFAIK the navigation output is not affected by any url parameters as the regular ecom module output is, right? 

Thanks

 
Bo Dudek
Reply

.. so where to edit the output from a partly ecom based navigation? 

Thanks!

 
Nicolai Høeg Pedersen
Reply

You do that on the page properties, ecommerce navigation settings.

The data is affected only in the sence that it will have changes to the inpath and active attributes in the XML indicating where you are in the structure.

NP

 
Bo Dudek
Reply

Hi

Ah, so I can NOT affect the actual output of the ecom-based navigation? If I e.g. want to add custom fields from products to each XML node used in the navigation? 

Thanks

 
Nicolai Høeg Pedersen
Reply

That is correct...

 

You must be logged in to post in the forum