Showing ideas with label developer.
Show all ideas
It would be so useful to be able to adjust the columns data eg stock levels, quantity and price on the catalog page rather than having to open each individual product.
... View more
See more ideas labeled with:
-
admin panel
-
Catalog
-
developer
Currently the translations in Magento 2 will use the original string if there is no translation. For instance: en_US.csv: "My First String","My First Translation" "My Second String","My Second Translation" nl_NL.csv: "My First String","Mijn Eerste Vertaling" if you do the following when language is set to 'en_US': echo __('My First String') . '<br>' . __('My Second String'). '<br>' . __('My Third String'); The output will be: My First Translation My Second Translation My Third String (falls back on original string) if you do this when language is set to 'nl_NL':, the output will be: Mijn eerste vertaling My Second String (falls back on original string) My Third String (falls back on original string) I think it would be really useful for it to fall back on the default language first, so the output would be: Mijn eerste vertaling My Second translation (falls back on en_US translation) My Third String (falls back on original string) Why? Because this would open up the ability to use short placeholder strings in the code, instead of the long translations. For instance, you could do: "ACCOUNT_NOT_CONFIRMED","This account is not confirmed. <a href=""%1"">Click here</a> to resend confirmation email." This also gives the benefit of being able to correct the en_US language files (for instance when having spelling mistakes) without having to worry about translations or the string in the code.
... View more
See more ideas labeled with:
-
developer
Hello, I believe this is more of a question than a suggestion. Amasty adds a block with technical information in the admin area (see below). Is it safe? Is it possible to add it to vanilla Magento to avoid every extension vendor adding this information? Access control would be more convenient to set up to one page rather than many.
... View more
See more ideas labeled with:
-
admin panel
-
developer
-
extensions
Hi, For all developers In magento when setting a new store up, there is too many configuration that we do according to each developer requirement. For example, i always enable imagick compressen, set flat category to yes, set asynchronous to sales, set product to decrease from stock in pending state, set to show how many items left when reaches 5, set admin lifetime session ......etc There is too many configuration that you cant count we always tune our magento system accordingly. So why every time i need to setup a fresh copy i need to reconfigure the system again and again this takes time and time is money :). My Feature request is that to make an option where we can export magento configuration categories from Sales, General, Catalog, system .... and all there sub categories, and export them to a single file. While in import, i select the file i exported earlier and import the whole configuration or selective configuration, for example i only want to import the Sales category configuration. But you must take into consideration that a configuration file must be compatible with all versions of magento old and future. This is basicly my idea, Also if this idea can be applied to export third party extensions configuration. Because Advanced extensions requires many configuration especially seo tool kits. Using the import with a single click i can configure the whole extension. Also the extension developers can create a configuration settings files to give for extension buyers to configure there extension easily.
... View more
See more ideas labeled with:
-
admin panel
-
API
-
developer
-
platform
Is there a way to change the customer name order (as in Lastname Firstname) globally in forms and display as well? It's ok, that the user registration form can be changed easily, but I could not yet find out how to do it on the checkout page, for example. If you don't get the reason: I'm in Hungary, where we use this "reversed name order", like the Japanese.
... View more
Sometimes in custom development we need to implement a Pool (http://designpatternsphp.readthedocs.io/en/latest/Creational/Pool/README.html). In Magento there is the \Magento\Framework\ObjectManager\TMap class, which is a generic Pool. The idea is to use it as a VirtualType, or even in a composition of a Pool (as it's done for many Pools in Magento 2 core). Is there any reason to make it as internal? What's the recommended way to achieve a pool with the Magento 2 stack?
... View more
See more ideas labeled with:
-
developer
-
extensions
-
other
There is no reason as far as I can see to use the _construct method instead of just using __construct as the language intended. In other areas such as AbstractModel, it's not abstract therefore it's optional, meaning I can put my code in the logical place, __construct. In AbstractResource, however, it's an abstract method, which requires me to implement it. From my understanding, _construct is an artifact from M1 that no longer applies.
... View more
See more ideas labeled with:
-
developer
Hello, I'm working on Seo on Magento 2.2 project and i find SEO integration difficult to modify. For example, to add microdata in offer microdata entity , i must overwritte Magento_Catalog::product/price/amount/default. For me it's not clean to work like that. I think the best would be creating a block in which we include json-ld. However, magento uses microdata which is not recommended by google. Google recommends using JSON-LD for structured data whenever possible. https://developers.google.com/search/docs/guides/intro-structured-data. Do you think improve this seo integration ? Thanks.
... View more
See more ideas labeled with:
-
developer
Hopefully I'm not wrong by agree-ing, that this idea hasn't being postet yet. Well, even I'm pretty new here on magento, I miss a very important option to link pages external via the main menu. Let me explain what I mean; Since approx. 10 years I'm working with joomla! Because I now can clearly see, that magento is way better, faster and much more reliable than virtuemart (common joomla! online shop extension), I would love to integrate magento into my joomlasite, by linking back and forward via the main menu bar. I'm already working at a dublicate template for magento. If such a new Option would exist, than other cms user could use magento as they'r online store. Couldn't it be useful to add or to edit a category widget, which can point to a custom external link? Have a good day and best regards!
... View more
See more ideas labeled with:
-
developer
We use the salesShipOrder method to post shipping information to Magento2 from our fulfillment software. We're able to successfully create the shipment (along with carrier information, tracking numbers, customer notification), however there is not a way to indicate a shipment date (createdAt) for the package. When the post is made, it uses the current date/time as the shipment date, not the actual date/time that the package was shipped. We began using the salesShipOrder method over the salesShipmentRepository method to combat the Magento2 bug where order status is not properly updated. However this new method does not include the essential element for shipment date.
... View more
When working with products regarding store context, there is inconsistency among Quote, Order and Invoice and Shipment items regarding the getProduct() method. The best implementation as of 2.1.7 is Magento\Quote\Model\Quote\Item\AbstractItem.php, where it supplies store id in the context of the quotation. I suggest that the model of Order and Invoice should follow such practise when getting product from underlying items, since developer expects a certain level of API consistency. I can make PRs if everyone agrees.
... View more
As a customer, I would like to sort my wishlist or requisition list items individually so that I can can group products together and organize my lists 1. Magento 2.2 w/B2B extension 2. While on a requisition list with more than one item 3. Dragging my items will change their order within the list 4. On drop, the item position will be saved via ajax 5. On refresh, my item positions will be preserved
... View more
See more ideas labeled with:
-
developer
-
extensions
-
other
Similar to #9582 - we should eliminate the complicated necessary inheritance for creating Imports and Exports that plug-in to DataFlow
... View more
See more ideas labeled with:
-
developer
-
platform
Bumped into this one yesterday. At our company we like to use semantic correct names for our attribute codes. With middle- to larger sized shops these names tend te be somewhat longer. Attribute codes in Magento 2 are not allowed to be longer than 30 characters. Can anyone explain to me what's the reason behind this? Is there a technical one? Or is it just that someone thought at some time "30 characters ought to be enough for anyone"? I'd really like to know.
... View more
See more ideas labeled with:
-
developer
-
platform
Magento 2 REST API get website_ids for product Please provide additional GET REST API method on catalogProductWebsiteLinkRepositoryV1 to allow us to retrieve the website_ids for an sku. Or instead include the website_ids for an sku in catalogProductRepositoryV1 get /V1/products/{sku}
... View more
See more ideas labeled with:
-
API
-
developer
Currently the rest API doesn't send a websiteId attribute when you request a product.This would be really usefull for developers.
... View more
Mag V2 is missing the magentoInfo method that is available in Mag V1 APIs. Please add this to Mag V2 REST and SOAP APIs. It is necessary for feature validation when writing third party integrations.
... View more
See more ideas labeled with:
-
API
-
developer
When i have two classes. One extending the other. class Foo {
//Some code
}
class Bar extends Foo {
//Some other code
} It's common practice to pass Bar instance to functions that requires instance of Foo. For example: magicFunction(Foo $instanceOfFoo){
....
}
$instanceOfBar = new Bar();
$result = magicFunction($instanceOfBar); But, auto-generated factory of Bar doesn't extend from Foo autogenerated factory, so you can't do this: magicFunction(FooFactory $instanceOfFooFactory){
....
}
$instanceOfBarFactory = new BarFactory(....);
$result = magicFunction($instanceOfBarFactory); I think that auto-generated factory of class, that extends some other class, should extend the other class factory as well.
... View more
See more ideas labeled with:
-
developer
From what I can see, the emails sent using the "Send this product to a friend" functionality are the only emails in which the customer can set an arbitrary "From" email address. I propose that the "From" email is a pre-configured Magento email identity, in keeping with all other usages of the email framework. This will allow 3rd party email deliverability services such as SendGrid, & Mandrill to deliver the email, as most services require correct SPF/DKIM records for sending domains. I'm sure it would have a positive effect on spam filters as well. We can set the "Reply-To" mail header to the customer's email address, to allow replies to continue as usual. I'm happy to create a pull request for this functionality, if desired.
... View more
See more ideas labeled with:
-
developer
Magento 2.1.3: I've been given the task that when a customer with a certain property registers itself it should get a different e-mail template. What this property is, is not important for the question, but lets say for sake of simplicity I have a Service Contract that can check if the customer qualifies for the different e-mail template or not: $this->customerChecker->hasCertainProperty($customerId); // returns true or false Now this might seem like an easy task right? Just hook into `Magento\Customer\Model\EmailNotification` with a plugin or something, and modify the part where the correct e-mail template is selected. Right? public function newAccount(
CustomerInterface $customer,
$type = self::NEW_ACCOUNT_EMAIL_REGISTERED,
$backUrl = '',
$storeId = 0,
$sendemailStoreId = null
) {
$types = $this->getTemplateTypes();
if (!isset($types[$type])) {
throw new LocalizedException(__('Please correct the transactional account email type.'));
}
if (!$storeId) {
$storeId = $this->getWebsiteStoreId($customer, $sendemailStoreId);
}
$store = $this->storeManager->getStore($customer->getStoreId());
$customerEmailData = $this->getFullCustomerObject($customer);
$this->sendEmailTemplate(
$customer,
$types[$type],
self::XML_PATH_REGISTER_EMAIL_IDENTITY,
['customer' => $customerEmailData, 'back_url' => $backUrl, 'store' => $store],
$storeId
);
} Right... the e-mail template is sent in this method using sendEmailTemplate(). So we can't use a interceptor for this... Well let's just look at the sendEmailTemplate()-method then: private function sendEmailTemplate(
$customer,
$template,
$sender,
$templateParams = [],
$storeId = null,
$email = null
) {
$templateId = $this->scopeConfig->getValue($template, 'store', $storeId);
if ($email === null) {
$email = $customer->getEmail();
}
$transport = $this->transportBuilder->setTemplateIdentifier($templateId)
->setTemplateOptions(['area' => 'frontend', 'store' => $storeId])
->setTemplateVars($templateParams)
->setFrom($this->scopeConfig->getValue($sender, 'store', $storeId))
->addTo($email, $this->customerViewHelper->getCustomerName($customer))
->getTransport();
$transport->sendMessage();
} Darn! The method is private! So an interceptor will definitely not work here. And we also cannot use a rewrite, since private methods are not inherited. The only way to manipulate our desired functionality is by rewriting the EmailNotification and copy/paste everything that is private from this class. Which are a lot of methods and properties. --- I would suggest that the EmailNotification-class gets some refactoring so it makes it's easier for 3rd party modules to extend it's functionality. Or am I missing something here?
... View more
See more ideas labeled with:
-
developer
-
other