New answers tagged

0

I finally found the appropriate db tables. If you have a case where you need to cancel a coupon - you have to use the following database tables: salesrule salesrule_coupon salesrule_coupon_usage salesrule_customer and their field times_used, just decrease the number of used and try to apply coupon again. Voila!


0

Disable Async Grid Indexing As mentioned in the other answer, you can disable it by going to Store > Configuration > Advance > Developer > Grid Settings > Asynchronous indexing You can do the same from the command line: View the settings value: bin/magento config:show dev/grid/async_indexing Enable: bin/magento config:set dev/grid/...


0

Here is the code, for reference here, before return of collection we have just added complete category collection through Category Factory. namespace Vendor\ModuleName\Block\Rewrite\Product; use Magento\Catalog\Model\Product; class ListProduct extends \Magento\Catalog\Block\Product\ListProduct { protected $_customerSession; protected $...


0

You can use GINBOX's Magento plugin for free. https://marketplace.magento.com/ginbox-smartaddress.html GINBOX robust plugin offers seamless checkout experience to online users, which allows your user to autofill shipping address fields in the checkout page by using his/her GINBOX number.


0

You could copy this file vendor/magento/module-ui/view/frontend/web/templates/form/element/input.html:7 to your app/design/ folder and add tabindex to the attr like this <input class="input-text" type="text" data-bind=" value: value, valueUpdate: 'keyup', hasFocus: focused, attr: { name: inputName, ...


0

The best way to illustrate this is by examining what Magento does in its core code. We can use downloadable products for this example. In Stores > Settings > Configuration > Catalog > Catalog, you can set Default Link Title: This is Magento's default value to display a title for the downloadable links section. The question is how we can get this ...


0

I need to do the same, but the code here is apparently not complete :(


1

Have you added the domain you are using to the recaptcha account setup on Google? See the example below where I've added example.com


0

copy product images from one product to other public function copyProductImages($productSrc,$productDest) { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $fileSystem = $objectManager->create('\Magento\Framework\Filesystem'); $baseDir = $fileSystem->getDirectoryRead(\Magento\Framework\App\Filesystem\...


Top 50 recent answers are included