Magento - countrycode friendly URL's - .htaccess

I'm trying to change magento url's for the store switcher. Currently in Magento when you have multi store views for a different country code it shows like: myurl.com/?_store=french&_from_store=default
Does anyone know if it's possible to change it so that it shows myurl.com/fr. This would need doing for all different language types using the country code.
Thanks for any help you can offer.
M

here you can find your solution to manage like as above you want
http://magento-rohan.blogspot.in/2012/10/magento-managing-multiple-website-stores.html
you will do this easily using above link also for video
www.magentocommerce.com/magento-on-the-fly/multiple-sites/
hope this will sure help you.

You're one configuration setting away. Just go into System > Configuration > Web > URL Options and set 'Add Store Code to URLs' to 'Yes'.

Related

Grav - Parse URL

I want to define a new template called "product".
This template calls an external service and retrieves the information about that specific product. That is easily done with a custom plugin that access the product information. Information on how to do that has been found here.
However, I would like that the URL of the page would be something like:
/product/<id>/<seo-friendly-description>
So I can retrieve in the Twig template both <id> and <seo-friendly-description> which will be used later to retrieve the specific product information.
I have tried to find something that could help in the documentation, without success. Could someone either point me to the right doc section or highlight the basic steps that shall be achieved so I can start solving this issue?
Just in case it helps, I am trying to find something similar to how bottle or other web frameworks work:
#route('/hello/<name>')
def greet(name):
return 'Hello ' + name
I've been building a family recipebook into my own website and I've been working through a similar problem. I haven't quite worked out all the kinks, but my solution is mostly working if you want to checkout my github repo.
In short, you need the plugin to watch what the active route is. If the route matches, you then create the page and populate it using your plugin data.
I haven't quite figured out how to get the active page to highlight in the navigation menu for generated pages, but you might still find this solution helpful.

How to create multilanguage MODx website with unique articles in each language?

I need ti develop multilanguage webiste with (russian, english and kyrgyz languages), each article has version only in one language.
Can you please help me with questions:
1. how to create context for kyrgyz language? is it just put culturekey=kg?
2. how to translate oarts of chunks, i.e "comments" or buttons? do I need to create different chunks for new contexts? Or I simply save translation somewhere?
3. how to control which resources will be shown through pdoresources (getresources)? do I need to put id from all contexts?
4. for context web — pages has alias mywebsite.ru/category/article, but for "en" context — mywebsite.ru/en/INDEX/category/article. how to remove index? when i try to use link like mywebsite.ru/en/ — it shows 503 error. what can be the problem?
Thanks!
Create new context
Use lexicon entry. If you don't want to create a new namespace, just use core.
If you read the documentation, you can see the available parameters to define the parent, resources, or excluded resources to show.
You need to check your .htaccess and all friendly URL settings. 503 itself means unavailable site. Check your system settings, and search for site_status key. It should be "yes" for a running website.

Magento URL Rewrite Issue

thanks in advance for looking at my post.
I am getting quite confused about my Magento URLS
At present my URL appears like: http://exache.com/varifocal-vandal-proof-1080p-dome-camera
However I want it to appear like http://exache.com/cameras/dome-cameras/varifocal-vandal-proof-1080p-dome-camera
So instead of domain/product I would like it to appear domain/parent-category/sub-category/proudct..
Can anyone help?
Okay, Try following:
Login to Magento Admin
Go to Catalog Configuraiton. (System -> Configuraiton -> Catalog)
There, you'll see Search Engine Optimizations section (on right column)
Expand that and Select Yes to "Use Categories Path for Product URLs"
Save config
Refresh cache and try browsing front-end.

Joomla VirtueMart creating wholesale items

I have a shop setup, but want my wholesales to be able to use the shop as well. Is there a way to create items that only the wholesalers can see?
I know you can change the pricing based on the group, but I want wholesalers to see a different set of item.
Can this be done?
Thanks in advance.
a) Could you not place them into different categories for different users
b) use the Special login level to require higher access for these categories?
Or do you want to automate what is visible to whom? In this case a query rewriter based on a system plugin may work. Look at how Joomfish does this.

develope a website using visulaforce

I'm trying to develop a website using Visualforce with Apex.
But I'm unable.
Please me with the documents and websites regarding them, I'm unable to find docs regarded Visualforce.
The best thing you can do to get started is checkout:
An Introduction to Force.com Sites
Visualforce documentation: http://www.salesforce.com/us/developer/docs/pages/index.htm
Based on the comment to the question (doesn't really answer the original question):
Let's say your salesforce environment is on https://na5.salesforce.com, your visualforce page is called "myPage", and you want to display on it data from "myCustomObject__c". Let's also say that there exists at least 1 record in the table of myCustomObjects and it's ID is "0067000000AH3ME" (you can see the ID of the object in the URL when you view it like https://na5.salesforce.com/0067000000AH3ME).
If your visualforce page looks similar to this:
<apex:page standardController="myCustomObject__c">
<apex:pageBlock title="Hi Javatechi">
<p>You're viewing the {!myCustomObject__c.Name} record.</p>
</apex:pageBlock>
<apex:detail relatedList="false" />
</apex:page>
Then this page should display something meaningful when you visit it via this url:
https://na5.salesforce.com/apex/myPage/?id=0067000000AH3ME
If you'll be able to make this example work for you, all the rest like <apex:inputField> and <apex:commandButton> should start to work too.
Run screaming from salesforce now, before it is too late. It only gets worse.

Resources