Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
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
 
[m] zentrale
Guru
 
Avatar
Total Posts:  699
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 

Account-User: S. Bothner & A. Jaus

mzentrale | eCommerce - eBusiness
Agentur für eCommerce Beratung, Entwicklung & Marketing.
Magento™ Professionel 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 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177719 users|1134 users currently online|277216 forum posts