magento2 – Magento 2.2.6 Search only search from starting word

i am facing issue with magento 2.2.6 Search there is some products number in my website
e.g 30330, 303090, 30901, 450905 etc
when i enter 303 in my search the result show up correctly but when i enter 090 in the search bar ther result show up with this “Your search returned no results” how can i solve this issue also how can i do my search in ascoding order
thanks

magento2 – Magento 2 – All CMS pages are with content blank

In my server with: elasticsearch7, apache 2.4.29, mariaDB 10.4 and php 7.4 I imported my Magento 2.4.2 site.
Everything works correctly except for the CMS pages that have empty content and in fact the #maincontent div is empty.

I am attaching a screenshot of the problem:
enter image description here
Content is empty but without errors of php

I’ve looked at the log files but they don’t return any errors.
Why?

It’s like Magento doesn’t load the CMS page object …

magento2 – Does the magento framework support on module development?

I’m new at magento and I’m not happy with magento.
I’m not having a course yet and try to get started with magento 2.
The following text is my experience with magento and I ask my self if it was a good decision to choose magento. So I want to ask you, if you have similar experience with magento and how you solved this for you.

At the beginning I started to dive into the documentation to get started with module development.
First in my opinion the documentation is not really helping, because it is more like a reference and not a documentation how to do things.
Second if there are step by step documentation in most cases it is incomplete. Means if you follow the step by step guide completely, the outcome is something that does not work.

I started to develop an admin grid, that lists some data from the database and has the possibility to edit the data.

So creating the route, menu and acl was easy to understand, but when it comes to the listing it gets complicated with all this xml stuff, that not shows you an error if you do something wrong eg. you have a typo in a string like the datasource string.

So by investigating existing modules I got forward step by step. But this step by step not means, that you can slowly get to the expected result step by step. No you have to create a few xml files, Controllers, Actions, Model, ModelResource and so on. So you end up with many new files, before you can test your work of the last hour.

Of course in most cases something does not work, because of something in a xml file is wrong. So you see an endless spinner for example. No error, no help.

Ok, so after a lot of frustration and many “WHY” I got my listing done.
After that I started to develop the form.

First of all, why I have to do that? Why the framework is not doing that for me by default? Why I have to implement the functionality to edit an entry of a listing? I created already Model and ModelResources and so on, so there is everything that need to be known.

Then there are this buttons that you can define in the toolbar. I see in existing modules, that this Buttons are defined in own classes. This causes to have a lot of duplicate code, that is very bad.
Why not having just buttons that you can reuse, like the back button or the save button. Why I have to define them from scratch for myself? I expect from a framework, that things like this are already implemented. I would understand if you need a special behavior, that you can implement this. But there should be a default behavior.

I can point a few more examples, but this were the things that annoying me most.

I hope some of you can tell me, that I did things wrong, and that I missed some sources like Tutorials or Documentations and Reusable Code.

magento2 – Update part of existing ui component

here is the component I have and want to modify (I just need to add a simple sentence in there, nothing that “should be” too hard) :

    <field name="imageUploader_0">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="dataType" xsi:type="string">string</item>
                <item name="label" xsi:type="string" translate="true">Image 3</item>
                <item name="visible" xsi:type="boolean">true</item>
                <item name="formElement" xsi:type="string">imageUploader</item>
                <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item>
                <item name="previewTmpl" xsi:type="string">Magento_Catalog/image-preview</item>
                <item name="uploaderConfig" xsi:type="array">
                    <item name="url" xsi:type="url" path="plp/plp/imageupload"/>
                </item>
            </item>
        </argument>
    </field>

Which gives this result

image component

My goal is to add some text under Maximum file size.

I manage to found that Maximul file size was located in vendor/magento/module-ui/view/base/web/templates/form/element/uploader/image.html

But I can’t see where is the link with that html page and the template that seems to be used : vendor/magento/module-catalog/view/adminhtml/web/template/image-preview.html

Also, I don’t want to add that text each time this image-preview is called but only on that specific case…so I guess I probably have to make my own extends from the template to make it different from the catalog one…but as I don’t see the link between image-preview.html and image.html I’m kinda lost in there. I’m also really newbie with ui component.

Thanks for your assistance.

This is the image-preview.html from magento

<div class="file-uploader-summary">
    <div class="file-uploader-preview image-uploader-preview">
        <a class="image-uploader-preview-link" attr="href: $parent.getFilePreview($file)" target="_blank">
            <div class="file-uploader-spinner image-uploader-spinner" />
            <img
                class="preview-image"
                tabindex="0"
                event="load: $parent.onPreviewLoad.bind($parent)"
                attr="
                    src: $parent.getFilePreview($file),
                    alt: $file.name,
                    title: $file.name">
        </a>

        <div class="actions">
            <button
                type="button"
                class="action-remove"
                data-role="delete-button"
                attr="title: $t('Delete image')"
                disable="$parent.disabled"
                click="$parent.removeFile.bind($parent, $file)">
                <span translate="'Delete image'"/>
            </button>
        </div>
    </div>

    <div class="file-uploader-filename" text="$file.name"/>
    <div class="file-uploader-meta">
        <text args="$file.previewWidth"/>x<text args="$file.previewHeight"/>,
        <text args="$parent.formatSize($file.size)"/>
    </div>
</div>

And this this is the image.html

<div class="admin__field" visible="visible" css="$data.additionalClasses">
    <label class="admin__field-label" if="$data.label" attr="for: uid">
        <span translate="label" attr="'data-config-scope': $data.scopeLabel"/>
    </label>

    <div class="admin__field-control" css="'_with-tooltip': $data.tooltip">
        <div class="file-uploader image-uploader" data-role="drop-zone" css="_loading: isLoading">
            <div class="file-uploader-area">
                <input type="file" afterRender="onElementRender" attr="id: uid, name: inputName, multiple: isMultipleFiles" disable="disabled" />
                <label class="file-uploader-button action-default" attr="for: uid, disabled: disabled" disable="disabled" translate="'Upload'" />
                <label
                    data-bind="event: {change: addFileFromMediaGallery, click: openMediaBrowserDialog}"
                    class="file-uploader-button action-default"
                    attr="id: mediaGalleryUid, disabled: disabled"
                    data-force_static_path="1"
                    translate="'Select from Gallery'"/>
                <render args="fallbackResetTpl" if="$data.showFallbackReset && $data.isDifferedFromDefault"/>
                <p class="image-upload-requirements">
                    <span if="$data.maxFileSize">
                        <span translate="'Maximum file size'" />: <text args="formatSize($data.maxFileSize)"/>.
                    </span>
                    <span if="$data.allowedExtensions">
                        <span translate="'Allowed file types'" />: <text args="getAllowedFileExtensionsInCommaDelimitedFormat()"/>.
                    </span>
                </p>
            </div>

            <render args="tooltipTpl" if="$data.tooltip"/>

            <div class="admin__field-note" if="$data.notice" attr="id: noticeId">
                <span html="notice"/>
            </div>

            <label class="admin__field-error" if="error" attr="for: uid" text="error"/>

            <each args="data: value, as: '$file'" render="$parent.getPreviewTmpl($file)"/>

            <div if="!hasData()" class="image image-placeholder" click="triggerImageUpload">
                <div class="file-uploader-summary product-image-wrapper">
                    <div class="file-uploader-spinner image-uploader-spinner" />
                    <p class="image-placeholder-text" translate="'Browse to find or drag image here'"/>
                </div>
            </div>
        </div>
        <render args="$data.service.template" if="$data.hasService()"/>
    </div>
</div>

magento2 – Magento 2 – How to install extension from marketplace.magento.com via composer?

I bought a this extension from marketplace.magento.com. I tried to install it via composer like this:

composer require bsscommerce/customer-approval

But I get

(InvalidArgumentException) Could not find a matching version of
package bsscommerce/customer-approval. Check the package spelling,
your version constraint and that the package is available in a
stability which matches your minimum-stability (stable).

I also followed this documentation, but it does not help.

magento2 – URL rewrite having query string via htaccess in magento 2

I have current URL like this:

http://localhost/projectname/industries/index/index/industry/aircraft

(Here industries is the frontend route, index is controller and second index is action
industry is query param name, and aircraft is param value)

I want after rewrite the url will be :

http://localhost/projectname/industries/industry/aircraft

Or

http://localhost/projectname/industries/aircraft

magento2 – Magento 2 how to use many components inside a component knockout js?

I wan’t to import components and use them just like in Vue or ReactJs. Where you can

export default component

And import it by using

import Name from './path/to/component';

and finally use it

How can I do this same thing but on Magento 2? I know that on top I can use require or define, but when I import the component can’t use it’s template or functions just like in React the functional components.

For example:

define(('jquery', 'uiComponent', 'ko', 'Vendor_Module/js/component'), function ($, Component, ko, customComponent) {

  customComponent //here I expect to use it's template and also send props o get data from it
}

Greetings!

magento2 – How to call a function from a custom module magento 2

Guys I’m learning how to create modules in magento 2, and I have a doubt, how do I call a function that is in my controller in magento 2 ?. In the controller I defined a function that does one thing, but I need to call that function on the checkout page, how can I proceed?

magento2 – Change qty script

magento2 – Change qty script – Magento Stack Exchange

magento2 – Magento 2 How to Render Child blocks in controller

I want to remove the ‘Proceed to Checkout’ button when the qty reaches a specified limit. For that I add a condition check in this page

module-checkoutviewfrontendtemplatesonepagelink.phtml

On qty update I have added an ajax call to the controller and passing the layouts as the ajax response and load the section. I am following the below link

How to Render an HTML Using an Ajax Call in Magento 2 Module

In my controller I have added the below code

$block = $resultPage->getLayout()
            ->createBlock('MagentoCheckoutBlockCart')
            ->setTemplate('Magento_Checkout::cart/methods.phtml')
            ->toHtml();

The issue is that, the checkout button is not loading since it is a child of this block.

    <block class="MagentoCheckoutBlockCart" name="checkout.cart.methods.bottom" template="Magento_Checkout::cart/methods.phtml">
        <container name="checkout.cart.methods" as="methods" label="Payment Methods After Checkout Button">
            <block class="MagentoCheckoutBlockOnepageLink" name="checkout.cart.methods.onepage.bottom" template="Magento_Checkout::onepage/link.phtml" />
            <block class="MagentoCheckoutBlockQuoteShortcutButtons" name="checkout.cart.shortcut.buttons" />
        </container>
   </block>

Now, I need to render the child blocks along with this.

How can I do this?

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123