logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Magento 查询产品SKU和价格的SQL

SELECT t2.sku,t1.`value` from catalog_product_entity_decimal AS t1LEFT JOIN catalog_product_entity AS t2ON t2.entity_id = t1.entity_idWHERE t1.attribute_id=76order by t2.sku我这里 attribute_id=

Magento通过客户email获取客户其他信息

$email = 'customer_email@qq.com';$customer = Mage::getModel("customer/customer");//$WebsiteId = Mage::app()->getWebsite('admin')->getId();$customer->setWebsiteId(1);//查看数据库,设置你自己的website_id$custom

Magento通过分类id获取该分类下的产品(entity_id、type_id、sku、created_at、updated_at、status、visibility)

/*通过分类id获取该分类下的产品*/$category_id = 49;$products = Mage::getModel('catalog/category')->load($category_id)->getProductCollection()

Magento 获取 头一天的订单里的产品的qty_ordered

/*获取 头一天的订单里的产品的qty_ordered*/SELECT `main_table`.increment_id,`main_table`.`status`, `main_table`.created_at,item_table.qty_ordered,item_table.product_id,item_table.skuFROM `sales_flat_order_grid`

[Magento SQL] 根据SKU修改商品的某个属性的值

UPDATE catalog_product_entity_decimalSET `value`=0.09WHERE attribute_id=144 AND entity_id = (SELECT entity_id FROM catalog_product_entity WHERE sku='AP2016' LIMIT 1)比如,我们后期为商品添加了一个属性xxx,该属性是来表示商品某种

[Magento SQL] 获取一定日期范围内销售最好的产品,返回sku,qty_ordered,price,product_name

SELECT t1.period,t2.sku,t3.`value` AS price ,t1.product_name,t1.qty_orderedfrom sales_bestsellers_aggregated_daily AS t1LEFT JOIN catalog_product_entity AS t2ON t1.product_id=t2.entity_idLEFT JO

Magento中如何判断一个用户是否已经登陆

经常用的功能,比如你的促销中使用了优惠券,可是你只想让已注册用户使用,人可以使用Mage::getSingleton( 'customer/session' )->isLoggedIn()来判断用户是否已经登陆<?phpif(Mage::getSingleton( 'customer/session' )->isLoggedIn()) {echo 'You must logge

Magento返回产品name,sku,Description,ShortDescription,Specifications,Weight 的 SQL查询语句

select t1.entity_id,t5.name,t1.sku,t2.Description,t3.ShortDescription,t4.Specifications,t6.value as Weightfromcatalog_product_entity as t1left join (selectentity_id,value as `Description`f

Magento立即购买功能

template\catalog\product\view.phtmljQuery("#checknow").click(function () {jQuery("input#return_url").val("getUrl('checkout/onepage/');

Magento获取 最近一个月产品销量,按照SKU分组 的SQL语句。

SELECT created_at,sku,name, SUM(qty_ordered) AS total_orderedFROM sales_flat_order_itemWHERE created_at >= DATE_ADD(NOW(), INTERVAL -1 MONTH)GROUP BY sku order by total_ordered desc

    共 79 条
  • 1
  • 2
  • 3
  • 8
  • 请选择