#StackBounty: #magento2 #menu Custom drop down menu in responsive navigation

Bounty: 50

We utilized a XML snippet in order to load a specific block into the Topnavi.

Now, when in responsive mode we are having all topmenu items as a normal list in the menu.

Normal:
Normal view
Responsive view:
Responsive view

I do want to have “Sales Partners”, “Electronic Components”, … in a specific Submenu, like I have it for the Menu items:

enter image description here

How can I do this? In my default.xml I have something like this:

<referenceContainer name="header.panel">
      <block class="MagentoCmsBlockBlock" name="top-navigation">
                <arguments>
                    <argument name="block_id" xsi:type="string">top-navigation</argument>
                    <argument name="css_class" xsi:type="string">header links</argument>
                </arguments>
            </block>
        </referenceContainer>

This loads the desired block which is a block due to the translation problems we have for multilingual pages.


Get this bounty!!!

#StackBounty: #magento2 #magento-2.1 Change the checkout form field classes and names

Bounty: 50

I am trying to figure out how to customize the checkout form by changing classes because I want to stylize it with bootstrap instead of the default Magento styles. I don’t see them defined anywhere and with my reading and looking at the Magento developer documentation it looks like they are dynamically generated http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_new_field.html But in that documentation it doesn’t look like there is any way of adding custom classes to the wrapper elements or anything.

This is the default output for the First Name:

</div>

I would prefer to have an output similar to this:

</div>

Notice how there is now a form-group and form-control class added. How does one accomplish this if everything is dynamically generated?


Get this bounty!!!

#StackBounty: #magento2 #store-view #language collect phrases and lang pack command line different from official doc – Magento 2.0.1

Bounty: 50

I use magento version 2.0.1, I am trying to add new language package, I have followed the instruction from official doc, that commands are not working

command syntax mentioned in official doc

magento i18n:collect-phrases -o "/var/www/html/magento2/xx_YY.csv" -m

magento i18n:pack [-m|--mode={merge|replace}] [-d|--allow-duplicates] <source> <locale>

example mentioned in official doc

magento i18n:collect-phrases -o "/var/www/html/magento2/xx_YY.csv" -m

magento i18n:pack /var/www/html/magento2/xx_YY.csv -d xx_YY

when I run this command I got error Not enough arguments. and give suggestion like

i18n:collect-phrases [-o|--output="..."] [-m|--magento] directory


i18n:pack [-m|--mode="..."] [-d|--allow-duplicates] source pack locale

I have tried this

Collect Phrases

bin/magento i18n:collect-phrases -o "/var/www/html/magento2/app/i18n/test/te_te/te_TE.csv" -m "/var/www/html/magento2/"

I got success message like this

Dictionary successfully processed.

Language Pack

bin/magento i18n:pack -d app/i18n/test/te_te/te_TE.csv te_te te_TE

I got success message like this

Successfully saved te_TE language package.

but my new language not listed in new store view in admin so I am get confused whether the command is correct or not.

pub/static/* folder contains only en_US

Thanks.


Get this bounty!!!

#StackBounty: #magento2 #error #500 Magento 2 Product Page HTTP 500 Error

Bounty: 50

First time posting here for Magento2, so if this is not correct method or place, please let me know how to rectify. Using version 2.1.0 currently.

Hitting http 500 error on product page URL in browser. All other pages of the Magento 2 install are loading fine and as they should. Developer mode turned back on and errors showing in browser as below:

2 exception(s):
Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid block type: MagentoCatalogBlockProductProductListItemContainer
Exception #1 (ReflectionException): Class MagentoCatalogBlockProductProductListItemContainer does not exist

Have tried the solutions that suggest it’s a cache issue. We have cleared the var/generation folder. Not a permissions issue, as all other pages loading fine and have set permissions to be as they need to be following those relevant guides.

Potential for one of the catalog database tables to be corrupt? Missing files?


Get this bounty!!!

#StackBounty: #magento2 #payment-methods #paypal #paypal-express #magento-2.1.4 Magento 2: Paypal Payment Authorize Now and Capture later

Bounty: 50

I have requirement that need to “Authorize” Paypal payment for now.

Capture/Process after X days.

On Magento side it’s storing info info

sales_order_payment
sales_payment_transaction

I think need to use API, may be one of the Method

https://github.com/paypal/PayPal-PHP-SDK/tree/master/sample/payments

Can anybody have any idea how to achieve this?


Get this bounty!!!

#StackBounty: #magento2 #magento-2.1 #api #best-practice Magento 2 as a headless solution

Bounty: 50

I want to know if there are some best practices to use Magento 2 as a headless E-commerce solution.

A typical E-commerce in 2017 is to have an omni-channel solution which includes

  • E-commerce
  • CMS
  • Multiplatform
  • Tier system integration (ERP, …)

I want to know how involve Magento 2 API with this kind of solution.


My approach:

  • Use a different frontend framework (such as angular) for
    desktop/mobile webapp and mobile app

  • Only use Magento 2 API in order to retrieve or interact with
    E-commerce data/action

  • Only use CMS API in order to retrieve CMS data.

Pro: Only API’s, omnichannel

Cons: Limitation for performance/features/formatting


Some questions for this approach :

  • Who is responsible for formatting data, for example prices. Magento API
    and frontend framework?
  • Who is responsible for resizing product images and cache them? Because in the native Magento 2 API there is no resize or cache system.
  • Do I need to create new custom isolated API or extend native for
    future upgrade purpose?
  • Do you recommend to use an extra layer in order to combine CMS and
    Magento API?

I appreciate you to share your return in experience.

Moreover, I found this approach: http://fbrnc.net/blog/2015/10/super-scaling-magento


Get this bounty!!!

#StackBounty: #magento2 #configurable-product #image magento 2 configurable product image does not update completely

Bounty: 50

I have a configurable product (sub-product A,B and C) with each assigned with different color image gallery.

I expected the image gallery will auto switch according to which color is selected in frontend. But to find that only the first image in a color specified gallery can display.

The rest in the each gallery are ignored. I want to display all images specified for child when they are selected in store front

Does anyone notice about this issue or have any work around for it? thanks.


Get this bounty!!!

#StackBounty: #magento2 #forms #adminform #uicomponent #dynamic-rows Magento 2 – insertListing ui component

Bounty: 100

I’m trying to create very simple form(just one text input) and add a fieldset with insertListing component(Magento_Ui/view/base/web/js/form/components/insert-listing.js). Component that is responsible for adding related/upsell and crossell products in product form.

For simplicity i copied the form modifier from catalog MagentoCatalogUiDataProviderProductFormModifierRelated to my form (with minor tweaks like form name change to make it work)

This all works well. I see the fieldset, I can open the insertListing, select products, reopen the listing (and I see previously selected product). However the dynamic-rows-grid component that should display the selected products is empty, it never gets populated from the listing.

dynamic rows empty

When I inspect the data source for the form I see that insertListing creates data in different part of the source than the dynamic rows reads from. It creates data within the type_form.type_form_data_source.data instead of type_form.type_form_data_source.

form data source

I’m however not sure how to fix this. The code looks the same as product form, looking into the generated json for the form it also looks the same. Please see the generated json:

pastebin link

Can anybody with more experience with ui components spot my mistake or point me into right direction?

Thank you


Get this bounty!!!

#StackBounty: Magento 2 – insertListing ui component

Bounty: 100

I’m trying to create very simple form(just one text input) and add a fieldset with insertListing component(Magento_Ui/view/base/web/js/form/components/insert-listing.js). Component that is responsible for adding related/upsell and crossell products in product form.

For simplicity i copied the form modifier from catalog MagentoCatalogUiDataProviderProductFormModifierRelated to my form (with minor tweaks like form name change to make it work)

This all works well. I see the fieldset, I can open the insertListing, select products, reopen the listing (and I see previously selected product). However the dynamic-rows-grid component that should display the selected products is empty, it never gets populated from the listing.

dynamic rows empty

When I inspect the data source for the form I see that insertListing creates data in different part of the source than the dynamic rows reads from. It creates data within the type_form.type_form_data_source.data instead of type_form.type_form_data_source.

form data source

I’m however not sure how to fix this. The code looks the same as product form, looking into the generated json for the form it also looks the same. Please see the generated json:

pastebin link

Can anybody with more experience with ui components spot my mistake or point me into right direction?

Thank you


Get this bounty!!!

#StackBounty: magento 2 configurable product image does not update completely

Bounty: 50

I have a configurable product (sub-product A,B and C) with each assigned with different color image gallery. I expected the image gallery will auto switch according to which color is selected in frontend. But to find that only the first image in a color specified gallery can display. The rest in the each gallery are ignored.

Does anyone notice about this issue or have any work around for it? thanks.


Get this bounty!!!