Magento 2 modal: Content is showing on page load

I’m not sure what I’m doing wrong because I’m just using the official code from https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_modal.html

The problem is, that content of the modal is shown for a few milliseconds on every page load / page change and then gets hidden. Modal itself works, though.

This can’t be the expected behavior, so I’m wondering what I’m doing wrong. Is there any CSS I have to use to prevent modal content to be shown on page load?

Thanks

submitted by /u/zlep
[link] [comments]

same order multiple aggregated shipping fees

I’m facing a complicated issue with shipping and I’m not aware of something on the market that covers the solution.

basically my store ships 3 category of product:

  • room temperature

  • 4°c

    • -18°c

now, the courriers separate the 3 items when shipped and ask 3 separate shipping fees. so if a customers orders 1 4c product and 1 -18c products, he has to pay 2 shipping fees at checkout. it gets even more complicated if you consider every shipping temperature has its own threshold for free shipping, so we could have one order which reached free shipping on 1 temperature but still has to pay for shipping on the other temp product.

how would you approach such case?

submitted by /u/RealSeaMan
[link] [comments]

Clients Magento/Adobe Account sent to collections – What to do?

I was referred a client and their account with Magento/Adobe is in collections as they fell behind in payment during Covid. They were legitimately severely impacted by the shutdown. Given the layoffs and closing of facilities they were not able to make the software payments per the agreement. They offered a smaller good faith payment at the time but it was not accepted.

Anyone have any idea how Adobe will respond? Or how aggressively?

We are exploring moving them to Open Source but we would need time to scope then downgrade or migrate. In the past this has taken a year+ . I suggested buying a new license but the CEO is pretty steamed as they have been with Magento since the inception and took this one personally.

I assume they will send a cease/desist with the traditional legal maneuverings. Its been years since I have dealt with this issue and back then it was with Magento. At the time I reached out to people I knew and we were able to resolve this amicably. This time its a different crew. Suggestions are appreciated.

submitted by /u/StuckInPennsylvania
[link] [comments]

Mega Menu extension recommendations?

Hi, I’m looking for a paid Mega Menu extension. I already bought Amasty Mega Menu but with their newest update, they completely messed it up. They now use KnockoutJS to pop the menu in after the page was loaded, which in my opinion is an awful user experience.

Anyway, do you guys have any recommendation? I’m especially interested in your recommendations for reliable developers (long term support) and good coding standard.

I heard good things about swissuplabs and WeltPixel

But since navigation is an important part, I’m looking for some recommendations.

I was also looking into developing my own mega menu but as far as I can see, even showing the first 3 navigation levels in own dropdown (like most of the extensions do it), takes a lot of work, doesn’t it?

Thank you in advance

submitted by /u/dapfr01
[link] [comments]

Shipping module and approach.

Hello all,

This might or not be a magento related question but the my setup is using magento 2.4. Feel free to chip in any ideas or solutions to this intriguing scenario. Or even contacts to look into.

How will you consolidate shipping in a marketplace of you are the owner. I am looking at table rate shipping or going for multicarriers like shipstation, easypost of shipphq.

Also with the possible of setting shipping discount, live shipping rates and delivery times etc.

I am looking for advice on what is the best approach to use or setup.

Cheers.

submitted by /u/figonju
[link] [comments]

Luma theme has high CLS. Any suggestions to fix it?

So, trying to find ways to lower my CLS I figured to run a demo Luma site to determine a baseline.

Well, that is one bad baseline with a CLS of 0.2 or 0.4, depending how pagespeed interprets the website. Its about the product pages in particular. It seems the product images are loaded after the title (which is below the image) thus pushing the title down creating a CLS.

You can check it out here: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fmagento2demo.firemultimedia.nl%2Fbreathe-easy-tank.html

Anyway, does anybody has a solution and/or opinion of the severity of such an issue?

I cant find anything on google about this, and I cant find any modules or fixes for this. Did anybody encountered the same issue?

Cheers,

submitted by /u/FTHFs
[link] [comments]

Is save() method deprecated and what would I use instead?

Hi /r/magento

In my Observer I’m getting customer like

$customer = $observer->getEvent()->getCustomer(); 

from event

<event name="customer_save_after"> 

Anyway, later on, I’m using it to save a custom customer attribute like

$customerData = $customer->getDataModel(); $customerData->setCustomAttribute('customer_number', $customerNumber); $customer->updateData($customerData); $customer->save(); 

This works fine but I read that save() method is deprecated.

Is that correct and if so, what method would I use instead?

Thank you

submitted by /u/zlep
[link] [comments]

PWA Studio vs Vue Storefront vs Theme for Magento 2

I’m building an eCommerce website soon and I’ve chosen to use Magento despite the bad reps online as it suits my use case and I couldn’t find any other open source solutions out there that do what Magento does.

However, I’m currently stuck on choosing the frontend framework to use with Magento 2. Especially with PWA, things are so new that I couldn’t find much resource and comparisons out there.

After days and days of reading, I’ve narrowed it down to PWA Studio, VSF 2, and old school theme development.

My first choice would be VSF 2 since I have quite a bit of experience in developing in Vue, but I’m sceptical on whether the integration will be seamless especially since we have an official solution from the Magento team (PWA Studio). I do have some experience in React but definitely not as much as Vue.

My last choice would be developing a theme like how it was done in the old times, but I would like to stay away from it if possible. The first thing is PWA being the hype now, I’d prefer not to build a theme and then switch to PWA a few months later. There’s also the limited experience I have in frontend development with PHP.

What are your thoughts?

submitted by /u/TheOriSudden
[link] [comments]

Looking for Pricing Advice for Magento Commerce License

For starters, I made a new account to begin interacting more with the ecommerce community separate from my personal account I have had for years; incase anyone wonders about my account tenure on the forum.

As stated in the title I am looking for pricing advice on Magento Commerce. I am in a current negotiation to move to the platform for a few reasons. I have been operating the current business for a little over 7 years at this point, in that time I have made the jump from M1 open source to M2 open source. My company had a falling out with the previous company that did our management over those moves forcing our hand to move to a new site management team as our site at the time was not functioning nearly close to the capacity that it should. In that move and minor rebuild I wanted to move from Apache to NGINX and I made a few minor tweaks but overall was not looking to completely rebuild at the time.

The time has come to integrate a new inventory and ERP system (most likely NetSuite) and while we do this I also want to make the move to Commerce from open source M2. I am looking to do this because right now we do not have a full time programmer in house and not looking to get one for a few years, we are putting capital to other aspects of the business to grow there and then will look into that. What I need to the ability for my sales people to be able to make adjustments and try things on the fly and just work, I am tired of the small bugs here and there that can be worked out by a programmer but we lose time and there is an aspect of frustration. The drag and drop functions that Commerce offers are very enticing to me, I know that seems simple but running a leaner business for now it really helps to have WYSIWYG built in for simple changes to try.

Of course additionally the speed, extension integration, direct working APIs, ect are a big plus. Two of the drop ship distributors we use for a lot of volume have Commerce plug ins, this alone helps a ton.

So there is a little background for the business and where we are, I am not looking to build from the ground up but in a few years I do believe a headless approach will be my focus. For now I am looking to get the site where I want it for my employees to operate and experiment while I work on overall product data structure and automating and programming the business to work to the mostly headless solution.

We do about 3.5 to 4M/yearly in revenue on the site itself, that does not include the custom large ticket items ($70K+ each customer) we advertise and create for people who want a full turn key solution; we sell parts and vehicles and are in that industry.

My question is, what seems a fair price for a 3 year contract or what are you paying if you do not mind me asking and are in a similar revenue stream. Even if higher, I would like to know so I can gauge it with my current quote – 23K/yr for a 3 year. I will be doing on-prem and not using their cloud as I have no interest in that.

Some advice on if this is a good contract deal or not is what I am looking for and if I am leaving anything on the table; any opinions are appreciated.

submitted by /u/bullgatesIII
[link] [comments]

Cannot add product to basket when assigned a category

We have recently upgraded to Magento 2.4.2-p1 however the products would not add to cart.

I realised that removing the product from any assigned categories it worked.

So I recreated all categories and reassigned products to the new (same) categories and all was well.

Have come back on this morning and again all products won’t add to cart, but removing products from all the categories it will then add to cart.

I’m confused as to what the issue is. Elastic search?

Any help appreciated.

submitted by /u/jameswhufc
[link] [comments]

Label extension recommendations

We show a green dot with the words In Stock on all items with a quantity 1 or over. We use the Amasty label extension to do this. The problem is it kills site speed. Attached is what it does to page speed- https://imgur.com/a/DXMU5DT it increases load time by about 50%. I have reached out to them but they will not help. Does anyone have another extension they can recommend? Or a simple way to build this?

submitted by /u/tylerr82
[link] [comments]

Wishlist .counter.qty loads before page is fully loaded (frontend development help)

Hi, I’m trying to make the wishlist the same as the minicart with an icon and the counter qty. Therefore I override Magento_Wishlist/templates/link.phtml like so:

<div class="mywishlist-wrapper link wishlist" data-bind="scope: 'wishlist'"> <a <?= /* @noEscape */ $block->getLinkAttributes() ?> class="mywishlist"> <!-- ko if: wishlist().counter --> <span data-bind="text: wishlist().items.length" class="counter qty"></span> <!-- /ko --> </a> 

</div>

.mywishlist has an iconfont and everything is looking good. The only problem is, the css for the .counter.qty loads together with page load, so I have a orange circle and only after a few milliseconds the actual number of items loads.

I’m looking for the same behavior as in the minicart .counter.qty where the complete css and the number loads together after the page is fully loaded.

Any way to achieve this for the wishlist? I guess it has to di with knockout js which I’m awful in. Thanks

submitted by /u/hardy123480
[link] [comments]