Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Custom URL not working
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Custom URL not working

Custom URL not working 12 years, 1 month ago #4994

The custom URL isn't working in the category showcase, it is still drawing the link from the item in K2 and the custom URL isn't overriding the link.

Can you fix this please?

Re: Custom URL not working 12 years, 1 month ago #5030

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Hi Martyn Batten,

Please go to "your_site/modules/mod_sj_k2_category_showcase/core/categoryshowcasereader.php", finding the code lines:

$item->link = (JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->catid.':'.urlencode($item->alias))));


change to

if(array_key_exists($item->id,$arrcustom_url)){
	$item->link = $arrcustom_url[$item->id];
}else{
	$item->link = JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->catid.':'.urlencode($item->alias)));
}


-----------

if(array_key_exists($category->id,$arrcustom_url)){
	$category->category_link = $arrcustom_url[$category->id];
}else{
	$category->category_link = JRoute::_(K2HelperRoute::getCategoryRoute($category->id));
}


change to

$category->category_link = JRoute::_(K2HelperRoute::getCategoryRoute($category->id));                      


Thanks
Ticket System | Join our Clubs to download our extensions and templates
  • Page:
  • 1
Time to create page: 0.24 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes