Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Owebia针对Magento问题的配送模块_Magento - Fatal编程技术网

Owebia针对Magento问题的配送模块

Owebia针对Magento问题的配送模块,magento,Magento,是否有人对Magento的Owebia运输方法有经验 我们已经试着设置了大约3个星期了,但是由于开发人员不提供支持,我们无法从他们那里得到帮助 1) 我无法让Owebia使用magento的购物车运输价格规则。我有一个购物车价格规则设置为免费运送特定属性的项目,然而,欧维比亚忽略了这一点。cart规则与其他装运方法一起正确地显示免费装运,但它似乎不适用于Owebia。Owebia仍然根据其重量显示完整的运输价格,并忽略了该规则 2) 我无法让Owebia的内置product.attribute.

是否有人对Magento的Owebia运输方法有经验

我们已经试着设置了大约3个星期了,但是由于开发人员不提供支持,我们无法从他们那里得到帮助

1) 我无法让Owebia使用magento的购物车运输价格规则。我有一个购物车价格规则设置为免费运送特定属性的项目,然而,欧维比亚忽略了这一点。cart规则与其他装运方法一起正确地显示免费装运,但它似乎不适用于Owebia。Owebia仍然根据其重量显示完整的运输价格,并忽略了该规则

2) 我无法让Owebia的内置product.attribute.sku方法正常工作。基本上,我有特定属性的产品是免费送货的,可以根据重量和目的地购买普通产品。所以我不知道如何与Owebia一起编写代码。他们在Owebia文档中提供的方法是完全无用的,因为它没有给出实际的使用示例

这是我的当前代码(没有任何product.attribute规则):

我想做的是,如果一个属性设置为“Apple”的产品被添加到购物车中,它不会只对该产品收取运费,并且只对某些国家/地区收取运费。在上述代码中;我有美国和加拿大,我想它是免费送货美国只,为特定的产品(不是整个车)

我不知道如何以任何方式使用上述三种方法


任何关于这件事的帮助都会非常感激的

Easy Damien,我想我会和你分享我的配置,看看这是否会让你走上正确的道路。 若要在Owebia实现免费送货,必须首先获得Magento的免费送货资格。 这是在购物车价格规则中设置的。 (即订单仅包含苹果->免费配送) 或 购物车仅包含SKU=0002的订单->免费送货。 我的观点是,首先使用magento来识别购物车是否符合免费送货的条件,然后使用owebia来处理代币

一旦这样做了,owebia用标记“免费送货”标识为true或false

我的配置如下:

{
"base": {
    "type": "data",
    "fees": 5.95,
    "lowfees": 2.95,
    "zone2reg": "(/^IV.*|HS.*|ZE.*|KW.*|KA2[78].*|PA2[0123456789].*|PA3[0123456789].*|PA4[0123456789].*|PA6[0123456789].*|PA7[012345678].*|^PH1[789].*|PH2[0123456].*|PH3[0123456789].*|PH4[01234].*|PH[0123456789].*|PH50.*$/i)",
    "zone3reg": "(/^BT.*|IM.*|TR2[12345].*$/i)"
},
"free": {
    "description":"free",
    "label": "FREE SHIPPING (ON ORDERS > £100)",
    "shipto": "GB-{base.zone2reg}-{base.zone3reg}",
    "fees": "0.00",
    "conditions": "{cart.free_shipping}=='true'"
},
"zone2": {
    "description":"zone2",
    "label": "Highlands & Islands of Scotland",
    "shipto": "GB{base.zone2reg}",
    "fees": "{table {cart.weight} in 250[:{base.lowfees}+8, *:{base.fees}+8}"
},
"zone3": {
    "description":"zone3",
    "label": "Northern Ireland, Isle of Man & Isles of Scilly",
    "shipto": "GB{base.zone3reg}",
    "fees": "{table {cart.weight} in 250[:{base.lowfees}+10, *:{base.fees}+10}"
},
"regular48": {
    "description":"regular48",
    "label": "UK (Mainland exc. Northern Ireland)",
    "shipto": "GB-{base.zone2reg}-{base.zone3reg}",
    "fees": "{table {cart.weight} in 250[:{base.lowfees}, *:{base.fees}}"
}
}

结果是,如果条件返回true,则会显示这些方法中的每一种。 因此,在cart.free_shipping==“true”的任何场景中,“free shipping”选项都作为单选项提供

不幸的是,还显示了常规的48小时parcelforce,用户必须选择免费送货,尽管我相信免费是默认的,因为它是第一个匹配项。 我尝试设置parcelforce 48hr shipping to{cart.free_shipping}=='false'的条件,但没有得到预期的结果,因此选择将这两种方法都显示为默认值,并将其作为默认值释放

如果你想知道“zone2reg”是一个正则表达式,我写它是为了过滤某些邮政编码,结果发现parcelforce运送到这些邮政编码的成本非常昂贵:)


希望这有帮助。

也有同样的问题,这非常有帮助。很难找到合适的欧维比亚信息。谢谢。我同意,Owebia显然有着广泛的用途,但没有真正明确的使用方法!由于这里涉及到构建,我将其用于几个更复杂的配置,但每次都有点猜测!
product.attribute_set: name of the attribute set
product.attribute_set.id
product.attribute_set.*:
{
"base": {
    "type": "data",
    "fees": 5.95,
    "lowfees": 2.95,
    "zone2reg": "(/^IV.*|HS.*|ZE.*|KW.*|KA2[78].*|PA2[0123456789].*|PA3[0123456789].*|PA4[0123456789].*|PA6[0123456789].*|PA7[012345678].*|^PH1[789].*|PH2[0123456].*|PH3[0123456789].*|PH4[01234].*|PH[0123456789].*|PH50.*$/i)",
    "zone3reg": "(/^BT.*|IM.*|TR2[12345].*$/i)"
},
"free": {
    "description":"free",
    "label": "FREE SHIPPING (ON ORDERS > £100)",
    "shipto": "GB-{base.zone2reg}-{base.zone3reg}",
    "fees": "0.00",
    "conditions": "{cart.free_shipping}=='true'"
},
"zone2": {
    "description":"zone2",
    "label": "Highlands & Islands of Scotland",
    "shipto": "GB{base.zone2reg}",
    "fees": "{table {cart.weight} in 250[:{base.lowfees}+8, *:{base.fees}+8}"
},
"zone3": {
    "description":"zone3",
    "label": "Northern Ireland, Isle of Man & Isles of Scilly",
    "shipto": "GB{base.zone3reg}",
    "fees": "{table {cart.weight} in 250[:{base.lowfees}+10, *:{base.fees}+10}"
},
"regular48": {
    "description":"regular48",
    "label": "UK (Mainland exc. Northern Ireland)",
    "shipto": "GB-{base.zone2reg}-{base.zone3reg}",
    "fees": "{table {cart.weight} in 250[:{base.lowfees}, *:{base.fees}}"
}