Showing ideas with status New.
Show all ideas
Feature request from mackelito, posted on GitHub Jun 09, 2016
Steps to reproduce
Add items to the cart thru the rest API and inspect the result of the xhr
Expected result
Response should be the cart. Same as when requesting '/rest/V1/guest-carts/29c8ee939e3a6146518e7340dfef75eb/totals'
Actual result
The response is the product that we just added. eg:
{"item_id":52,"sku":"MH01-XS-Black","qty":1,"name":"Chaz Kangeroo Hoodie-XS-Black","price":52,"product_type":"simple","quote_id":"569"}
--
If we don´t get the totals as response we need to make twice as many requests..
One for adding item to the cart and then
One to get the cart totals.
It would be way smoother to get the cart totals as the response when adding to the cart.
... View more
Feature request from nextend, posted on GitHub Jun 10, 2016
It would be great if you could add extend the setup:di:compile command with hooks to be able to exclude specific directories in our extensions. My extension is a crossplatform application and the compiler always fails as it uses custom autoloader and lot of special things. With the current Magento 2 compiler I can not release it.
As far as I see the test folders excluded only and there is no hooks anywhere to intercept the excludes and place mine in place.
Related stackexchange question: http://magento.stackexchange.com/questions/119967/magento2-custom-autoloader
... View more
Feature request from grasdaggel, posted on GitHub Jun 10, 2016
We need to delete the whole pub/static/frontend-folder if we want to have CSS changes and stuff available on the site.
So we do the following:
$ rm -rf var/cache/ var/generation/ var/page_cache/ pub/static/
$ php-cli bin/magento setup:upgrade
$ php-cli bin/magento setup:static-content:deploy de_DE
Here comes the problem. If you delete the backend folder in pub/static Magento tries to allocate the requested URL (i.e. login page for backend) for the en_US language, even if the only user in the backend has selected that his main language is de_DE.
Magento simply tries to access files that are not there and that are not needed to be compiled (in our case: German). There should be an setting in the backend that sets the main language for the whole store to a specific language which get then called by default. This prevents unnecessary white pages.
... View more
Feature request from wienczny, posted on GitHub Jun 13, 2016
According to the Swagger documentation "extension_attributes" is a reference to an attributes object. If there are no extension attributes the API returns an empty array [] . This is illegal according to the Swagger documentation. It has to be either null if there is no object attached or an object {} .
I found this using the Java Swagger client and a product request:
{
"id": 1,
"sku": "test",
"name": "Test",
"attribute_set_id": 4,
"price": 12,
"status": 1,
"visibility": 4,
"type_id": "simple",
"created_at": "2016-04-30 11:02:24",
"updated_at": "2016-06-10 12:47:19",
"weight": 5,
"extension_attributes": [],
"product_links": [],
"options": [],
"media_gallery_entries": [],
"tier_prices": [],
"custom_attributes": [
{
"attribute_code": "meta_title",
"value": "Test"
},
{
"attribute_code": "meta_keyword",
"value": "Test"
},
{
"attribute_code": "meta_description",
"value": "Test "
},
{
"attribute_code": "category_ids",
"value": [
"2",
"3"
]
},
{
"attribute_code": "options_container",
"value": "container2"
},
{
"attribute_code": "required_options",
"value": "0"
},
{
"attribute_code": "has_options",
"value": "0"
},
{
"attribute_code": "url_key",
"value": "test"
},
{
"attribute_code": "tax_class_id",
"value": "2"
}
]
}
I had to modify the swagger definition because of #2310 to get this far.
... View more
Feature request from aleron75, posted on GitHub Jun 13, 2016
This is a nice to have requirement born from poking with Magento 2 runtime: there isn't an AppInterface implementation for PHP scripts using Magento runtime.
Indeed the bin/magento is a SymfonyApplication and doesn't implement the AppInterface .
Here is the article which originated this thought: http://aleron75.com/2016/06/10/let-s-poke-with-magento-2-runtime/
Thank you!
... View more
Feature request from flancer64, posted on GitHub Jun 15, 2016
Hello,
there is protected property "select" in AbstractSearchResult that is never used
/**
* @var \Magento\Framework\DB\Select
*/
protected $select;
... and there is 'query' property in the constructor that is not defined:
public function __construct(
\Magento\Framework\DB\QueryInterface $query,
...
) {
$this->query = $query;
...
}
I suppose this code:
/**
* @var \Magento\Framework\DB\Query
*/
protected $query;
should be instead of 'select' property.
... View more
Feature request from minhluan259, posted on GitHub Jun 16, 2016
pub/static/frontend/Magento/luma/en_US/jquery/jquery.cookie.js
Jquery cookie in magento 2.1 is old version (v1.1). It hasn't function $.removeCookie .
Please update to jquery cookie v1.4.1
https://github.com/carhartl/jquery-cookie/blob/master/src/jquery.cookie.js
... View more
Feature request from dzotic9, posted on GitHub Jun 16, 2016
Steps to reproduce
Magento CE 2.0.7 + sample data
App server nginx+php-fpm, Varnish for FPC
default.vcl file - http://pastebin.ru/gsQnLUh0
Expected result
Page should be cached with all resources
Actual result
Cached only static resources, html not cached. Same requests (main page or same search requests) go to app server
... View more
Feature request from ruby10, posted on GitHub Jun 21, 2016
Hi there,
I have an issue regarding setting fields in invoice create API
POST "V1/invoices"
with payload
{
"entity": {
"base_discount_tax_compensation_amount": null,
"base_shipping_discount_tax_compensation_amnt": null,
"discount_tax_compensation_amount": null,
"order_id": 58,
"shipping_discount_tax_compensation_amount": 0,
"total_qty": 2,
"grand_total": 155,
"subtotal": 150,
"items": [
{
"base_discount_tax_compensation_amount": null,
"discount_tax_compensation_amount": null,
"order_item_id": 74,
"sku": null,
"qty": 56,
"row_total": 150,
"tax_amount": 152,
"discount_amount": 23,
"price": 154
}
]
}
}
Here I am setting fields "grand_total", "subtotal" on body level and fields "qty", "row_total", "tax_amount", "discount_amount" inside items array.
As a API user, I am expected to pass Magento API with orderId, Items object array with order_item_id and qty, shipping cost ( again validation where this cost should be less then order shipping cost ) ,
but if I just provide these fields , they are displayed as '0' in invoice created on admin panel
... View more
Feature request from paales, posted on GitHub Jun 21, 2016
Currently using 2.1-rc3.
There is no API available for product option swatches. It makes sense if we are able to use the ProductAttributeOptionManagementInterface to add new swatch texts to products.
Maybe to have better separation of concerns we could have a ProductAttributeOptionSwatchManagementInterface to add swatch information to an existing option.
... View more
Feature request from bentideswell, posted on GitHub Jun 22, 2016
The function returns a \Magento\Framework\Phrase object that when echo'd, is converted to a string via the toString method. This breaks several integrations I am working on and also doesn't work properly with json_encode (its saved as an object rather than a string).
Is it possible to have have this method return a string? The majority of time this method is used, it will be echo'd straight away, meaning the object isn't required anyway. A second function could be created that returns the object and the __ function could call this second function and cast the result to a string.
Here is a rough example:
function __O()
{
$argc = func_get_args();
$text = array_shift($argc);
if (!empty($argc) && is_array($argc[0])) {
$argc = $argc[0];
}
return new \Magento\Framework\Phrase($text, $argc);
}
function __()
{
return (string)__(func_get_args())
}
This is needed as the __ function cannot be overwritten or extended like all other publicly available methods in Magento.
... View more
Feature request from loomdecor, posted on GitHub Jun 23, 2016
In magento 1, you could move multiple categories at one time - which I can't seem to do anymore.
Also every time I move a category I get a warning message. I get it - it takes a long time. But it takes even longer if I have to close it all the time. This should be something where I can say "don't show me again"
... View more
Feature request from adlogic, posted on GitHub Jun 24, 2016
Steps to reproduce
$trigger = $triggerFactory->create();
$trigger->setTable('some_table');
$trigger->setTime(Trigger::TIME_BEFORE);
$trigger->setEvent(Trigger::EVENT_INSERT);
$trigger->setName('some_trigger');
$trigger->addStatement('/* dummy */');
$setup->getConnection()->createTrigger($trigger);
Expected result
Trigger is successfully created.
Actual result
[PDOException] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';END' at line 13
More info
Magento generates following query:
CREATE TRIGGER some_trigger BEFORE INSERT ON some_table FOR EACH ROW
BEGIN
/* dummy */;
END
So, ::addStatement should use some heuristics for auto-adding semicolon after each statement, or doesn't add it at all.
... View more
Feature request from karanbhomiagit, posted on GitHub Jun 29, 2016
Steps to reproduce
Install Magento from develop branch.
Try creating a simple product by making a call to REST API POST /V1/products.
[Example]
{ "product": { "sku": "atoi-item", "name": "atoi-item", "status": "1", "type_id": "simple", "visibility": "4", "attribute_set_id": "4", "price": "3", "custom_attributes": [ { "attribute_code": "description", "value": "descreeeeeeption" }, { "attribute_code": "category_ids", "value": [ "1", "2" ] } ] } }
I get a response : Status code 400.
Body : {
"message": "Unable to save product"
}
Expected result
Error message in the response body should be more specific.
There are so many field values that are required to be set on the request JSON, there is no way for the person making the request to identify where the request went wrong.
Actual result
[Example] Error message appears: "Unable to save product".
... View more
Feature request from webartistse, posted on GitHub Jun 29, 2016
Steps to reproduce
System > Export
Entity Type > products
Several configs to somehow export useful data
Expected result
Select what products I want
Deselect some columns
Export as Excel XML
Support for saving a filter option set.
Actual result
Total mess of everything
This export function is not even useful in any way
We have 4 stores but same product catalog. We have config prouct with variants. In export file every product appear 4 times. One row is store blank but seems to have all info. 3 other rows has many empty fields but same SKU as the first one.
This exclude thing is all wrong. Lets say I want to export all product for a specific store. Its not possible. I tried to exclude products thats missing info in some fields since its duplicates but export does not apply the exclude filter if the field is empty. Tried many many ways in 30 minutes without any luck with something useful.
Using Magento 2.0.7
... View more
Feature request from tkn98, posted on GitHub Jul 28, 2016
Array keys cast to integer on string SKUs that could represent a PHP integer, however the Mysql comparison is string based for which - to prevent a cast in Mysql - it needs string quotes. These string quotes then need again the $sku as string.
This is fixed by casting to string.
Background: If you import many records with SKU that are numeric strings, Mysql performance is impacted negatively.
... View more
Feature request from paales, posted on GitHub Jul 29, 2016
Preconditions
Magento 2.1.0
Steps to reproduce
Setup 50 stores, with 50 seperate root categories with each their own subcategories.
Import products using the importer, 200 should be enough
Expected result
It does a little bit less than 14000 queries for 200 products ;)
Actual result
[Screenshot, logs]
... View more
Feature request from Vinai, posted on GitHub Jul 30, 2016
Whenever I try to use a custom or core UI component the experience is frustrating, time consuming and painful.
It would be great to see the components either made simpler (to use and understand how they work) or to be replaced with something simpler altogether :tada:.
There is so much JS "magic" and conventions and poor documentation I find the developer experience severely lacking. Much of the XML is bonkers to read and write. So much of it seems to be "just do X and it will work" without information on WHY and HOW to debug if something does not work.
The combination of a ton of PHP, XML and JS makes for a very tricky debugging process. It is very hard to properly write tests in small steps. Much of it is "add ALL the required code or NOTHING will work".
Seemingly simply things become bloated tasks.
Preconditions
This applies to any version of Magento 2 from beta up to the latest version on github.
Steps to reproduce
Try to use UI components, either custom ones or core ones, without using extensive copy&paste and actively avoiding the urge to even think the question "Why?".
Expected result
The system should be simple to use AND understand.
Actual result
Hours wasted slogging through code and documentation, trying to understand WTF I got wrong and I find myself questioning some of my life choices.
... View more
Feature request from allanpaiste, posted on GitHub Aug 04, 2016
Currently it's not possible to create an 'image' EAV attribute for category as the code in many places has been hardcoded to talk only with attribute that is explicitly been named 'image'.
This PR addresses that problem by steering the code towards more generic approach to the whole situation by detecting all matching attributes via backendModel check.
Related issue: https://github.com/magento/magento2/issues/5438
... View more