skip to Main Content

Page Links in Magento 2

I have created a About us page from backend and trying to link that page to the About-us at the footer. I am using: <a href="<?php echo $this->getUrl(''); ?>about-us"></a> After clicking on About Us It's working. URL: http://localhost/magento2/about-us but there…

VIEW QUESTION

Need parser in Java from XML(SOAP) to JSON – Magento

i'm looking for a parser or SOAP client in Java to convert XML(WSDL) from Magento SOAP v1 API to JSON Object. Magento SOAP v1 API returns a XML which looks like this: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">…

VIEW QUESTION

Switch store programmatically magento 2

I am trying to switch stores programmatically. I used following code to achieve it: /** * @var MagentoStoreModelStoreManagerInterface */ protected $_storeManager; public function __construct( MagentoStoreModelStoreManagerInterface $storeManager ) { $this->_storeManager = $storeManager; } and then: $this->_storeManager->setCurrentStore('YOUR_STORE_ID'); as given in https://magento.stackexchange.com/a/173763/59686 But…

VIEW QUESTION
Back To Top
Search