Categories
CMS Mastering Development Wordpress

WooCommerce with ACF: custom fields per product variation

I’m a little stuck here. So I have variable products and I need to show the output of a custom field in a custom tab. So I created a new field in ACF, called ‘test’. I’ve got this to work for the product itself, but the content does not change when I select another variable. […]

Categories
Mastering Development

AssertionError ‘import’ is reserved when writing tests for custom eslint rule

The custom eslint rule runs ok in our project, but I cannot figure out how to run tests for it. My guess is that I am running wrong version of ecmascript and I need to use babel or adjust something in eslintrc.json to make this work with the mocha scripts. Getting error message: AssertionError [ERR_ASSERTION]: […]

Categories
CMS Magento Mastering Development

After upgrade from 2.3.4 to 2.3.5 got compilation error with module

I am trying couple of hours to figure out what is wrong with this constructor and have no idea namespace Aitoc\ProductFileAttachments\Block\Product; use Aitoc\ProductFileAttachments\Model\ResourceModel\Attachments\CollectionFactory as AttachmentsCollectionFactory; use Aitoc\ProductFileAttachments\Helper\Data; use Aitoc\ProductFileAttachments\Model\ResourceModel\Icons\CollectionFactory as IconsCollectionFactory; use Aitoc\ProductFileAttachments\Model\ResourceModel\Order\CollectionFactory as OrderCollectionFactory; use Magento\CatalogWidget\Block\Product\ProductsList; use Magento\Catalog\Block\Product\Context; use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; use Magento\Catalog\Model\Product\Visibility; use Magento\Framework\App\Http\Context as ContextHttp; use Magento\Rule\Model\Condition\Sql\Builder; use Magento\CatalogWidget\Model\Rule; use Magento\Widget\Helper\Conditions; use Magento\Customer\Model\SessionFactory; […]

Categories
Mastering Development

Python tk. Setting widget focus when using tab key

I have a GUI with a column of buttons on the left side, text entry box on the right and a footer with some generic GUI buttons (new/delete/save/exit). The buttons on the left side each feed a set of words to the text entry widget on the right. I’d like to be able to use […]

Categories
CMS Magento Mastering Development

Magento 2.3.5 Incompatible argument type errors during compilation

I’m trying to compile after upgrade to magento 2.3.5-p1 and I get this error: public_html$ php bin/magento setup:di:compile The directory “/public_html/generated/code/Magento” cannot be deleted Warning!rmdir(/public_html/generated/code/Magento): Directory not empty public_html$ php bin/magento setup:di:compile Compilation was started. Interception cache generation… 6/8 [=========>—] 75% 1 min 399.0 MiBErrors during compilation: Plumrocket\Amp\Block\Catalog\Product\Widget\Category Incompatible argument type: Required type: \Magento\Catalog\Api\CategoryRepositoryInterface. Actual […]

Categories
Mastering Development

How to get antd protable working with umi connect?

Starting from a new antd pro project, I have attempted to get the protable example working with umi connect, but get the following errors: Uncaught TypeError: rawData.some is not a function Warning: [app.unmodel] subscription should return unlistener function, check these subscriptions setup in Anonymous Unexpected key “listAndbasicList” found in previous state received by the reducer. […]

Categories
Ask English Speaking

Hispanicisms in English

I recently found out that “mustang” is a hispanicism: it is adapted from “mostrengo” or “mestreño”, which roughly mean “without rooting”; Merriam-Webster compiles “mesteño” (where ‘ñ’ sounds as the ‘gn’ in ‘lasagna’) as “runaway cattle”. Since large portions of the southern USA used to be first under Spanish, then under Mexican, rule, I wonder if […]

Categories
Development

@Transactional method insert value on exception and multithread wildlfy CDI

I have a method in CDI bean wich is transactional, on error it creates an entry in database with the exception message. This method can be called by RESTendpoint and in multithread way. We have a SQL constraint to avoid duplicity in database @Transactional public RegistrationRuleStatus performCheck(RegistrationRule rule, User user) { try { //check if […]

Categories
Development

AWS-CDK & Powershell Lambda

I have a Powershell Lambda that I would like to deploy via the AWS CDK however I’m having issues getting it to run. Deploying the Powershell via a manual Publish-AWSPowerShellLambda works: Publish-AWSPowerShellLambda -ScriptPath .\PowershellLambda.ps1 -Name PowershellLambda However the same script deployed with the CDK doesnt log to CloudWatch Logs, even though it has permission: import […]