pakicle,
Magento is manged block positioning using before and after tags xml file ...
first check what is before and after tags in layout xml
name : This is the name by which other blocks can make reference to the block in which this attribute is assigned
.
before (and) after These are two ways to position a content block within a structural block. before="-" and after="-" are commands used to position the block accordingly at the very top or very bottom of a structural block.
As footer link are manged from below codes
Company:
<block type="cms/block" name="cms_footer_links" >
<action method="setBlockId"><block_id>footer_links_company</block_id></action>
</block>
Quick link:
<block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
<action method="setTitle"><title>Quick Links</title></action>
</block>
Account:
<block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
<action method="setTitle"><title>Account</title></action>
</block>
Connect with US:
<block type="cms/block" name="cms_footer_links_sm" after="footer_links2">
<action method="setBlockId"><block_id>footer_links_sm</block_id></action>
</block>
As you want footer link sort order
QuickLink>My Account>Connected with Us>Company
corresponding block id are footer_links>footer_links2>cms_footer_links_sm>cms_footer_links
Now i can ordering these link blocks using tags.
Connected with Us->cms_footer_links_sm
Company > cms_footer_links
I have add before......tags as cms_footer_links footer_links2
<block type="cms/block" name="cms_footer_links" after="footer_links2">
<action method="setBlockId"><block_id>footer_links_company</block_id></action>
</block>
know more about layout:
http://www.magentocommerce.com/design_guide/articles/intro-to-layouts
If you wanted this as a feature you can
write a module, and observe the save product event and loop through all the stores and either:
- condition based looking for "english" if they are named like that
- hardcode the id's
- provide a configuration option in the admin to select the english stores.
- add an attribute to the store object
Another way to do it as a one off:
<?php
require '../app/Mage.php';
$englishStore = 1; // English Store (the one you want to copy from)
$attribute = "short_description"; // Attribute to copy
foreach (Mage::app()->getWebsites() as $website) {
foreach ($website->getGroups() as $group) {
$stores = $group->getStores();
foreach ($stores as $store) {
//store object
//print_r($store->getData());
// if english found in name or change this so it's hardcoded store id's
if (strstr($store->getData('name'),"english")) {
$StoreToUpdateCollection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('*')
->addAttributeToFilter('store_id', $store->getData('store_id'));
foreach ($StoreToUpdateCollection as $product) {
// get the description from the base English store
$englishProduct = Mage::getModel('catalog/product')->setStoreId($englishStore)->loadByAttribute('sku', $product->getData('sku'));
$newValue = $englishProduct->getData($attribute);
// update the attributes for the current store for the product ID
Mage::getSingleton('catalog/product_action')->updateAttributes(
array($product->getData('id')),
array($attribute => $newValue),
$store->getData('store_id')
);
}
}
}
}
}
I have not tested the updating part, would suggest trying this on a dev version.
Best Answer
Run sql to update them by batch,