Change Magento CMS Home page - magento

I am using this groupon clone from contus
I am try to change the cms home page .Which as what i have observed can be found in
System > Configuration > Web > Default Pages
I tried changing the CMS Home Page .i chose the template that i made in
CMS > Pages
I am expecting the template to be loaded .and ugh after several tries, clearing the cache and even changing the Default Web URL into the templates URL Key .it didn't work
any suggestions?
Here's a screenshot of the default cms_home_page
I tried editing the config.xml in the
app\code\core\Mage\Cms\etc
I changed the default > web > default > cms_home_page node into the coming-soon URL key .Still didn't work
I can access the http://127.0.0.1/mg/coming-soon/ page and the http://127.0.0.1/mg/home/ page as well .I just wonder, why the settings i applied in the admin (and can also be seen in the db) doesn't work.

you can simply go to system >> configuration >> and click on the web which is left in your window under general.
than click on Default Pages and set CMS Home Page
Second thing, You have to do "enable" this page and you can do it from
cms >> pages and click on the page which you have selected, than set status >> enable

The unique identifier in the CMS > Manage Content section just needs to be a unique string in the context of a store view. You should NOT use the frontname of a core module there (e.g. "cms"). Change your url key to something unique, and head to System > Configuration. Select Web. As long as the Default Web URL is set to cms, cms/index, or cms/index/index you should be able to simply choose the desired CMS page from the Default Web URL dropdown. Make sure you check other configuration scope settings (dropdown at top left) in case there is a rude setting set at a lower level.
FYI, what you "make" in the Manage Pages section are routes with content as opposed to "templates" (in Magento parlance). Templates are PHTML files under app/design.

Just to answer to those who reach this page;
If you see this behaviour you should check the store switcher in your top left. Choose your store and check the config for it.
Probably it's not using the default settings and overriding the global scope.

Related

Magento store home page missing

I am working on a magento store, i have done some change in the admin panel like scope change in store, and update some project using CSV file after that i am seeing a different as a default page on my store.
if i type domain.com/cms correct page is coming, but if i type domain.com page is not correct and it is also without js and css, and not able to if the page in the cms/pages,
also tried system> configuration> design and web chages, but it vain, also tried categories > url rewtire but no luck.
can anybody help me on this.

Url Rewrite of a CMS page in Magento

As a new magento developer I'm using a theme to develop my store. I want to change the URL key of CMS page about. I followed the steps written here but I can't find my layout file for about page on the theme directory or base directory for change XML URL tag.
How can I edit the layout file? Can anyone help me?
Actually that tutorial is a little confusing because there, they are showing an example of changing a URL for two different type of pages (CMS and system).
For changing the URL of a CMS page, like about in your case, it's enough that you proceed until point 12. In short:
First. you change the URL from: (main menu) CMS/Pages/Your_Page -> Url Key: newURL
Then, find the blocks that it is used (e.g footer) and change the URL accordingly.
Plus, in general working in Magento after changing things like page URLs you need to do a reindex and in case of using cache you have to refresh/remove your cached data. Both could be found under System tab (Cache Management & Index Management).

Magento home page

I am working with a Magento install that I did not set up and am pretty green when it comes to its operation... There is a default page serving as the "home page" when there is already a page defined in the back-end as the "home page". The path in the URL reads as: DOMAIN/index.php but when I try to find said index file using google developer mode, I can find no such file that would generate the layout. I suppose I just don't have enough overall knowledge to figure out what is at work here. Can someone help me figure out why it's using the default home page instead of mine?
On most webshops I've worked on the CMS home page wasn't really used. Instead of the CMS home it can be easier to use a custom template to setup the homepage with static blocks and what not.
If this is also the case for you, there might be two places you can find this custom template:
In the layout xml files, search forcms_index_index?
In backend, navigate to the CMS home page and go to the Design tab
About the index.php part: this is because you probably because you haven't enabled mod_rewrite in your server configuration

Magento: Change default language

I've searched for this for hours again, so here I am!
How do you change the default (English) language to any other language in Magento? Basically, I want all my customer from store B to arrive at the French version of the site first by default, not the English.
Thanks a lot
In the admin menu System > Configuration, the first tab shown should be General and it includes a Locale section. That is where you set a store's language. You can choose which store it applies to with the scope selection in the top left of the page.
Set those variables in .htaccess
SetEnv MAGE_RUN_CODE "here put store_code from BO for french version"
SetEnv MAGE_RUN_TYPE "store" <- this leave as it is
Go to Magento Admin
System > Configuration
Current Configuration Section from left side bar
Go to general block and then go to Local Options and select your default language and click on save config and clear your cache from admin then got to frontend and refresh the page you will see the default language is set to your desired language.
Login to backend then go to System > Manager Stores > Click "Main Website Store" and chose default Store you need.
You can use apache mod_rewrite for this purpose, check following rule :
## Redirect according to user's language
## you can put .htaccess file
RewriteEngine on
# French Users
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteRule ^$ /fr/ [L,R=301]
# Default Page
RewriteRule ^$ /en/main-page [L,R=301]
Log into your admin System => Manage Stores => Click on the "default store view" in your case English Store (Change the sort order to (1) as this will become additional store view.)
And after click on the French store view Keep the sort order as zero (0) as this will be your default language.
Log in to magento admin => System -> Configuration. Then from the top left in "Current Configuration Scope:" select your stores and then click on Configuration of left side in GENERAL section click on General then click on "Locale Options" then select French from the dropdown in Locale section.
download language files and place them into the right folders (app > local)
Login to admin panel and go to System > Manage stores
Create a new store view
Login to admin panel and go to System > Configuration > General
and select each store view from “Current Configuration Scope” drop down menu at the upper left corner of the window.
Set the corresponding locale for each store view
Clear the cache (System – Cache Management)
In order to set the default language for magento, you must go to System > Manage Stores, click on the “Store Name” and set the default language from there
Beware of the content of your language pack. It must have been tested that it works properly.
Reference: Magento language pack installation
Tried everything that's written here except for changing .htaccess...
Nothing worked but I found another way:
System->Manage Stores
click on Main Website Store
change Default Store View to French
refresh the cache if it's not disabled yet
May be it's version dependent - mine is 1.7.0.2
I am not sure about his code but you could give a try for below code:
Add a language pack In Magento store view:
Creating a store view for a language is not too hard in magento follow the steps given below and you are done with it.
Step 1: Download the language pack you need and then unpack it to your Magento install folder.
It copies two folders: one goes to app\design\frontend\default\default\locale
and the other one to app\locale.
Step 2: Go to System > Configuration in your admin. On the left top corner in Current Configuration Scope dropdown box, you can see Default Config, and Main Store in English store view.
Step 3: Now let’s go and add the French store view. Under the dropdown box, there’s Manage Stores link or you can directly go to System > Manage Stores. Click the Create Store View link on top right, and type these in store view information form:
Store: Main Store
Name: French
Code: french
Status: Enabled
Sort order: 0
Step 4: Save, go back to System > Configuration. In Current Configuration Scope dropdown box, you now see there’s French store view. Click that link.
On Locale options tab on the left, uncheck the ‘use website’ checkbox then change the locale to French (France). Save.
Now you can have your website in French.
If no store is specifically set in MAGE_RUN_CODE, Magento displays the store with the lowest sort_order. Log in to your Magento Admin and go to System -> Manage Stores. Here, select each store and change the Sort Order field until the store you want to use as your default has the lowest sort order
System -> Configuration
1) if you have multiple store then:
Left upper corner (below menu-links) you will see "Current Configuration Scope:" select store from there.
after that continue to step 2
2) if single store then:
left side "General" -> "Default Country"
if "Default Country" not selectable then please uncheck "Use Website" right site to country box
Thanks,
Chirag Nandaniya
Please use this link and installed this extension in your magento store http://www.magentocommerce.com/magento-connect/magento-community-modules-french-france-language-pack.html
and setup/create store view for french
Go to admin->system->configuration and do following steps
and from admin side just setup Country option to France by clicking on General Tab located in left side and also set default Currency by clicking on Currency Setup located in left side
but be careful to select Store view from first before applied above things from Current Configuration Scope: located on left side panel.
let me know if you have still facing any problem :)
The correct method is:
Go to System > Manage Stores. Click your main store name (for example Main Website Store) and in Default Store View field select French (I guess you have already created French as a Store View Name).

Can't change header logo in Magento?

I have created my own theme for magento, and I am trying to edit the logo and am having difficulty.
I have created my own local/Mage/Page/etc/config.xml file, and specified within the config the following:
<logo_src>images/Race-Ramps-logo-streaked-gradient.gif</logo_src>
I created a custom layout in the file as well. I can see the custom layout file in the CMS, but my changes to the logo do absolutely nothing. I have even tried changing the original core config.xml, it still stays the same.
On multiple websites, I have been told to go to System > Configuration > Design > Header, but I do not have the header option?
Help please!
The value you're changing (mostly likely, hard to tell without more context) in the configuration file is the default value for a the logo_src System Config variable. This is not want you want to do.
The people who've told to change the value in System -> Configuration -> Design -> Header are correct. If you don't have a header options there it's eitehr because
The person who setup your admin account didn't give you access (ask them)
You have the wrong configuration scope set (look in the upper left hand corner for the scope selector)
Someone tried to customize your Magento store and accidentally killed the header configuration
If you're desperate you could always search through your codebase for calls to getLogoSrc
base/default/template/page/html/header.phtml
default/iphone/template/page/html/header.phtml
default/modern/template/page/html/header.phtml
and replace them with a hard coded image.
Save image at the below location
/magento/skin/frontend/default/default/images/your_image_name.png
Login to the admin section
System > Configuration > General > Design > Header > Logo Image Src
-- Replace the images/logo.gif to images/your_image_name.png
Your default magneto front-end header logo will be changed to your custom logo.
I was only able to make my logo show (in Magento Community 1.9) after I placed the file in this directory: /skin/frontend/base/default/images/logo_YCZ.jpg

Resources