Close

Information regarding the shop route

minespress
9 years ago
#8620 Quote
Avatar
  • 4
You guys use the UrlRecord table, I have another plugin (Solr plugin) that uses it's own routes but gives me the option to extend. I need the following information to make it happen.

Controller Name:
Action Name:
Name of EntityId Parameter for Action: is it Id, or shopId?
minespress
9 years ago
#8621 Quote
Avatar
  • 4
You guys use the UrlRecord table, I have another plugin (Solr plugin) that uses it's own routes but gives me the option to extend. I need the following information to make it happen.

Controller Name:
Action Name:
Name of EntityId Parameter for Action: is it Id, or shopId?

** I apologize the information I need is for each individual shop page.
iliyan.tanev
9 years ago
#8623 Quote
Avatar
  • Moderator
  • 347
Hi,

Action name for All Shops or for One shop ? 
Regards,
Iliyan Tanev
Nop-Templates Dev Team
minespress
9 years ago
#8631 Quote
Avatar
  • 4
iliyan.tanev wrote:
Hi,

Action name for All Shops or for One shop ? 


Hey Iliyan,

I need the information for one shop that would fill in the blanks for the code below.


case "shop":
  {
            data.Values["controller"] = "";   // need the controller name
            data.Values["action"] = "";   //need the action name
            data.Values[""] = urlRecord.EntityId;   // need the the index string, is it shopId?
            data.Values["SeName"] = urlRecord.Slug;  // this should be good as is
}
break;
iliyan.tanev
9 years ago
#8635 Quote
Avatar
  • Moderator
  • 347
Hi,

Controller - StoreLocatorController
Action - Shop
The third one you don't need in this case.

So in the end it should look like something like this.

case "shop":
  {
            data.Values["controller"] = "StoreLocatorController";   
            data.Values["action"] = "Shop";  
            data.Values["SeName"] = urlRecord.Slug;  
}
break;

Regards,
Iliyan Tanev
Nop-Templates Dev Team