English Magento Help section

hi..

i need to upgrade magento 1.4.1.1 to magento 2

i follow some instructions and I need fisrt upgrade to 1.9 but when i overwrite files with 1.9 and refresh page it doesnt happen anything

is there any command line way to upgrade?

thnx
 
Please try this attached script for clearing magento cache.

place it magento root directory.

and hit the URL Для просмотра ссылки Войди или Зарегистрируйся or cron it.

Will this flush the standard cache and standard full page cache of Magento Enterprise too?

It does clear the magento standard cache ( ./var/cache )

Just have a look the code, it's simple.

Ok Great, I asked this because enterprise version have ./var/cache AND also have ./var/full_page_cache
 
Последнее редактирование модератором:
As erahul88 said to Flush Magento cache
you need the code
Mage::app()->getCacheInstance()->flush();

if you want to flush also Amasty FPC
you need to add below code
if (Mage::helper('core')->isModuleEnabled('Amasty_Fpc')) {
Mage::getSingleton('amfpc/fpc')->flush();
}

You may refer to Amasty docs
Для просмотра ссылки Войди или Зарегистрируйся


Please try this attached script for clearing magento cache.

place it magento root directory.

and hit the URL Для просмотра ссылки Войди или Зарегистрируйся or cron it.
 
Hi
how to hide Magento Attributes with no Value

Hi
how to hide Magento Attributes with no Value
I found the answer.
This file can be found here:/app/design/frontend/default/[theme name]/template/catalog/product/view/attribute.phtml

Open the file and search for the following lines:

<?php foreach ($_additional as $_data:( ?>
<tr>
<th class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
<td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
</tr>
<?php endforeach; ?>
Replace the entire foreach loop with the following lines of code:

<?php foreach ($_additional as $_data:( ?>
<?php $_attribute = $_product->getResource()->getAttribute($_data['code']);
if (!is_null($_product->getData($_attribute->getAttributeCode())) && ((string)$_attribute->getFrontend()->getValue($_product) != '')) { ?>
<tr>
<th class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
<td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
</tr>
<?php } ?>
<?php endforeach; ?>
Thats it! Empty attributes will now be hidden from your product pages. Don’t forget to refresh your cache to see the changes.

I am new to this community. But the people here have shown me kindness. I would like to repay that kindness to other people if they need help.
How To Setup Magento With Multiple Stores And Domains
 
Последнее редактирование модератором:
Hi, how to hide prices and ‘Add to Cart’ buttons for non-logged without extension?

hi..

i need to upgrade magento 1.4.1.1 to magento 2

i follow some instructions and I need fisrt upgrade to 1.9 but when i overwrite files with 1.9 and refresh page it doesnt happen anything

is there any command line way to upgrade?

thnx
it's hard to upgrade from magento1.x to magento2.x
 
Последнее редактирование модератором:
I need to change Magento mageworx seo suite ultimate codes

ıts changing only product name on product page wihich tagged with <h1>

But I want to change product name with all tagged <h2> <h3> <h4> <h5> <a> etc

I mean I changing product name but product name is different on listing page, checkout page, and also product managing system so when I export my product to ebay I see old name of products... When I change language on front end I see old name and default language...

I want to effect ProductSeoName for all ProductName

PHP:
public function replaceName($observer)
{
    $accessToPage = array(
        'catalog_product_view',
        'review_product_list',
    );

    if(!in_array(Mage::helper('mage_seoall/request')->getCurrentFullActionName(), $accessToPage)){
        $block = $observer->getBlock();
        if($block->getNameInLayout() != 'product.info'){
            return;
        }

        $productSeoName = Mage::registry('current_product')->getProductSeoName();
        if(!$productSeoName){
            return;
        }

        $transport    = $observer->getTransport();
        $normalOutput = $observer->getTransport()->getHtml();
        $modifyOutput = $normalOutput;
        $h1Tags = array();
        preg_match_all('#<h1[^>]*>(.*)?</h1>#is', $normalOutput, $h1Tags);

        for ($i = 0; $i < count($h1Tags[1]); $i++) {
            $modifyOutput  = str_replace($h1Tags[1][$i], $productSeoName, $modifyOutput);
        }

        $transport->setHtml($modifyOutput);
    }
}
 
Последнее редактирование модератором:
How to remove order from magento backend panel?
 
Назад
Сверху