Alex
  • Member for 9 years
  • Last seen this week
What are the Magento2 code formating settings for PHPStorm?
1 votes

Basically it seems to be ident = 4 spaces. But they sometimes align the equals signs: <?php $_option = $block->getOption(); ?> <?php $_selections = $_option->getSelections(); ?> &...

View answer
Magento 2 grunt exec does not actually create symlinks
1 votes

It looks like this is a known bug: https://github.com/magento/magento2/issues/1619 The is a patch at https://gist.githubusercontent.com/godban/8cb178f9a84ed85f1eac/raw/...

View answer
Porto blog generates sql error, any ideas?
1 votes

Try asking the extension vendor. Maybe your extension was not installed properly. Please clear the caches and open the website again. You can check whether update scripts with n98-magerun.phar sys:...

View answer
Check whether a skin file actually exists
Accepted answer
1 votes

This seems to work /** * Get skin URL of image in language specific version - fall back to English (en) * @param $ressource string - %s for language */ public function getSkinUrlFallback($resource)...

View answer
User Roles to Upload Products
1 votes

Go to "System -> Permissions -> Roles" Click "Add New Role" Give it a name Under "Role Resources" chose "Custom" and check "Catalog". You might want to remove sub-acls Under "System -> Permissions -> ...

View answer
How can shipping cost in checkout cart?
Accepted answer
1 votes

There is a box in the shopping cart where you can enter your ZIP code and country to estimate shipping costs. If you use this, the shipping cost (and tax) is included in the cart.

View answer
Show message if package weight exceeds a given value
1 votes

Create a block which displays the message after evaluating the cart/quote object. You can obtain the current cart using Mage::getModel('checkout/cart')->getQuote() In a function ...

View answer
Orders import export
1 votes

There is no standard way to export or import orders, anyways there is a SOAP and a REST API which you can access.

View answer
Simple way for a store view distribution page
Accepted answer
1 votes

That is my final solution based on the community answers: Create global_website and store code: global Create CMS page home in Global Website Change MAGE_RUN_CODE env variable in vhost or .htaccess. ...

View answer
How to Bypass Admin Area Authentication for Testing
1 votes

I assume you are doing the tests via a browser-frontend? (Selenium or similar)? Some thoughts: Avoid real passwords in the test scripts Just create a user "tester" pw: "tester123" or similar before ...

View answer
Render bundle product options in block
1 votes

Some "Help to help yourself:" Do you have to possibility to debug this in Xdebug? Then you should set a breakpoint around your line $blockOptionsHtml .= $blockViewType->toHtml(); Actually - as ...

View answer
Are Brim & MGT Cache Extensions the Same?
Accepted answer
1 votes

The are just both Full Page Cache extensions, similar to what is shipped with Magento Enterprise. They solve the same or at least similar problem to speed up pages with basically caching the full ...

View answer
Import csv without column names
Accepted answer
1 votes

Have a look at AvS_FastSimpleImport. It is a thin layer on top of the standard import function and reads the data from arrays you have to provide. Converting the CSV you have to the pre-defined array ...

View answer
Buy a single product from bundle product
1 votes

You can set the simple product's visibility to "Catalog, Search" if it is currently "Do not show individually". Then they would show up in the catalog and can be purchased separately.

View answer
CMS Image preview not working an internal demo site
Accepted answer
1 votes

Magento makes HTTP access to fetch the included images from the webserver - even if it might be the same server. The solution is to allow the local host to access itself without password. In Apache ...

View answer
"You'll receive payment instructions via E-mail” payment method
1 votes

As Marius sayed, it the check payment is a very simple, almost empty one. If check payment might still needed in additional as another payment method in the future, it is quite easy to create an own ...

View answer
Customer Session is Empty In Custom Module
1 votes

What is the point of the second parameter in Mage::getSingleton()? This info would be passed to the constructor of the Mage_Customer_Model_Session class, but this constructor does not take arguments: ...

View answer
Different Footer per Page
1 votes

You can add / removed the concerning block per page in your layout XML files just like any other block. There are handles for the different page types, for different categories, for different ...

View answer
Where in the code is recently viewed products added to the database table?
1 votes

You assume that someone had stripped out the code which calling this. This might be a modification in the core (app/code/core) - so I suggest to diff your code against the original Magento code Also ...

View answer
Mixed shipping tax
Accepted answer
1 votes

There is a issue open on the FireGento_GermanSetup module (German) https://github.com/firegento/firegento-germansetup/issues/13 edit: Draft implementation (self-link): https://github.com/amenk/...

View answer
Custom shipping calculation returns wrong price only while editing order in backend
1 votes

I guess there might be some necessary information missing when placing a new order in the backend (because editing an existing order means canceling the old one and creating a copy). Have a look on ...

View answer
Unique constraint violation found when editing category Name / URL key in 2.4.3 / having url_path
Accepted answer
0 votes

This query helped here, after the upgrade: https://github.com/magento/magento2/issues/33770#issuecomment-991065898 START TRANSACTION; CREATE TABLE catalog_url_rewrite_product_category_temp SELECT ...

View answer
Duplicate entry in DB after upgrading to 2.4.3
0 votes

It's a bug in Magento 2.4.3 upgrade procedure, see GitHub for details: https://github.com/magento/magento2/issues/33770 You can apply on of the workaround posted here.

View answer
Avoid getting old data from customerRegistry in queue runner
0 votes

Calling remove on the registry seems to work, but I am wondering if there is a nicer solution, because eventually any nested addresses might still be cached. /** @var \Magento\Customer\Model\...

View answer
How to fix "ThreeDomainSecure is not a function" during PayPal Credit Card Payment?
0 votes

PayPal changed something, not it works - seems like a problem on their side.

View answer
how to debug large object in Magento 2 without var_dump?
0 votes

Most objects have a ->debug() method, which displays less data than ->getData() This comes in quite handy, when working with n98-magerun2 dev:console $cm = $di->get(Magento\Customer\Model\...

View answer
Cart rule free shipping on subtotal after discount magento 2
0 votes

Actually the option Subtotal (excl. Tax) seems to be with discount, when having a look at the dropdown I see this: <option value="Magento\SalesRule\Model\Rule\Condition\Address|...

View answer
How to display Sale label on configurable product
0 votes

Our solution for a customer was, to create a new attribute is_on_sale which is updated each time a configurable or it's simples are changed. Then we simply use that attribute to display a sale label ...

View answer
Deactivate a list of SKUs for a two specific websites?
0 votes

I came up with this # find out the store Ids for example with n98-magerun2 sys:store:list, in my case 9 + 10 select attribute_id from eav_attribute where attribute_code like "status" and ...

View answer
What is the difference between getStoredData and getData?
0 votes

The difference between getData and getStoredData is at least, that getData gives you the current version of the model, and getStored is supposed to give the version which is currently in the database. ...

View answer
1
3 4
5
6 7