我正在尝试设置Jenkins PR builder插件,以便在新的pull请求中点击github.我已经跟着文档,并尝试了"许多"不同的配置,但我似乎无法通过这个:
" 忽略refs/heads/jenkins_testing,因为它与任何配置的refspecs都不匹配 "
如果我将分支说明符留空,则PR上的"任何"更改会触发构建.从此,我知道
Refspec:我只使用规定的PR设置 -
+refs/pull/*:refs/remotes/origin/pr/*
Run Code Online (Sandbox Code Playgroud)
分支 我尝试了很多设置
${sha1} - ignored
${ghprbActualCommit} - ignored
branch-id - gets built, but I need "any" PR
** (blank) - too much gets built, undesirable
Run Code Online (Sandbox Code Playgroud)
Jenkins/PR builder配置:
投票结果仍然存在:
我知道这个错误导致了这个问题,但是从1.31更新到1.33后,问题仍然存在.
我已经阅读了关于运行两个进程的内容,但我不确定为什么我需要它(请解释,如果有的话).
可你看到什么错在我的配置?任何澄清或建议都是最受欢迎的.
干杯 -
说 - 拥有一张带有大量"多个"css规则的.less工作表来管理图标.像这样的东西:
.icon { display:inline-block; position:relative; text-indent:-9999em;}
.icon-l.legend { width:24px; height:24px;}
.icon-white.legend{ background:url(@icon_legend_white) no-repeat;}
.icon-l.arrow_left{background-position: -128px -32px;}
Run Code Online (Sandbox Code Playgroud)
并应用这样的规则:
<i class="icon icon-l icon-color legend arrow_left"></i>
Run Code Online (Sandbox Code Playgroud)
当我有权访问标记时,这可以正常工作,但是我很难将这些规则less应用于给定元素:
这是我期望的工作:
#something{
.icon;
.icon-l.legend;
.icon-white.legend;
.icon-l.arrow_left;
}
Run Code Online (Sandbox Code Playgroud)
这只会引发错误.
我"导致相信""&"运算符可以应用如下规则:
#something{
.icon;
.icon-l{&.legend{}};
.icon-white{&.legend{}};
.icon-l{&.arrow_left{}};
}
Run Code Online (Sandbox Code Playgroud)
这不会引发任何错误,但只会.icon应用规则.
有人有解决方案吗?
UPDATE
仅供参考 - 我正在为几个不同的独特工作表编译几个.less文件.工作得很好.
SublimeText2插件 - 工作得相当好,并且很好地集成到工作流程中(需要"构建"文件) - 但是无法呈现这样的多个类
SimpLess - 是一个很好的独立我喜欢很多,除了我不断编译错误堆栈的错误 - 没有明确引用错误位置
WinLess - 设法完成我的所有编译需求,以及成功编译这样的多个类.此外 - 它的错误报告非常具体.让它成为赢家.
不知道为什么这么难.如果我理解这正确的,我应该能够迅速完成我的目标......但没有喜悦.
所以 - 我正在构建我的第一个主题,并且仍然围绕布局......
我正专门在Catalog Product View页面上工作,并且正在将此页面从右列布局转换为左列布局.我只是想把块从右边移到左边.
在默认的catalog.xml中,product_list_related定义了:
</catalog_product_view>
//...
<reference name="right">
<block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
</reference>
</catalog_product_view>
Run Code Online (Sandbox Code Playgroud)
在我的local.xml中,我只是想移动这个块:
<layout>
// bunch other page directives
<catalog_product_view>
<reference name="root">
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
</reference>
<reference name="right">
<action method="unsetChild"><name>catalog.product.related</name></action>
</reference>
<reference name="left">
<action method="insert"><blockName>catalog.product.related</blockName></action>
// note that that "catalog.leftnav" gets inserted as expected
<block type="catalog/layer_view" name="catalog.leftnav" after="-" template="catalog/layer/view.phtml"/>
</reference>
</catalog_product_view>
</layout>
Run Code Online (Sandbox Code Playgroud)
如上所述 - 插入catalog.leftnav按预期工作,所以我假设其他所有设置都正确.如果我保持模板和其他指令不变,目标块将按预期呈现,这告诉我块一旦被正确设置并插入就应该呈现...
这让我疯狂......但Magento还有什么新东西.
干杯 -
B []×
UPDATE
Run Code Online (Sandbox Code Playgroud)
因为我根本无法获得local.xml覆盖工作,所以我只是回过头来修改catalog.xml.我是一个相当聪明的人...它让我担心我不能让这个工作(而且无论如何,那个magento都默默地失败了) …
尝试在Magento Pro v1.11中添加group_id单选按钮
以下是
http://phpmagento.blogspot.com/2012/01/how-to-show-customer-group-selecter-in.html和
http://developersindia.info/magento/magento-override-frontend-controller .html,
这是一个点,但group_id没有写入数据库.
我的模块,到目前为止:
目录结构
app/code/local
- WACI
-- Customer
--- controllers
---- AccountController.php
--- etc
---- config.xml
Run Code Online (Sandbox Code Playgroud)
config.xml中
<config>
<modules>
<WACI_Customer>
<version>0.1.0</version>
</WACI_Customer>
</modules>
<global>
<fieldsets>
<customer_account>
<group_id><create>1</create></group_id>
</customer_account>
</fieldsets>
</global>
<frontend>
<routers>
<customer>
<args>
<modules>
<WACI_Customer before="Mage_Customer_AccountController">
WACI_Customer
</WACI_Customer>
</modules>
</args>
</customer>
</routers>
</frontend>
</config>
Run Code Online (Sandbox Code Playgroud)
AccountController.php
<?php
/**
*Customer account controller
*
* @package WACI_Customer
*/
require_once Mage::getModuleDir('controllers', 'Mage_Customer').DS.'AccountController.php';
class WACI_Customer_AccountController extends Mage_Customer_AccountController
{
/**
* Create …Run Code Online (Sandbox Code Playgroud) 我一直致力于我的第一次magento部署.有一个非常自定义的主题建立...现在解决一些非标准的自定义:
我的主要产品类型之一是办公椅,我将其设置为捆绑产品.此产品类型有多种选择(约100种面料选项,手臂式,腰部,头枕等),我需要能够在目录/产品/视图页面上显示每种产品的图像.
作为捆绑产品(我将不再讨论这是否是正确的产品类型 - 我们在可配置和捆绑之间进行辩论 - 每个产品都是由许多简单产品组装而成(作为选项) .这些简单的产品可以上传图像,我已经这样做了.我现在想要检索媒体文件夹中的URL ...
经过一些狩猎 - 这些似乎是必不可少的元素:
主题/../模板/目录/产品/视图/ options.phtml
<?php $_options = Mage::helper('core')->decorateArray($this->getOptions()) ?>
<dl>
<?php foreach($_options as $_option): ?>
<?php echo $this->getOptionHtml($_option) ?>
<?php endforeach; ?>
</dl>
Run Code Online (Sandbox Code Playgroud)
主题模板/../ /束/目录/产品/视图/类型/束/选项/ select.phtml
<?php /* @var $this Mage_Bundle_Block_Catalog_Product_View_Type_Bundle_Option_Select */ ?>
<?php $_option = $this->getOption(); ?>
<?php $_selections = $_option->getSelections(); ?>
Run Code Online (Sandbox Code Playgroud)
我发现终于找到getSelections()了:
class Mage_Bundle_Model_Resource_Price_Index extends Mage_Core_Model_Resource_Db_Abstract
{ ...
/**
* Retrieve bundle options with selections and prices by product
*
* @param int $productId
* …Run Code Online (Sandbox Code Playgroud) 我需要为订单模型添加自定义属性(" dynamics_ord ").
成功保存订单后,管理员需要定义此attr,理想情况下,主要订单块中的admin/sales_order/view.
它需要独立于发票/发货等 - 可能附加到订单" edit"事件.
我为其他实体(特别是客户)制作了许多自定义属性.我意识到这是同一个过程.但我不清楚如何修改具有此属性的订单,因为没有明显的"更新"操作."编辑"可能有意义,但我不想不必要地重复订单.
一旦这个attr到位,我想在sales_order/index网格中显示它.(注意=查看此相关线程以获得有效的解决方案.)
此模块的最终状态(以及其他需要此解决方案的人):
/ sales_order/view / screenshot:

WACI_SalesExt
app/local/WACI/SalesExt
/Block
/Adminhtml
/Sales
-Dynamicsord.php
/controllers
/Adminhtml
/Sales
- OrderController.php
/etc
- config.xml
/Helper
- Data.php
/sql
/waci_salesext_setup
-mysql4-install-0.2.0.php
Run Code Online (Sandbox Code Playgroud)
config.xml中
<?xml version="1.0"?>
<config>
<modules>
<WACI_SalesExt>
<version>0.2.0</version>
</WACI_SalesExt>
</modules>
<global>
<helpers>
<WACI_SalesExt>
<class>WACI_SalesExt_Helper</class>
</WACI_SalesExt>
</helpers>
<blocks>
<WACI_SalesExt>
<class>WACI_SalesExt_Block</class>
</WACI_SalesExt>
<adminhtml> <!-- unclear if i need this second declaration for admin-->
<WACI_SalesExt>
<class>WACI_SalesExt_Block</class>
</WACI_SalesExt>
</adminhtml>
</blocks>
<models>
<WACI_SalesExt> …Run Code Online (Sandbox Code Playgroud) 我目前正致力于为我的第一个magento版本显示产品选项的图像.我有本想出了捆绑的产品,就像这样:

当构建选项的选项时,我正在获取相关图像的URL(例如样本).现在我正在尝试对可配置产品做同样的事情,但它似乎并不那么简单.
可配置产品由简单的产品构建,代表可用选项的每次迭代.大.我显然可以为每个简单的产品上传图像,这对解决这个问题是个好的开始.
例如:椅子有3个室内装潢和2个扶手选择(6个简单的产品).对于椅子2/b,我上传室内装潢样品2和扶手样品b,并相应地标记它们.当选项构建完成后,我会抓取与每个简单产品相关联的图像网址(可能会抓取该标签的所有图像并删除重复项或某些东西?)...
在Magento,我看到:
在theme/catalog/product/view/type/option/configurable.phtml中
<?php foreach($_attributes as $_attribute): ?>
..//
<select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
<option><?php echo $this->__('Choose an Option...') ?></option>
</select>
..//
</div>
<?php endforeach; ?>
<script type="text/javascript">
var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);
</script>
Run Code Online (Sandbox Code Playgroud)
与捆绑包不同,可配置的产品选择/选项通过javascript(in js/varien/configurable.js)注入到页面中.然后,该类依赖于在此之后getJsonConfig()提供所有信息.
此时,似乎我应该能够从该对象获取简单产品的图像URL信息.我在configurable.js中看不到处理图像的逻辑. 我将如何获取这些网址并将其与相关选项相关联?
关于如何进行这项工作的任何建议都会很棒.
干杯
......还有:这真的看起来像是绝对必要的功能.为什么magento不支持这样的东西开箱即用?
对于那些对类似事物感兴趣的人,我终于明白了这一点.
我的第一种处理方法 - 从儿童产品中获取图像在一定程度上起作用,但在尝试抓取多组属性的唯一图像网址时却很复杂.它还意味着必须为简单产品中的每个选项提供图像,因此 - 大量不必要的劳动力.
我最终使用了@Greg Demetrick建议的免费插件(有一些修改).它是一个非常可靠的小模块,允许图像网址与任何属性选项/以及抓取它们的几种方法相关联.
我的最终解决方案看起来有点像这样:
目录/产品/视图/类型/选项/ configurable.phtml:
<?php foreach($_attributes as $_attribute): ?>
// …Run Code Online (Sandbox Code Playgroud) magento ×5
attributes ×1
controller ×1
css ×1
github ×1
html ×1
image ×1
jenkins ×1
layout-xml ×1
less ×1
model ×1
option ×1
options ×1
php ×1