Questions tagged [sphere.io]

SPHERE.IO was the former name of the commercetools eCommerce platform (platform as a service). This is the deprecated tag, please use the new "commercetools" one.

SPHERE.IO is now called the "commercetools platform" to create less confusion between company name and platform name.

There is new stackoverflow tag "commercetools" now, please use this one in the future. The name SPHERE will live on in various code and content locations and all existing URIs will be redirected once we start changing them.

12 questions
4
votes
1 answer

Commercetools - Use query predicates to filter on a collection attribute

I'd like to get all the Category items that have between their ancestors an ancestor with a certain "id". Here is the JSON of one of the categories returned by GETting from /categories: { "id": "4627f3b0-fe52-4cc6-b03e-3fd72e701342", …
andrea.rinaldi
  • 1,167
  • 1
  • 13
  • 33
4
votes
2 answers

sphere.io custom fields on objects

On Sphere.io, I know it is possible to attach custom data to Product objects, using the custom attributes. Is it possible to do something similar with the Customer and Order objects? Just untyped key-value String pairs would be fine for my scenario…
Martin Konicek
  • 39,126
  • 20
  • 90
  • 98
2
votes
2 answers

How to obtain all ProductTypes created in my commercetools project?

I need to obtain all the ProductType that have been defined in my commercetools project because I have to use the localized value of the "name" to perform a search in a file system. Basically I need to use the JVM SDK to extract the list of…
MiguelHoz
  • 49
  • 6
1
vote
1 answer

How to use "Like" where predicate in commerce tools

I am using commerce tools and I want to fetch data for matching result. For example: I need to fetch "keyword" by giving key only, same as we do by using like in SQL. Has anyone know any such query predicate in commerce-tools ? Thanks in advance :)
Ashish Sharma
  • 669
  • 6
  • 13
1
vote
1 answer

How to filter for localized fields in the Commercetools ProductProjectionsSearch API?

I tried to filter for the brand but never got any results back. Brand was a localized text attribute on my products. I used the following…
Philip Claren
  • 2,705
  • 3
  • 24
  • 33
1
vote
0 answers

UV mapping a proceduraly generated sphere in OpenGL

I'm trying to UV a 2D texture on a globe. Here's a piece of code: double delta = 0.0, // angle of latitude theta = 0.0, // angle of longitude theta_interval = (2.0 * M_PI) / latitude, // angle of latitude delta_interval = M_PI /…
matzar
  • 287
  • 2
  • 19
1
vote
1 answer

Sphere.IO : How can we set a custom attribute during product creation?

After we have created a productType and have its type id, how can we set custom attributes during product create API calling. Until now what I've been doing is 1st, create the product, then update the custom attribute. But, I am unable to do so with…
Praveen
  • 419
  • 3
  • 14
1
vote
2 answers

Commercetools Sphereio SphereClient is null

I am trying to run a simple sample of getting product details in android. I am using java sample as guide. https://github.com/sphereio/sphere-hello-api/tree/master/java SphereClient sphere = SphereClient.create( new…
mrYogi
  • 992
  • 2
  • 9
  • 29
0
votes
1 answer

How can we find item based in incomplete name?

I have a question about "How can we find product or something else by partial information (name for example)"?. For example in SQL we can use LIKE. What can we use in Commercetools to do the same? How can we find category by incomplete name in Java…
Mefisto_Fell
  • 876
  • 1
  • 10
  • 30
0
votes
3 answers

Create sitemap from the content of the CommerceTools database

I need to create the sitemap file of my CommerceTools based shop and it would be great if it could be done automatically from the contents of the CTP database. Do you know if there is a module, tool or extension already developed that allows this…
MiguelHoz
  • 49
  • 6
0
votes
2 answers

How can I find a ProductVariant by his variantKey?

In my project I am now needing to obtain the variant of the product from the variantKey, but I have not found any method in the JVM SDK to do it. I tried to do it using the ProductByKeyGet method, but I only get the product if the value corresponds…
MiguelHoz
  • 49
  • 6
0
votes
2 answers

How can I automate image upload to commercetools using JVM API

I'm a pretty new developer in CommerceTools and I've been working with this tool for just a few weeks. At this moment I need to develop a process that should be able to upload all the images related to a product from a folder to commercetools using…
MiguelHoz
  • 49
  • 6