Kategori : Magento ...

27
10
2015

Magento loglarını silmek veritabanı

Kategorisi : Magento

SET FOREIGN_KEY_CHECKS=0;

TRUNCATE sales_flat_quote;
TRUNCATE sales_flat_quote_address;
TRUNCATE sales_flat_quote_shipping_rate;
TRUNCATE dataflow_batch_export;
TRUNCATE dataflow_batch_import;
TRUNCATE log_customer;
TRUNCATE log_quote;
TRUNCATE log_summary;
TRUNCATE log_summary_type;
TRUNCATE log_url;
TRUNCATE log_url_info;
TRUNCATE log_visitor;
TRUNCATE log_visitor_info;
TRUNCATE log_visitor_online;
TRUNCATE report_viewed_product_index;
TRUNCATE report_compared_product_index;
TRUNCATE report_event;
TRUNCATE index_event;

SET FOREIGN_KEY_CHECKS=1;


17
04
2015

Magento admin – login problemi

Kategorisi : Magento

Secure URL, Unsecure URL,

core_config_data içerisindeki  valueweb/cookie/cookie_domain “path” aynı olmalı.


13
03
2014

Magento php cli – shell_exec ile index yenileme

Kategorisi : Magento

php /magentoyolu/shell/indexer.php status

php /magentoyolu/shell/indexer.php –help

php /magentoyolu/shell/indexer.php reindexall

php /magentoyolu/shell/indexer.php –reindex catalog

php /magentoyolu/shell/indexer.php info

İndexlerin listesi

catalog_product_attribute Product Attributes
catalog_product_price Product Prices
catalog_url Catalog URL Rewrites
catalog_product_flat Product Flat Data
catalog_category_flat Category Flat Data
catalog_category_product Category Products
catalogsearch_fulltext Catalog Search Index
cataloginventory_stock Stock Status
tag_summary Tag Aggregation Data
catalogpermissions Catalog Permissions
targetrule Target Rules

php ile örnek kullanım : shell_exec(‘php /www/site/shell/indexer.php –reindex catalog_product_price’);


07
03
2014

Magento XMLHttpRequest cannot load hatası ve çözümü

Kategorisi : Magento

Ajax isteğini yaptığımız yerde : url = url.replace(“https”,”http”);

örneğin :

$mtkb(‘.mt-actions .link-compare’).live(‘click’, function () {
url = $mtkb(this).attr(‘href’).replace(“https”,”http”);
addCompare($mtkb(this), url, $mtkb(this).attr(‘data-id’));
return false;
});


06
10
2012

Magento include değişkenleri – url yapıları

Kategorisi : Magento

To Retrieve URL path in STATIC BLOCK

To get SKIN URL

{{skin url=’images/sampleimage.jpg ‘}}

To get Media URL

{{media url=’/sampleimage.jpg’}}

To get Store URL

{{store url=’mypage.html’}}

To get Base URL

{{base url=’yourstore/mypage.html’}}

To Retrieve URL path in PHTML
Note: In editing PHTML don’t forget to enclode the following code with PHP tag

Not secure Skin URL

<?php echo $this->getSkinUrl(‘images/sampleimage.jpg’) ?>

Secure Skin URL

<?php echo $this->getSkinUrl(‘images/ sampleimage.gif’, array(‘_secure’=>true)) ?>

Get  Current URL

$current_url = Mage::helper(‘core/url’)->getCurrentUrl();

Get Home URL

$home_url = Mage::helper(‘core/url’)->getHomeUrl();

Get Magento Media URL

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);

Get Magento Skin URL

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);

Get Magento Store URL

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);

Get Magento Js URL

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);


 

photo

Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.

27 / 07 / 2024, 04:54:10
Web yazilim, grafik
barbetto.com

Tunalioglu.org - 2015