WebSite X5Help Center

 
Daniel D.
Daniel D.
User

How to get the category name of a productby using x5engine  en

Autor: Daniel D.
Visitado 677, Seguidores 1, Compartilhado 0  

Hi

I can get all product data of my online shop via javascript but not the category name.

I use the x5engine object as simplified below:

varproducts = [];

var manager = x5engine.cart.manager

var productsRaw = x5engine.cart.manager.store();
for(item in productsRaw){

  var prod = productsRaw[item].base();

  products.push(prod);

}

productsRaw[item].base()

returns all product data in clear text but just the category with only the categoryId (like category"b9k5x0hh") but not with the real category name.

I have played around with the x5engine but could not find a way to get the category name from the id.

Is this possible?

Thanks

Daniel

Publicado em
1 RESPOSTAS - 1 CORRIGIR
Incomedia
Stefano G.
Incomedia

Hi Daniel.

Unfortunately, such information cannot be provided by the Staff since it involves major use of custom code (even though it is related to the automatically generated code, the question is actually about new custom code that needs integration) which would not be guaranteed to work correctly and with full compatibility with every software version. 

I will, however, leave the topic open so that other users might eventually stop by and help you out with this.

Also, contacting a professional directly for this could be a good idea as well

I apologize for not being able to help further with this

Thank you for your understanding

Stefano

Ler mais
Publicado em de Stefano G.