- 浏览: 152260 次
- 性别:
- 来自: 上海
最新评论
-
kirenenko04:
我没要学.学你妈的Demandware,被老板娘逼的.我现在去 ...
Demandware Training -
itxinmeng:
不错,现在做demandware的不多哦,可以交流下下..
Demandware Training
文章列表
ISML
- 博客分类:
- Demandware
Internet Store Markup Language (ISML)
ISML Templates
Internet Store Markup Language or ISML templates are files with an extension of .isml which define how data, tags and page markup are transformed into HTML that is sent to the browser, using CSS for page layout and styling.
The ...
Pipelines
- 博客分类:
- Demandware
Pipelines
Pipeline Elements
A pipeline is a logical model of a particular business process, similar to a flowchart (流程图) . Demandware UX Studio provides a visual representation of the process within the Eclipse IDE.
Pipelines are stored in XML files in the file system, both locally ...
Cartridges
- 博客分类:
- Demandware
Cartridges
What is a Cartridge?
A cartridge is a directory structure that is used as a flexible deployment mechanism for customized functionality. A cartridge can contain many different types of files:
static files such as CSS, JavaScript, and images, as well as WSDL files.
There are also ...
UX Studio Overview
- 博客分类:
- Demandware
UX Studio Overview
UX Studio
UX Studio is an Integrated Development Environment (IDE) used for programming in the Demandware platform.
UX Studio is a plugin built on the Eclipse open-source development platform (www.eclipse.org).
Creating a Workspace
A workspace is an Eclipse-specific loca ...
Demandware Architecture
SaaS platform (软件即服务 平台)
The term SaaS (Software as a Service) is used to define the method of delivering software to a customer. Software and applications are hosted on the internet and delivered to customers who pay for access. Software updates are performed on the hos ...
Here is the table content:
id skus
1 P763B,P763A,P739A,P574P,P574C,P574B,P573K
2 P573G,P0870,P0860,D9543,D8984
3 D8983,D8821,D8579,D8573,D853A,D8539
4 D824A,D7805
Add each sku with its relation product skus(in one line) into magento
<?php
/**
* 导入关联商品
* @author bysoft
*
*/
class ...
1.the ajax function in cart page phtml:
function change($this){
//update cart item qty
var item_id = $this.attr('item_id');
var qty = $this.val();
$("#ajax-loading-div").show();
$.ajax({
url: "<?php echo $this->getUrl('mycheckout/cart/updateProdu ...
I think the class Mage_Catalog_Model_Category already includes the function you are searching. It is called getChildren:
public function retrieveAllChilds($id = null, $childs = null) {
$category = Mage::getModel('catalog/category')->load($id);
return $category->getChildren();
}
example: we will rewrite Mage_Newsletter_Model_Subscriber in order to disable send success subscriber and send unsubscription mail function :
in config.xml:
<global>
<models>
<mynewsletter>
<class>Bysoft_Mynewsletter_Model</class>
< ...
You can build your $param array by merging the existing data with the products already assigned as crosssells.You can get a list of the crosssels like this:
$crosssells = $product->getCrossSellProducts();
This will give you a collection with the products. To turn it int an array in the same f ...
public function getAttIdByCode($att_code) {
$eavAttribute = Mage::getModel('eav/entity_attribute')->loadByCode('catalog_product', $att_code);
return $eavAttribute->getData('attribute_id');
}
1. create simple product function:
public function import_simple_product() {
$sql = "select * from bysoft_import_product";
$results = $this->_read->fetchAll($sql);
$configurable_attribute = "size"; $attr_id = 134;
foreach ($results ...
$attribute_set = Mage::getModel("eav/entity_attribute_set")->getCollection();
$attribute_set = $attribute_set->addFieldToFilter("attribute_set_name", $attributeSetName)->getFirstItem();
$attribute_set_id = $attribute_set->getAttributeSetId();
config.xml:
<?xml version="1.0"?>
<config>
<modules>
<Bysoft_Import>
<version>0.1.1</version>
</Bysoft_Import>
</modules>
<global>
<helpers>
<import>
<class>Bysoft_Impor ...
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_product_bundle_option`;
TRUNCATE TABLE `catalog_product_bundle_option_value`;
TRUNCATE TABLE `catalog_product_bundle_selection`;
TRUNCATE TABLE `catalog_product_entity_datetime`;
TRUNCATE TABLE `catalog_product_entity_decimal`;
TRUNCATE TA ...