Morgan Tartreau
  • Member for 3 years, 8 months
  • Last seen this week
Problem with link in responsive menu (go to undefinied url)
3 votes

If anyone has this issue, my problem was that I have a custom menu and the file menu.js of magento looks for .ui-menu-item class (so basicaly I've added this class to my menu items)

View answer
Load css on condition
Accepted answer
2 votes

Solution : If it helps, i've added a event in my event.xml <event name="controller_action_predispatch"> <observer name="addCSS" instance="Vendore\Module\Observer\AddCSS" shared="false" /&...

View answer
Can't add a product to cart
1 votes

My fault. I've created a product and then added it to my cart. Then, I've added configuration to this product. And it's not possible to have the old simple product in the cart. As magento call ...

View answer
Extends Dashboard customer for telephone number
1 votes

Solution : backslash and ran setup:upgrade change from class Info extends Magento\Customer\Block\Account\Dashboard\Info to class Info extends \Magento\Customer\Block\Account\Dashboard\Info

View answer
2.2.4 cloned, search not working
0 votes

Found the solution ! I had to overwrite the initial controller that does the search. Indeed, after cloning my projet, some of the initial code from the controller made only white page. I never thought ...

View answer
Add JS on condition
0 votes

I've ended up by adding this into my layout xml (which is kind of a mix of suggested answer) <referenceBlock name="head.additional"> <block class="Vendor\Module\Block\...

View answer
Show both delivery and shipping address on registration
Accepted answer
0 votes

I've ended up by adding manually the fields for a second address and the I've override the class /vendor/magento/module-customer/Controller/Account/CreatePost.php I'm creating a new address and then ...

View answer
Override comment history order in backend
0 votes

Solved : Instead of override sales_order_addcomment.xml, I've override sales_order_view.xml and change to this : <block class="Magento\Sales\Block\Adminhtml\Order\View\History" name="...

View answer
SetBillingAdress not working (prog) on quote
0 votes

I've solved my problem by adding missing fields in my array : $shippingAdress = array( "customer_address_id" => "", "prefix" => "", 'firstname' => $prenom, "middlename" =...

View answer
Adding option to a product create error
Accepted answer
0 votes

Go it : also need to change this in catalog_product_view.xml: <block class="Vendor\Module\Block\AddToCart" name="product.info.addtocart.additional" as="product.info.addtocart" template="...

View answer
Sort order by category id (or custom order)
Accepted answer
0 votes

For those of you who wants to know, this is what I ended up with : Create a custom attribute for each products (the products with the value 0 will be displayed first, the value 10 will be displayed ...

View answer
Create attribute for several product
Accepted answer
0 votes

found answer directly in back-office Go to Catalog -> Products Select your products In " Action " select "update attributes" And that's it, you have the list of your attributes directly. You can ...

View answer
Wrong number of result in toolbar after overriding ListProduct
Accepted answer
0 votes

Found the answser : Best solution seems to be to override IndexBuilder Plugin\CatalogSearch\Model\Search see : How to update category page with custom filters, and also layered navigation, ...

View answer
Show product catalog based on Customer
Accepted answer
0 votes

If it helps : $this->_productCollection->addAttributeToSelect("field")->addAttributeToFilter("field", array('like' => "%".$field."%"));

View answer
Sales order history : remove tab
Accepted answer
0 votes

Got it. Just add this in sales_order_history.xml <referenceBlock name="sales.order.history" remove="true" />

View answer
Get param : Controller of custom product interface
Accepted answer
0 votes

I've added this line into my file : <script type="text/x-magento-init"> { "[data-role=tocart-form]": { "catalogAddToCart": { "bindSubmit"...

View answer
Change checkout redirection to custom page (2.2.4)
Accepted answer
0 votes

ANSWER : change in proceed-to-checkout.js : location.href = config.checkoutUrl; to location.href = '/your/custom/url'; And don't forget to clear your cache (I haven't done it the first time....

View answer
Magento 2 - Filter on category
0 votes

Solution : don't forget to add attributs to products, otherwise the filter layer won't showing

View answer
Category ID not matching with current category
Accepted answer
0 votes

I've changed : $categoryId = substr($child->getId(),-1); // Get CATEGORY ID $category = $categoryFactory->create()->load($categoryId); To $categoryIdentifiant = explode('-', ...

View answer