Satis Private Repo Limit Version of Extension By Customer

Hi,
Does anyone have any code they can share or method for how you limit customers to a certain version of an extension? The idea is after their updates subscription runs out, it automatically stops giving them access to the latest version.

Right now I’m just using a static https://github.com/composer/satis satis repo that gets updated from github, and the location of the repo is protected with HTTP Basic Authentication (htaccess), but I have no way of excluding versions by customer.

I am aware there is this https://packagist.com/docs/setup-vendor but it gets pricey very fast.

Just to be clear the use case is like Customer A has access up to version 1.1.0, Customer B access up to version 1.2.0 and I want to avoid creating a separate repo for each customer.

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

Certification still useful?

I’ve been studying for the Commerce Master certification off and on for two years but never had the time to take the actual test. In my current job, I work on an Magento project hosted on Adobe Cloud, however, everytime I get into a meeting with Adobe reps, they avoid the subject of Magento all together and try to sell their new platforms Experience Cloud and App Builder. Is Magento certification even necessarily anymore?

submitted by /u/dave-tay
[link] [comments]

Can’t compile Magento site after migration to production

I’m in the process of migrating a Magento 2 install to AWS, and have been running into an issue when running the command:

php bin/magento setup:di:compile

When running the command, the compiling process stops at 44% and outputs the following errors:

In Generator.php line 140:

Class PelagoEmogrifier does not exist

Class BssHtmlSiteMapModelFilterInterceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-

only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not g

enerate properly, then you must add the generated class object to the signature of the related construct method, only.

Things I’ve tried:

  • Ran the command as both root and site user
  • Changed the permissions for /generated/* and var/* to 777 (as a test)
  • Chown /generated/* and var/* to site user
  • Ran composer update
  • Cleared/flushed Magento cache

And none of the above has worked. Any ideas would be greatly appreciated!

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

Tired of running bin/magento setup:upgrade everytime you write a new data patch?

Tired of running bin/magento setup:upgrade everytime you write a new data patch?
Even more tired of forgetting to add that one condition to your data patch and now you need to re-run the patch again so you’ll need to delete the patch from the patch_list table and run setup upgrade again?! In dev server, staging, AND pre-production?!!? (Don’t look at me like that….We all did it at least once πŸ˜‰)
I know I am. Hence I made this nifty little module to manage your patches
This magento extension provides a set of bin/magento CLI commands to maintain data patches
1. bin/magento j:patch:apply – Apply patches by module name(s) or class name(s)
2. bin/magento j:patch:delete – Delete patches by its class name(s)
It is available over composer as well so feel free to install it and let me know if it helps πŸ™‚

​

https://github.com/jayankaghosh/patch-manager

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

What is best practice for handling lost shipments and keeping track of the data.

Using:
Magento 2.4.6Hyva magento2 default theme: 1.2.3

Subject:
What is a good way to handle lost packages during shipping?

Situation is as follows:

  • Product gets paid.
  • Product is shipped to customer via mailbox mail.
  • There is no track and trace.
  • Customer sends a message that he/she didn’t receive the product.

Conclusion: product is lost during shipment and customer needs a new shipment to replace the lost product.

Issue: Now the shop owner needs to,

  • keep track of the customers who didn’t receive their order and who need a new shipment,
  • resend the same product for the already paid order,update the stock status while having multi source inventories,
  • be able to get data for getting insight in how many times this happens,
  • what the total costs are for shipping costs, not only for this product but for all products that are lost during shipment.

Requirements would be:

  • To be able to keep track of incoming customer requests for new shipments.
  • Get insight in costs and frequency during a time period, of lost packages.
  • Correctly update stock status for multiply inventories.

Questions:

  • What would be a good way to approach this issue, particularly in regards to keeping track of and getting insight in the data how many times this happens during a time period.
  • Are there any extensions that can give insight in this data and be able to handle the request or what would be best practice, to approach this situation?

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

How to set language for sales items in order conf mail?

So {{layout handle=”sales_email_order_items” order_id=$order_id area=”frontend”}} renders a table with all ordered products by the customer in the Order confirmaiton E-mail. This table is always in English. How do I change the table headers like “Items”, “Qty” and “Price” to another language? Do I need to declare the language somewhere? Thx in advance

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

Integration of Zoho Email Marketing with Magento 2. Please Help !

I work as an SEO Specialist and recently got a new eCommerce project on Magento 2. I’m interested in implementing and running Zoho email marketing campaigns for this project. I would greatly appreciate any assistance or recommendations for a good tutorial that can guide me through the process of connecting Zoho with Magento 2, setting up email campaigns, and obtaining analytics reports to track the performance.

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

Merging Magento installs to storefronts

We currently have 3 separate Magento 2 installs, (1+1+2) 4 storefronts. I have a crazy notion of merging them all into a single install so we can reduce duplication of work, upgrades but is this more trouble than its worth?

I can see migration of data becoming complex (different product ids, customer ids, order ids) and I can see the increase in complexity (code, managing the store, testing changes) as potentially wiping out any benefits. Have any of you attempted something like this?

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

Magento Graphql returns empty product items for no reason

Hello I am working on a headless project using magento 2 and I made a custom graphql query that has a product query inside of it. When i put aggregations as a paramameter my query returns an empty array of products. What must i do.

{
promotion(promoType:"bravo_bonus"){

products(
pageSize:20,
currentPage:1,
filter:{
glxStoreExclude:{in:["0","2"]}

})

{
items{

sku
name
catalog_rules
isGoldPrice
glxStoreExclude
no1
isTVSponsored
image{
url
}
small_image{
url
}
thumbnail{
url
}
price_range{
maximum_price{
final_price{
value
}
regular_price{
value
}
discount{
amount_off
percent_off
}
}
minimum_price{
final_price{
value
}
regular_price{
value
}
discount{
amount_off
percent_off
}
}
}

}
total_count
page_info{
page_size,
total_pages,
current_page
}
aggregations(filter:{category:{includeDirectChildrenOnly:true}}){
attribute_code,
count,
label,
options{
label,
value,
count
}
}
}
}
}

​

The response is

{
"data": {
"promotion": {
"products": {
"items": [],
"total_count": 0,
"page_info": {
"page_size": 20,
"total_pages": 0,
"current_page": 1
},
"aggregations": []
}
}
}
}

when i remove aggregations everything work smoothly

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

Recommended server config for Varnish & Redis?

I am working on a Magento 2 site and need to implement Varnish and Redis to increase the site speed. We’re getting on average 500-750 visitors a day which may assist with the below recommendations.
The stack we’re running is: AWS EC2 running nginx, AWS RDS, AWS CloudFront
To implement Varnish and Redis, what would the best practice be out of the following:

  • Install both on the same EC2 running nginx, and bump up EC2 resources as required, or
  • Setup a new EC2 to run both Varnish and Redis, or
  • Setup two new EC2’s and run Varnish and Redis on their own instance

Or, something else altogether?
Thanks!

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