Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Point Sub Category Link To A Product Filter Search Rate Topic   - - - - -

 
  • fleaffair
  • Senior Member
  • Members
  • Join Date: 11-Jun 14
  • 530 posts

Posted 20 November 2017 - 08:57 AM #21

We did the blow change in fn_get_Categories function

    if (!empty($params['get_frontend_urls'])) {
        foreach ($categories_list as &$category) {
        	//$category['url'] = fn_url('categories.view?category_id=' . $category['category_id'], 'C');
        	// Custom change - To create a mapping of category to the URL created in the Category page (mapping for search resutls)
	    	$url = db_get_field('SELECT url FROM ?:categories WHERE category_id = ?i', $category['category_id']);
	    	if ($url == ''){
	        	$result = fn_url('categories.view?category_id=' . $category['category_id'],'C');
	        }
	        else
	        {
	        	$result = fn_url($url);
	        }
            	
           }
    }

Warm Regards,
Admin | MVE: 4.2.4

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 15,479 posts

Posted 20 November 2017 - 01:11 PM #22

Thank you for keeping us updated


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • fleaffair
  • Senior Member
  • Members
  • Join Date: 11-Jun 14
  • 530 posts

Posted 20 November 2017 - 02:45 PM #23

Thank you for keeping us updated

These changes reflect only in the menu link and not in the category traversed as mentioned in post earlier causing the issue.


Warm Regards,
Admin | MVE: 4.2.4