i want to open popup when customer click on a top link
I am adding top link like this
default.xml
<referenceBlock name="top.links">
<block class="Company\Module\Block\Top\Link" name="blog-link" >
</referenceBlock>
Link.php
public function getHref(){
if($this->customerSession->isLoggedIn()) {
$page_url = '#';
return $this->getUrl($page_url);
}
}
public function getLabel(){
if($this->customerSession->isLoggedIn()) {
return "Classes";
}
}
How to open popup click on top link?
Best Answer
Try this it works,
In
default.xml
,In
custom_link.phtml,