Jump to content

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

Change A Seo Function Rate Topic   - - - - -

 

Posted 16 April 2020 - 06:45 AM #1

Hi, 

 

I want to change the links from hreflang on cs cart before the display, in the SEO addon is this function:

 

fn_seo_dispatch_before_display
 
where are set the hreflangs link.
 
How can i change this function to return my links?


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20678 posts

Posted 16 April 2020 - 06:52 AM #2

Use the same hook in the My changes module to override the seo_alt_hreflangs_list array


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 16 April 2020 - 07:01 AM #3

But the function has no hooks.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20678 posts

Posted 16 April 2020 - 01:47 PM #4

But the function has no hooks.

 

This function already uses default hook called before_display


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)