Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
product links on homepage go to wrong re written url (root/product) instead of (root/CAT/product)
 
waynep16
Jr. Member
 
Total Posts:  19
Joined:  2009-02-21
 

Hey,

On the homepage and in some side bars, <?php echo $_product->getProductUrl() ?> seems to make the URL only goto the procuct but without the correct path.

I have server side re writes on and its all working perfect apart from this.

in the cart on the homepage when clicking an item it will go to http:// ROOT / Product.html but it should go to http:// ROOT / CAT/ SUBCAT / prodcut.html

i do have the option to include categorie in url turned on in admin but its not working

any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale
Guru
 
Avatar
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

your homepage is a cms page with an block displaying products? In this case the products have “no category” coz it isnt displayed in a category on homepage so cat path isnt added to the product url. you can check categories of product and build you own url.

cheers

stefan

 Signature 

mzentrale | eCommerce - eBusiness
Agentur für eCommerce Beratung, Entwicklung & Marketing.
Magento™ Silver Partner
----

 
Magento Community Magento Community
Magento Community
Magento Community
 
waynep16
Jr. Member
 
Total Posts:  19
Joined:  2009-02-21
 

i understand smile but i would really like to add the category paths because this way, one product will have two urls :(

“you can check categories of product and build you own url “ - can you please explain this

or does any one else know how i can get a block on a cms page to be able to reconise the category?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mike Smullin
Jr. Member
 
Avatar
Total Posts:  23
Joined:  2008-10-25
Eagle Mountain, Utah
 

I posted a solution on another thread that can fix this for you. Check it out:
http://www.magentocommerce.com/boards/viewreply/113022/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|1587 users currently online|497332 forum posts