摘要: <script type="text/javascript"> jQuery(document).scroll(function(){ var screens = jQuery(document).scrollTop(); if(screens >800){ jQuery('#xiangqingye 阅读全文
posted @ 2017-04-01 13:06 思风雨 阅读(224) 评论(0) 推荐(0) 编辑
摘要: <?php // 登录后跳转回当前页 Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mage::helper('core/url')->getCurrentUrl()); ?> <div>参加团购需要首先登录哦。点击 <a href 阅读全文
posted @ 2017-04-01 13:02 思风雨 阅读(208) 评论(0) 推荐(0) 编辑
摘要: jQuery.ajax({ url: "<?php echo $drawLotteryAjaxUrl; ?>", data: { product_id: turnplate.productids[item-1], product_name: turnplate.productnames[item-1 阅读全文
posted @ 2017-04-01 12:49 思风雨 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <?php if(!Mage::getSingleton('customer/session')->getCustomerId()): ?> <?php // 登录后跳转回当前页 Mage::getSingleton('customer/session')->setBeforeAuthUrl(Mag 阅读全文
posted @ 2017-03-28 17:05 思风雨 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 1.获取当前浏览器的url $currentUrl = $this->helper('core/url')->getCurrentUrl(); 2.获取当前域名 $this->getUrl(); 对url判断来显示不同的图片 <?php if(strpos($currentUrl,'promocat 阅读全文
posted @ 2017-03-17 11:00 思风雨 阅读(467) 评论(0) 推荐(0) 编辑
摘要: Magento获取购物车数量和价格以及购物车所有信息,$items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems(); //获取所有的信息集合 foreach($items as $item) {echo 'ID: 阅读全文
posted @ 2017-03-16 19:29 思风雨 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: 可以用两个方法来找指定的产品: 1、通过product_id来找到产品:$product = Mage::getModel('catalog/product')->load($product_id); 2、获取产品的仓库:$stock = Mage::getModel('cataloginvento 阅读全文
posted @ 2017-03-16 17:45 思风雨 阅读(596) 评论(0) 推荐(0) 编辑
摘要: Mage::helper('core')->currency($gbPromo->getData('price'));获取价格模式 阅读全文
posted @ 2017-03-15 18:55 思风雨 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 1、Magento文件目录结构图 2、Magento网站运行原理 Magento网站和常规的网站概念是有点不一样,magento是由很多模块组成的,你可以自行开发和系统一样级别的模块替换系统模块,所以非常方便进行二次开发和维护!magento的核心模块page控制着所有页面的输出,其他的模块都是围绕 阅读全文
posted @ 2017-03-15 18:08 思风雨 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: 1.新建一个账户吧 用这个账户来登陆 阅读全文
posted @ 2017-03-15 17:51 思风雨 阅读(515) 评论(0) 推荐(0) 编辑