Skip to content

magento2.3

Auto Added by WPeMatico

How to set meta title dynamically for specific category in magento 2

I want to set meta title dynamically for specific category only and i getting meta title information based on url id(?id=1). events.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”catalog_category_load_after”> <observer instance=”StackExchangeMagentoObserverFrontendCatalogCategoryLoadAfter” name=”stackexchange_magento_observer_frontend_catalog_category_load_after” /> </event> observer public function execute( MagentoFrameworkEventObserver… Read More »How to set meta title dynamically for specific category in magento 2

Export correct URL in product feed with XSL

I try to export product URL:s for my Magento 2.3 website using this line of code in an XSL template: <xsl:element name=”link”><xsl:value-of select=”product_url“/></xsl:element> The result creates this URL in the .XML file (which doesn’t work): < link >https://www.domain.com/admin/catalog/product/view/id/2666/s/apple-ipad-2-16gb-wi-fi-vit-toppskick/key/a61acffaa09fed5b95dc91/< /link >… Read More »Export correct URL in product feed with XSL