VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kostianev on February 26, 2018, 00:46:54 AM

Title: Not SEF link while I am using custom php product link in button? How to fix?
Post by: kostianev on February 26, 2018, 00:46:54 AM
Dear, I made one Button which is More details about the product, which link to Product Details page from Category.
The link is working, bit in the Browser URL address bar is showing not SEF link like "category/product-details" it`s showing standart link "com_virtuemart&product..."

<?php echo $productItems->productTitle->link; ?>

I am using this command. Can someone help me to fix this issue?
Title: Re: Not SEF link while I am using custom php product link in button? How to fix?
Post by: Studio 42 on February 26, 2018, 02:39:49 AM
Try using
<?php echo jRoute::_($productItems->productTitle->link); ?>
Note that link have to be a valid relative no sef url