3 replies [Last post]
CyberRanger's picture
Offline
Bug FinderCool profile pic award.
Joined: 09/13/2007
Juice: 57
Was this information Helpful?

I've used the excellent suggestion for focusing the customer's attention on UC (http://www.ubercart.org/docs/user/326/remove_blocks_focus_customers) but I can't figure out how to do that when a specific product is listed.

By default, the products have a node/number for the url. I know that I can manually enter the url under "URL path settings" for each item. If I do that, say by using catalog/122121 where the number at the end is the SKU, that works good. The blocks I don't want are removed when viewing the product detail page.

BUT ... I have to do that manually for each product. Over time, multiple folks will be entering products, creating many chances of the manual url not being done right.

Anyway to make the "URL path setting" automatically set to catalog/#sku# for each product?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Creating friendly product url's automatically

Hmm... you know, we actually haven't integrated with Pathauto in that way yet unfortunately. There is a module called Pathauto that will automatically generate these kinds of URLs. Once they get to the new version, we'll be integrated various product variables for use in URLs. Until then, you can have it use the product title instead of node ID. It may be trivial to write a simple integration function yourself, if you've got the time. I'm sure there are docs somewhere... well, only sort of sure. Sticking out tongue

gregmac's picture
Offline
Getting busy with the Ubercode.
Joined: 09/25/2007
Juice: 87
Re: Creating friendly product url's automatically

I wanted to do this as well, there is a patch posted at: http://www.ubercart.org/issue/1451/pathauto_hook_uc_product

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Creating friendly product url's automatically

You rock. Thanks for posting this up... I'm sure it won't be a problem to put in in the morning. Smiling