Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

getProductUrl() for multiple stores
 
Ed P
Member
 
Total Posts:  36
Joined:  2010-03-31
 

i’ve created a froogle datafeed which creates product attributes dynamically.

however, there are multiple language versions of the store and i need the datafeed to contain not the default values but the values for one of the specific stores.

how, for example can i generate the product url for store_id 3?

i’m assuming it’s by using getProductUrl() somehow but i cannot find any information online.

any help would be much appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
djsumdog
Jr. Member
 
Total Posts:  2
Joined:  2010-09-13
 

Hey there. I had the exact same question! I need to get the product URL for my default store when I’m in a secondary store. Has anyone found a solution to this yet?

 
Magento Community Magento Community
Magento Community
Magento Community
 
djsumdog
Jr. Member
 
Total Posts:  2
Joined:  2010-09-13
 

Found the solution. Do a $product->setStoreId() first to the store you want before getting the URL.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top