Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
2
votes
2answers
8k views

How to add a product to the cart using a URL or query string?

I'm using Magento Enterprise 1.13; there appears to be some documentation around for adding a product using the URL & query string but those do not appear to be working for me. For example: Add ...
5
votes
1answer
4k views

Compare link on detail page

I need to implement Compare button as a link on product detail page. What I trying to do: <span><a class="btn-compare" onclick="popWin('<?php echo $_helper->getListUrl() ?>','...
0
votes
1answer
2k views

AJAX call not updating page - Ajax pagination and layered navigation extension

I have just adopted Magento and have to say I am very impressed. However as I am a noob I am having a couple of issues, so I would appreciate some advice/help I am trying to implement a module called ...
1
vote
1answer
1k views

How to Dynamically set a CMS Block's Title?

We have a custom CMS type page that is added from the Category settings. Created at /neon-signs/custom-neon-signs.html Under that category setting, we set the URL Key and then also assign a CMS Block ...
2
votes
1answer
2k views

Get Group Product Path(URL) from Single Product ID

Given that I already have the single product id, was it possible to get it's grouped product url that has the certain single product id that I got? For example, I got a single product id of 11 ...
0
votes
1answer
211 views

Customer account section on subdomain

I have a single website, single store view Magento installation on, lets say, the domain example.com. Now I want to create a customer section "My Example.com" on my.example.com. So the whole customer ...
2
votes
2answers
7k views

Category URL Key redirect to Product Link

For example, I have this category that I want to redirect it to product page, is this possible? For example I have Kati Birch Forest product, and it's url key is kati-birch-forest Then I want this ...
2
votes
1answer
4k views

Layered Navigation - altering URLs

[No Extension pitches please (if I want to be spammed, I'll use the magento forum :D)] I can see this/similar has been asked before (and elsewhere). In most cases, I see people 'recommending' ...
2
votes
2answers
2k views

Get correct product URL from SOAP API

Using the SOAP API, how can I get URL for the product (when requesting from catalog_product.info) that will always work? Using url_key and appending ".html" is not good enough because in many stores ...
2
votes
1answer
926 views

getImage by Label not working in Bundle item

I want to get the image by its label, inside a bundle product's each options selection item. Each selection item is a simple product. echo Mage::getModel('catalog/product')->load($product_id) ...
2
votes
2answers
1k views

Redirect to homepage after submitting e-mail in Forgot password page?

When customer submit his email in Forgot Password page he is redirected to the Login or Create an Account page. How could I redirect users to the Homepage or to the Onepage Checkout page?
1
vote
1answer
437 views

SID in url shows as SID= and doesn't pass the id with FPC

I have a webstore that links to 5 other webstores and passes the sid param so that we can share cart and what not. The site and this functionality has worked fine for the last 2 years. The website is ...
0
votes
1answer
93 views

Had to restore site, when it came back it has index.php in the urls, how do I get rid of the index.php

Would like to say thank you up front for your help!!! I have magento 1.4.0.1, I AM NOT A COMPUTER GEEK by any stretch of the word. I do not have a developer so if someone can help answer this being ...
9
votes
2answers
14k views

How to redirect to previous page in admin?

In my admin controller action I want to redirect to the previous page. How can I do this?
5
votes
3answers
16k views

How to get Admin page url?

I want to get the current url of an admin panel page. I tried the folowing. $currentUrl = Mage::helper('adminhtml')->getUrl(); But it's not returning the current url.
6
votes
2answers
125 views

Keep URL's in a place

In my magento 1.8 project, I have some URL's which are calling some other sites like blogs, youtube videos etc. I want these URL's to keep in admin so that the client/store owner can change them later ...
27
votes
4answers
32k views

Efficient get product url from id

What is the most efficient way of getting a product url given just it's ID? In a few places in our code we have things such as Mage::getModel('catalog/product')->load($id)->getProductUrl() in ...
1
vote
2answers
2k views

Calling controller path /foo/bar/baz results in 404, but is found at default/index.php/foo/bar/baz

I have set up a simple custom controller based on Alan Storm's tutorial. My controller action should be available on this URL: http://magento.localhost/helloworld/index/index/ But this path gives a ...
1
vote
1answer
793 views

301 redirect some products, categories and cms pages from old domain to new domain

I have this situation: Site1.com (3 store views: en, it and de) Site2.com (1 store view) I need to redirect everything from site1.com (only en store view which is default) to site2.com. ...
3
votes
2answers
8k views

Magento install in subfolder of ServerRoot: how to use server rewrites to get rid of subfolder in all URLs

I would like to summarize: I want to know if it is possible to install Magento on Linux with the following configuration: I do not have root access and so cannot modify the DocumentRoot directive to ...
4
votes
2answers
2k views

Add to cart redirect

How can redirect to a CMS page when the "add to cart button" (on a product view page) is clicked? I have already disabled the redirect to the cart page after the "add to cart" button is clicked. Now ...
13
votes
1answer
951 views

Product URL with additional parameters (CE 1.8 & EE 1.13)

In short: Retrieving a product URL with additional params doesn't work in CE 1.8 & EE 1.13. URLs have changed with the latest version of Magento. Previously in CE 1.7 and EE 1.12 calling $this-&...
2
votes
2answers
2k views

Multistore - Prevent product from having multiple urls

I have a magento multi-store configuration. One website, with multiple stores, on different subdomains. I'm having an issue with a single product assigned to one store view having multiple urls. My ...
1
vote
1answer
402 views

When re-indexing URL rewrite cache, configurable products get a URL key that looks like a MD5 hash [closed]

I'm using Magento 1.8 alpha 1. I wrote a shell script that changes some products (and calls save() afterwards). Now, all the products that were altered have been assigned new URL keys that looks like ...
9
votes
3answers
8k views

Using Secure URLs based on context

I am familiar with using various methods to generate a secure URL based on context, ie: $this->getUrl('my-page', array('_forced_secure' => $this->getRequest()->isSecure())); This works ...
1
vote
2answers
2k views

Category url always has wrong store in path

How can i get a category url rewritten for a specific store in magento? I have 2 stores: us and uk. Store codes: en_gb and en_us. If i load a category in code $store = Mage::getModel('core/store'...
1
vote
3answers
5k views

category url rewrite doesn't work when magento running on nginx

I set up my magento store running on LEMP server. Every thing works fine except the url rewrite of category does not work. If I use the url http://mystore.com/catalog/category/view/id/3, then I can ...
2
votes
0answers
821 views

URL Redirect does not appear in catalog [closed]

i've created a url redirect for when the user types womens/clothing/activate/[ITEM] they can get catalog/product/view/id/[ITEMID]/category/[CATID] when i use my new url redirect it works fine however ...
1
vote
1answer
2k views

Magento intermittently caching incorrect base URL

Every few hours my live Magento 1.7.0.2 installation is caching the wrong link URLs for the category navigation menu. Sometimes they use the wrong form of the domain (without the www and adding an ...
0
votes
2answers
71 views

Reliable way to determine product from product url

Is there a reliable way to determine a product from a given product url? i.e. http://mysite.com/clothes/tops/the-top.html or http://mysite.com/clothes/tops/the-top.html?___store=fr or http://...
1
vote
2answers
782 views

Same url for two different categories

please refer this url http://www.utsavfashion.in/newarrivals/saree Under the NEW ARRAIVALS category i have the subcategory named as SAREE, then All new catalogs is the subcategory of SAREE. Both ...
0
votes
1answer
174 views

Is it possible to have a customised Image URL Path?

We're in the middle of looking at the benefits of using Magento rather than Actinic/Sellerdeck, but one of the main problems we cannot find a way around so far is that we would need to keep our image ...
0
votes
3answers
4k views

Mass change product URL keys to match product names

Shopkeeper created configurable products by duplicating existing products and did not change the product URLs to match the product names. The shop is also a multilingual shop and different languages ...
0
votes
1answer
376 views

The path Problem in menu product at checkout/cart page

I have created a mega menu via one module in which i am facing a weird problem of url change. When i am on the homepage, category page or on product page the menu product URLs are working fine but on ...
6
votes
2answers
12k views

Internal links to end with a trailing slash

The links in the main navigation end without a trailing slash, which do not match the canonical tags which end without. Is there an easy way to make all links throughout the site end with a trailing ...
6
votes
2answers
9k views

Redirect 'non www prefix to 'www' prefix still not working after disabling 'Auto-redirect to Base URL'

Magento install was redirecting all 'non-www' urls to the root home page. I found these questions on the same subject: Redirected to the Homepage when add www. in any URL Redirected to the Homepage ...
3
votes
1answer
2k views

Is there a way to use multiple URLs for one Magento setup?

I am planning to use Magento with multiple languages. I was thinking of doing this: English: Magento: //website/store/[...](params for Magento) French: Magento: //website/magasin/[...](params for ...
1
vote
1answer
106 views

Custom URL Per Category

I'm looking for a way to server my pages by category name. So for example I have Cellphones as the category . I then want the URL to be cellphone.mystore.com. How would I make this possible?
2
votes
1answer
5k views

Get skin resource path or url for set package and theme

I'm trying to get the header logo image and having some issues.. I keep getting the base/default package/theme instead of what is set as the package and theme for skin in the admin. Here is some code ...
1
vote
1answer
250 views

Best place to add URL Rewrite during extension install

I am working on an extension right now that needs to have a URL rewrite setup when it is installed. Is the best place to do this in a data install script? If not, where should this be done?
1
vote
2answers
563 views

Magento invalid product urls

I've been trying to get correct product urls for orders. By that I mean that when an order is created, i want to get the product url which will correspond to the store in which the order was made. At ...
1
vote
2answers
938 views

Getting Category Path in URL for EE 1.13

In Magento Enterprise Edition 1.11 we have the URLs did the following Category Lv 1 - http://me.dev.local/men-s Category Lv 2 - http://me.dev.local/men-s/clothing Category Lv 3 - http://me.dev.local/...
0
votes
1answer
236 views

URL rewriting messing with facebook likes and tweets count

I have added the Google +1, Facebook like and Twitter buttons to the products page. The problem is when 2 or more products are created with the same name, magento creates the url-key from the name ...
5
votes
2answers
13k views

How I can get secure url (https) of CMS page using url_key?

I have enable SSL and one of CMS is restricted for register users. And this page is in footer. If logged in user try to access without https it fails and redirect to my account. I want that ...
3
votes
2answers
5k views

Add Configurable Product To Cart Via Query String In 1.7

Note: This is a X-Post from StackOverflow, I put it there before remembering this subexchange existed so apologies for the double-up. My issue is surrounding the Add To Card method for configurable ...
4
votes
2answers
4k views

Indexing for large database is taking so much time

I have imported more than 1M of products for two stores. I am trying to indexing those products but it is taking long time through Admin and SSH. "Catalog URL Rewrites, Product Flat Data, Catalog ...
5
votes
2answers
8k views

Include categories in product URL

I have a product object and I need to get product URL of it that will include all its categories e.g. - http://example.com/category/subcategory/product_name I've managed to find a way that will ...
8
votes
2answers
33k views

Why do we have to use “store” for links in CMS like <a href=“{{store url='home'}}”>home</a>

To insert links in the CMS, we use this code: <a href="{{store url='home'}}">home</a> What is this "store" keyword doing and why is it called "store"? And are there any other keywords ...
16
votes
3answers
36k views

add query parameters to an existing url string

In Magento if I have a URL string, is there any built in function that I can use to add query parameters to it? In the exact case I am looking at I am generating a category URL and then I want to add ...
14
votes
2answers
23k views

Equivalent of the CMS Directive {{media url=“…”}} in Normal Block Templates

What is the equivalent of {{media url="wysiwyg/image.jpg"}} which can be used in CMS pages if we want to use this in a normal .phtml file (of the type core/template)