嗨,新朋友,很高兴认识你,欢迎来到我的博客。
文章标签: magento

How to get Current page url in magento.

Get Current page url in magento or you can find catalog url using below code. With the help of this code you can easily find current page url in magento <?php $current_page = ''; /* * Check to see if i...

magento的connect中Invalid response headers returned from server

Invalid response headers returned from server: magento linux服务器上面安装新模块 网站根目录要设置 777权限! downloader 777权限 platform:community connect:2.0 setting 里面,设置为Ftp,Beta,No,Local

magento自定义layout

magento中默认的布局文件为1column.phtml,2columns-left.phtml,2columns-right.phtml,3columns.phtml 其实我们是可以增加自己需要的布局文件的。页面的内容具体要什么样子的,这就看自己的需求了。增加magento布局文件的方法步骤如下...

Magento获取当前页面URL地址

在Magento中,可以通过core/url助手类中的getCurrentUrl()方法获取当前页面的URL地址 $currentUrl = $this->helper('core/url')->getCurrentUrl(); //在社会化分享中,当前页面的URL地址非常有用 <a addthis:url...

Magento中Session使用

1 存储 require 'app/Mage.php'; // Initialize Magento Mage::app("default"); // You have two options here, // "frontend" for frontend session or "adminhtml" for admin session ...

magento获得购物车所有商品,总数量,总金额

Get all items information in cart // $items = Mage::getModel('checkout/cart')->getQuote()->getAllItems(); $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems(); f...

magento中block获取各种URL路径方法

Magento: get skin url, get media url, get base url, get store url 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 St...