Jonathan Ribas
  • Member for 4 years, 10 months
  • Last seen this week
2 answers
2 votes
7k views
Magento 2: get shipment collection by order
7 votes

You can get shipment collection from order object like this : $order->getShipmentsCollection();

View answer
1 answers
2 votes
3k views
Magento 2: How to get product custom attribute in product grid
6 votes

1/ Magento Admin > Stores > Attributes / Product > Click on your custom attribute > Advanced Attribute Properties > Set "Add to Column Options" to "Yes" and click on "Save attribute" button 2/ ...

View answer
1 answers
8 votes
809 views
What are the static tests checking?
Accepted answer
6 votes

bin/magento dev:tests:run static will run: Less Static Code Analysis: Generic.Files.EndFileNewline, Generic.Files.LineEndings, Generic.WhiteSpace.DisallowTabIndent, Squiz.CSS.NamedColours Javascript ...

View answer
1 answers
1 votes
5k views
How to enable cookies in Magento 2.x
Accepted answer
5 votes

Magento Admin > Stores > Settings / Configuration > General / Web > Default Cookie Settings

View answer
1 answers
0 votes
431 views
How to upgrade Magento 2.1.2 to 2.1.4 in Local Machine & Server side?
Accepted answer
3 votes

Log in to your Magento server as, or switch to, the Magento file system owner. Change to the directory in which you installed the Magento software. Enter the following commands in the order shown: ...

View answer
2 answers
1 votes
1k views
What is actually Magento CE 1.9.3.2?
3 votes

Magento CE 1.9.3.2 Release Notes Removal of vulnerability with the Zend framework Zend_Mail library. For more information, see Magento Security Center. Updated the copyright year to 2017. Source: ...

View answer
1 answers
1 votes
942 views
Whats the best way to get Cart ID from Mageno2 Checkout
Accepted answer
2 votes

The cart_id you are talking about corresponds to the masked quote id. In order to get the original quote id from masked quote id you can inject the Magento\Quote\Model\QuoteIdMaskFactory in your ...

View answer
1 answers
0 votes
118 views
Backlash in email, still Magento validate-email don't respond
Accepted answer
2 votes

Create a new javascript file and place it in /js folder. For example : js/validation-override.js Validation.add("validate-email","Please enter a valid email address. For example john_smith@domain....

View answer
2 answers
0 votes
1k views
Magento: curl_setopt_array() error
Accepted answer
2 votes

CURL is not installed on your server, check your phpinfo() for CURL. If not present, you or your provider can enable it in the PHP config.

View answer
3 answers
0 votes
3k views
Mage_Ajaxsddto_Helper_Data' not found in app\Mage.php on line 547
2 votes

1/ Search recursively for the word Ajaxsddto inside folders app/code/community/ and app/code/local/ 2/ When you find the module, open his config.xml inside app/code/{community/local}/{Vendor}/...

View answer
2 answers
1 votes
1k views
Check if customer is logged in (problems with cache)
Accepted answer
2 votes

You need to set cache lifetime to 0 for your custom block in your layout xml. Inside your theme, in local.xml file, inside node add the code above: <block type="core/template" name="...

View answer
1 answers
2 votes
808 views
how to create install data file in magento 2?
Accepted answer
2 votes

In your module folder, create a Setup folder and InstallData.php file <?php namespace Vendor\Module\Setup; use Magento\Framework\App\State; use Magento\Framework\Setup\InstallDataInterface; use ...

View answer
1 answers
0 votes
2k views
How to correctly setup robots.txt to block out bad bots but allow Google, Yahoo, Bing and other good bots to access and index the site?
2 votes

You should try something like this because what you did is too restrictive. User-agent: Yandex Disallow: / User-agent: baiduspider Disallow: / User-agent: AhrefsBot Disallow: / User-agent: BLEXBot ...

View answer
2 answers
4 votes
2k views
Shipping charge not transferring to PayPal Express from Shopping cart - magento 2
2 votes

In your admin panel, go to: Stores > Configuration > Sales > Payment Methods > Paypal Express Checkout > Configure > Advanced Settings > Transfer Shipping Options > Set this options to Yes

View answer
1 answers
1 votes
784 views
Magento2 API call returns 404 when Entity Not Found but 200 if is found. Why?
Accepted answer
2 votes

It seems Magento team decided to use 404 erro code for not found entities. You can find code here: vendor/magento/framework/Exception/NoSuchEntityException.php:45

View answer
3 answers
2 votes
591 views
Magento 2.3.5 - Large table scconnector_google_feed_cl
1 votes

Changelog tables are created by several modules on Magento 2: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/indexing.html#m2devgde-mview Using SHOW TRIGGERS; you can see all of them. If ...

View answer
2 answers
6 votes
3k views
Slow transaction on /customer/section/load Magento v2.2.5 CE
1 votes

It seems it's a M2.1.x / M2.2.x core issue that keeps clearing the intercepted cache following compilation. This bug will be fixed on M2.3.1. Source: https://github.com/magento/magento2/pull/18648

View answer
1 answers
0 votes
405 views
Magento 2 - Cant update categories programmatically Flat::validate()
Accepted answer
1 votes

1/ You must change the scope inside your custom module routes.xml <?xml version="1.0" encoding="utf-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...

View answer
1 answers
0 votes
73 views
Inheritance from 3rd party template
Accepted answer
1 votes

Do this to avoid JS error for empty results: <script type="text/javascript"> var ThemeOptions = { box_wide: '<?php echo $_themeHelper->getConfig('general_section/layout/box_wide') ?&...

View answer
1 answers
2 votes
314 views
Magento 1.8 after migrate live server to locahost admin URL not working
Accepted answer
1 votes

1/ You forgot the trailing slash on the above URLs in your core_config_datatable: web/unsecure/base_url web/unsecure/base_link_url web/secure/base_url web/secure/base_link_url 2/ If you are using ...

View answer
1 answers
0 votes
1k views
Fatal error: Maximum function nesting level of '1000' reached, aborting!
Accepted answer
1 votes

1/ Run a phpinfo.php <?php phpinfo() ?> from your browser. 2/ Search for the word xdebug, if you find it, it means xdebug is installed correctly on your PHP version. 3/ Search for xdebug.ini ...

View answer
3 answers
0 votes
2k views
Magento 2 Custom module admin controller error
Accepted answer
1 votes

I suppose that you already have your module Tutorial_SimpleNews created and enabled in your store. I've run this code on M2.1.3. 1/ In app/code/Tutorial/SimpleNews/etc/adminhtml/ folder create an ...

View answer
2 answers
0 votes
2k views
Translate checkout strings
1 votes

In order to override JS validation class you need to create a new module app/code/local/Vendor/OverrideCore/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...

View answer
1 answers
0 votes
133 views
Rewrite module not working
Accepted answer
1 votes

Your model was wrong, use the whole class name. app/code/local/Mynamespace/CheckoutOverrides/etc/config.xml <?xml version="1.0"?> <config> <modules> <...

View answer
1 answers
2 votes
7k views
Magento 2 headers already sent error in my controller
Accepted answer
1 votes

Remove the return inside your constructor, just call the parent and instead using var_dump prefer to use Magento 2 log system magento.stackexchange.com/questions/92434/ You get headers already sent ...

View answer
3 answers
3 votes
7k views
How cron job works in magento 2
1 votes

To create a cron job for the Magento file system owner, enter the following command as a user with root privileges: crontab -u <Magento file system owner user name> -e For example, crontab -u ...

View answer
4 answers
3 votes
1k views
Magento Security Patch 9652 not detect
1 votes

Magereport keeps saying the security patch isn’t installed We found out that there are several reasons why patches can come out as uninstalled on Magereport.com, so we recommend you to check the ...

View answer
1 answers
0 votes
214 views
MAGENTO PRODUCT CRON ERROR
Accepted answer
1 votes

1/ In Magento 1.9.3.1 your Mage_Catalog module version should be 1.6.0.0.19.1.5 One of your updaters didn't run well when you updated Magento CE to 1.9.3.1 that's why you don't have is_percent field ...

View answer
2 answers
0 votes
2k views
Magento 2 can't find css and js files
Accepted answer
1 votes

Inside your Magento project folder run magento deploy:mode:set production It will create a new folder version inside pub/static/ and should work. As you are working localhost you can enable ...

View answer
1 answers
0 votes
1k views
cron_schedule table is not getting populate magento2
1 votes

You need to setup crontab on your server crontab -u magento_user -e Insert * * * * * <path to php binary> <magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >...

View answer