now i can get the product name . But I want to get the whole product block. Like how a product in a category page or a search page, etc.
Why I do this, it is that I have 3,4 product IDs. I have to display these products in cms page. If this product is in the same category, I can do it by inserting a widget with the category ID. Bu that's not it.
So, I want to display the entire product block in the pages
In NewAction.php, I save data in two different tables. Both models have a different model for new contacts. They work well, but when editing existing data, they update the first row of the table and create a new row in the second row. here in my code "con_id" is a foreign key
class NewAction extends MagentoBackendAppAction
* Edit A Contact Page
* @return MagentoBackendModelViewResultPage|MagentoBackendModelViewResultRedirect
public function execute()
$contactDatas = $this->getRequest()->getParam('contact');
$contact = $this->_objectManager->create(Contact::class);
$id = $contact->getId();
$contactt = $this->_objectManager->create(Contactt::class);
$this->messageManager->addSuccessMessage(__('You saved the data.'));
$this->messageManager->addErrorMessage(__('Data was not saved.'));
$resultRedirect = $this->resultRedirectFactory->create();
I am new to Magento and I am trying to learn Magento.
I try to hide a payment method if the customer has more than one order of treatment. So I created a module call, KgPayMethod. In this module, I added this line to events.xml.
Is it possible to set the value of the extension attribute of a command when creating the command via the API or is there an end node? Appropriate API to update an existing order with this information?
For example to create a command that I'm calling / rest / V1 / carts / 49 / order
I can save the changed configuration settings, but nothing changes when the page is reloaded.
Example: I will change region / state. I fill "Limburg" (it is now Antwerpen). I change that. No mistake, everything is fine. But when the page is reloaded, the region / state is always "Antwerpen". In the facade is also not changed.
The Stack Exchange network includes 175 question-and-answer communities, including Stack Overflow, the largest and most reliable online community on which developers can learn, share knowledge and build their careers.
In the EU you have to go on the label if the price is incl. or excl. tax in the shop. If you run different stores in which you have both settings, this can be done with different custom translation strings that are specific to the store view.
Magento has the information, whether a price is TTC or excl, but the question is how to code it. In Magento1, I solved it with the following code, but until now, I do not know how to do it with Magento2: