`
kirenenko04
  • 浏览: 152260 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

ISML

  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

  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

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

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(); }

Rewrite core model

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 ...
Global site tag (gtag.js) - Google Analytics