New answers tagged

0

Try using <dateFormat>d/MMM/YYYY</dateFormat> instead of <dateFormat>d/MM/Y</dateFormat> for more details check date.js this file.


1

Try this payload instead: { "product":{ "sku":"test_simple_product3", "name":"Test Simple Product", "attribute_set_id":4, "price":25, "status":1, "visibility":1, "type_id":"simple", "weight"...


0

As per the documentation in Redoc https://magento.redoc.ly/2.3.6-admin/tag/products#operation/catalogProductRepositoryV1SavePost, the main key 'product' holds all the product information, including the attribute values and the options definition. Your payload should look like this { "product":{ "sku":"test_simple_product3&...


1

Try using the endpoint POST /rest/default/V1/products/attribute-sets/attributes with a payload like this: { "attributeSetId": 4, "attributeGroupId": 7, "attributeCode": "text_api_attribute", "sortOrder": 99 } Note that my attribute set ID is 4 which is the 'Default' attribute set and the attribute ...


0

I did something similar with an extension https://github.com/DominicWatts/EmailCC Email is sent as CC Hope that works for you. If not take a look at the source code and see how I did jt.


0

After transfer of data from live server to the dev server, the cookies (dev-server, pre-transfer!) were still stored in the browser. After cleaning of the cookies, everything is fine.


0

I faced same behavior recently, I removed some blocks and containers of XML layout. I was looking for get only a piece of a page without anything else (with update handle). but instead of add a new block I just: <move element="formkey" destination="myContainerOrMyBlock"/> because I was defined in theme default.xml: <...


1

I did face a similar issue with the Collections. I fixed it by changing Collection to CollectionFactory. Earlier I was using Anshu\Custom\Model\ResourceModel\CustomData\Collection in Constructor DI To fix the issue, I switched to Anshu\Custom\Model\ResourceModel\CustomData\CollectionFactory This may be because the Magento2 is loading the collection from ...


0

You can add this code to your success.phtml page to get the order total <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Model\Order')->loadByIncrementId($block->getOrderId()); $total = $order->getGrandTotal(); ?> <?php echo $total ?>


0

If anyone encounders a "stuck" indexer ( probably after a failed import or something like that ), a _cl tables crear may be wise This article explains the process by clearing the _cl tabled https://www.vannoortproductions.nl/magento-2-indexer-stuck-at-processing/ after that you may php bin/magento indexer:reset php bin/magento indexer:reindex php ...


Top 50 recent answers are included