Jump to content

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

Mv - Include Vendor Store Page In Google Sitemap Instead Of Companies.view Page Rate Topic   - - - - -

 
  • amrn
  • Advanced Member
  • Members
  • Join Date: 22-Mar 17
  • 81 posts

Posted 09 November 2017 - 01:34 AM #1

The companies.view page is not accessible at all when vendor stores are enabled. However google sitemap plugin submits them to google instead of vendor store URLs. It shouldn't happen.



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

Posted 09 November 2017 - 07:08 AM #2

app/addons/google_sitemap/func.php

 

replace

$link = 'companies.view?company_id=' . $value;

with

$link = 'companies.products?company_id=' . $value;

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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • amrn
  • Advanced Member
  • Members
  • Join Date: 22-Mar 17
  • 81 posts

Posted 09 November 2017 - 07:27 PM #3

Splendid! 
Btw. is it possible to transform the url in the Sitemap so that already adheres to the SEO rules in the Google index, not only after the users clicks it (usually it redirects to simply:  /vendor-name location).

 

Thanks!

 

 

EDIT:
Haven't noticed that it actually transforms these urls with fn_url function, so that the ones in the sitemap end up being in /vendor-name form. Perfect, thans!



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

Posted 10 November 2017 - 07:17 AM #4

You are welcome :)


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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


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

Posted 16 February 2018 - 01:19 PM #5

I need to keep in mind this solution, thanks again eComLabs!

 

You are welcome! :)


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    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.