Ebay Browse API ignoring aspect filter - ebay-api

For example:
https://api.ebay.com/buy/browse/v1/item_summary/search?category_ids=9355&limit=3&filter=sellers:{alba_mobil}&aspect_filter=categoryId=9355,Brand:{Apple},Model:{Apple iPhone 13 Pro}
API Explorer Ignoring Aspect Filter, response contains no aspect filter errors. I want to filter items brand and model, can you help me.
enter image description here

Related

Liquid - get product ID and display custom/specific information dynamically

I am trying to add a small 'lockup' / promo to a page that loads information dynamically based on page.metafield information. Replacing images, video ID's etc. Which all works just fine.
My client is asking for a small area to display a product that relates to this dynamically changing content and I am struggling to come up with a good way to do this.
The current setup is that we have 30 pages with a set of 8 metafields each page. Each one of these pages must show a different , single product with an image, title, price, buy button and another button that links out to a partner site.
I can create snippet and load almost all of this info through metafields manually (price, title etc the client could just add to another metafield) but I would prefer to load a product to pull this info so it can be added to cart. Although I can add product data manually, I still don't actually know which product will get added to the cart, because I'm on a 'page' not a 'product'.
The products themselves are using a custom template that is different to the rest of the site so that seems like its not an option. The template for this content page is just 'page' but surely I can call the product object someway? If the client entered a product ID in the metafields, is there a way of pulling that IDs data easily?
Whatever you mean by pulling ID's, but there are a couple of ways of dealing with this. One, you have a Storefront API token, allowing you to freely and securely call Shopify with JS and get back all the data about the ID you're interested in. Or, you have an App installed in the store, in which case you can setup and callback an App Proxy, providing that ID, and getting back all the info you need. Lots of options!

Shopify - is it possible to change the preview of a product with a inputbox?

Which ways are possible to edit the live preview of the product page in Shopify with Inputboxes next to it?
Let's say the product is a poster, and i want to add a custom text on it.
When typing into the inputbox the text changes in real time on the product.
Can this be implemented in the shopify code with the basic version of shopify?
Or does this necessarily needs an app?
ADDITIONALLY:
Let me go a bit deeper. I have a code that can generate a QR code.
Now i want that the QR code to be previewed in the product. Now position and color of the QR code is different from any product. Would that need an app?
Yes you can to an extent.
First the ground rules:
You can't modify the product from the front-end and update the content or media in the back-end - this would be a huge security hole
The changes applied to the product will be visible only to the user who changed them
The solution is to use Javascript and update the content of the front-end. If you like to store the changes for that specific user you can save them as cookie or localstorage.
If you like to share this change to other people you will need to add a custom parameter in the URL of the page and generate the content from it and share that url.
Each one of these steps will require some custom Javascript that will affect only the user in question, if you like to modify the product in the back-end directly you will need some kind of an app for this.
On my mind it can be done if the dynamic text is applied over product image.
Detailed code would be too long to write here but here are the steps:
Add an input to your product form to add a custom property (https://community.shopify.com/c/Shopify-Design/Product-pages-Get-customization-information-for-products/td-p/616503)
Write a Javascript function to get input value in real time
Use this value to display it in a div in product image container
Position this div in CSS as absolute and style it as you wish
While image container position should be set as relative in CSS
HTH

Chart in Dynamics 365 Portal page is not filtering based on current logged in user

I am running Dynamics 365 Customer Self-Service Portal (v8.3.3.153) for CRM Online, and I'm having trouble getting a chart to display the correct data based on the currently logged-in user. I set up a pie chart for cases and added that to the Support Home page which also has an entity list control to display cases based on different view selections. So for example, if I am viewing open cases in the entity list, that is filtered by my currently logged in user so I have 5 cases, but the chart shows all open cases for all contacts (300+) when using the same view for the chart as for the entity list. In my support home page I added Liquid code like this:
{% chart id:"F1F23F44-4C37-E811-811F-E0071B6AA291" viewid:"9F9AA5DC-A537-E511-947E-00155D038C01" %}
I tried the suggested view filter configuration based on the article here, but that just resulted in my seeing no data in the chart, it seems that the portal page didn't automatically switch out the contact guid.
Is there any way to configure a chart to reflect the same filtering based on contact and/or parent account as can be done with the entity lists?
I am also integrating charts on the Portal and noticed this behavior, but as I want to display this only to the Admin was not an issue.
It also happened to me to have filters not applied same way on the CRM and Portal. for example using a Lookup field value, seems more like a bug to me.
Give it a try to use the View on a Entitylist and see what kind of results you get there, otherwise I'll suggest you to raise a Ticket to Microsoft.

Etsy API, including images in a section listing

So far I've been able to filter the call to only obtain products within a section with this url:
https://openapi.etsy.com/v2/shops/FOO-USER/sections/21162893.js?callback=JSONP_CALLBACK&api_key=BAR-KEY&includes=Listings(price,title,shop_section_id,description,state,item_width,item_height)&fields=title
The problem is Etsy api doesn't accept Images association for ShopSection:
https://www.etsy.com/developers/documentation/reference/shopsection#section_associations
So how can I list products with thumbnails within a section?
Bonus Question: Etsy always returns null for item_height and item_width even if the product actually has a height and a width, is this a bug?
Found the solution, turns out you can just add a second level of listing for the images in the url:
https://openapi.etsy.com/v2/shops/FOO-USER/sections/21162893.js?callback=JSONP_CALLBACK&api_key=BAR-KEY&includes=Listings(price,title,shop_section_id,description,state,item_width,item_height)/Images(url_570xN)&fields=title

How to search category and fill site parameters automatically

I have seen some sites where you search (in Google) for a particular item category and when you click the link found in Google it automatically goes to the site clicked with the search criteria filled in displaying the categorised products.
Hypothetical Example
Go into Google type in Sony TV , click to search.
Results are displayed.
Clicking one of the links takes me to a website which shows all the Sony TV models beginning with AA.
Looking at the search options on the page some fields have been automatically filled in (in other words if you did this search manually the site would prompt you to enter some search criteria) - Not sure if this is relevant but thought to mention.
How is this done? Do i need to setup something in our Google account to get the same results?
It's fairly simple. You pass parameters in your URLs that identify the product, and then you just read the URL parameters when pre-populating the search form on the page. When building your site / sitemap / internal & external links you use those page URLs and Google will naturally pick them up.
In your example, you search for Sony TV. One of the results may be
example.com/index.php?product=sony-tv
The website has the variable sony-tv, which it gets from the URL and pre-populates on the search form.
The important part to note is that the site will have built its URL structure in this method typically and the page you're presented with just happens to look like the site dynamically searched based on your query (it hasn't).