justunocom / m2 Goto Github PK
View Code? Open in Web Editor NEWJustuno module for Magento 2
Home Page: https://justuno.com
Justuno module for Magento 2
Home Page: https://justuno.com
We would like a separate endpoint to begin checking inventory quantity.
We would need a route we can ping several times a day that we can use to sync the inventory quentity of our initial ingestion.
On this route the only thing we would need returned is theproductID
, it'svariantID
s and their respective quantitysomething like
https://somesite.com/jumagext/response/inventory
type InventorySync struct {
Products []Product
}
type Product struct {
ProductID string
Variants []Variant
}
type Variant struct {
VariantID string
Quantity int64
}
We would only want records for Products where the product and at least one of its variants are active.
We don't want to include products that have been disabled or have only disabled variants
Similar to justuno-com/m1#55
Similar to justuno-com/m1#54
My other request is for a small new feature.
Can you add the ability to pass the catalog API endpoint a specificproductID
or name and only get back that product?
Mostly for debugging purposes.
An examplehttps://somesite.com/jumagext/response/catalog?productID=akdjfa
orhttps://somesite.com/jumagext/response/catalog?name=kadjfadkf
.
Or if it makes it easier just make a new route entirely for this that works too
Related to #10
I was actually wrong and it was supposed to be
apps/justuno/service-worker.js
is apps possible?
I’d much prefer that vsjustuno
being the first directory path since our embed code is already set to look forapps/justuno/
The code introduced on March 6th (Justuno\M2\Config\Backend\Debug) can submit production database credentials over a potentially unsecured connection to a static email address that could be compromised (also increasing the likeliness of being compromised as it makes for an interesting target for hackers). This code doesn't belong in a production environment and must be removed from official releases to avoid compromising all Magento applications using this extension that intentionally or accidentally triggers this functionality.
Can you confirm whether or not the plugin is supposed to have a button to autogenerate the api key in the admin after installation?
It was my understanding this was how the plugin functioned but we are having a user that is not seeing that button or having an api key generated for them at all, the api key field is just blank and there is no button.
If this is not a feature can you please update the plugin to allow it.
Otherwise if this is a bug if you could let me know what you need i will get it for you to assist with debugging
Currently if a magento instance has more than one store the feeds pull from all the stores products/orders/inventory.
Also, the js embed code gets put on all stores.
I'm thinking that we need to update the magento app settings page to allow entry of Justuno Account ID and create an api key per store.
That way depending on the api key used, it will fetch the relevant records.
Similar to justuno-com/core#374, JustunoCom/magento-2-v4#4, mage2pro/core#168
It is required for justuno-com/core#373
We need both apps to automatically create a route to www.sitedomain.com/app/justuno/service-worker.js
Here's the file that needs to be made available at that route
self.addEventListener('push', function (event) {
console.log('Push message!', event.data.text());
const payload = JSON.parse(event.data.text());
event.waitUntil(
self.registration.showNotification(payload.title, {
body: payload.body,
requireInteraction: payload.requireInteraction,
icon: payload.icon,
image: payload.image,
data: {
link: payload.link
}
}));
});
self.addEventListener('notificationclick', function (event) {
console.log('Notification click: tag', event.notification.tag);
event.notification.close();
if (event.notification.data.link) event.waitUntil(clients.openWindow(event.notification.data.link));
});
Similar to justuno-com/m1#38
Similar to #19
Related to justuno-com/core#347
We are having an issue with the Magento 2 plugin with one of our clients.
Upon hitting page 15 of the catalog route the Magento 2 plugin responds with a message object rather than an array of products.
This is hindering the ingestion process.
I believe we need to account for configurable products.
I would think having a configurable product is fine as that would fit in nicely to our Product->Child Variants schema,
but given the nature of configurable products there may be issues having them as variants since CP depend on a list of variants themselves.
Can you look into exactly what is causing this issue please and we can go from there?
log.mage2.pro/justuno/m2/issues/60253
Similar to #20
One of our new clients can't finish their ingestion because one of their ProductVariants has an option with a bool value instead of a string, so when ingesting the data fails at destructuring.
We would just need the plugin to force any values for those options to strings and that should fix it.
Here is an example of a products variants that cause this:
"Variants": [
{
"ID": "102232",
"InventoryQuantity": 0,
"MSRP": 58,
"SalePrice": 58,
"SKU": "CLeader1502-Clear-Clear-62",
"Title": "Leader T-Zone Basic Package-Clear-Clear-62",
"Option1": "Clear",
"Option2": "Clear",
"Option3": false
}
]
Similar to justuno-com/m1#57
"ImageURL1": "https://localhost.com:2194/pub/static/frontend/Magento/luma/en_US/Magento_Catalog/images/product/placeholder/image.jpg",
"ImageURL2": "https://localhost.com:2194/pub/static/frontend/Magento/luma/en_US/Magento_Catalog/images/product/placeholder/image.jpg",
A part of #19
Currently you send us back 3 product image urls.
Are you just sending back the first 3 image URLs you find for a product?
Is it possible to add some logic to ensure that if an image url with the string "hero" in it exists, if we could always include it in the 3 sent to us, preferably asimageURL1
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.