- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我希望在 Magento 1.8 中添加澳大利亚境内运输的表格费率。
这家商店位于澳大利亚,只运送到澳大利亚。当我尝试导入以下 CSV 时,Magento 吐出一条错误消息,指出“文件尚未导入”并且代码“无效”。
"Country","Region/State","Zip/Postal Code","Order Subtotal (and above)","Shipping Price"
"AU","*","*","250","0"
"AUS","VIC","*","0","11"
"AUS","NSW","*","0","12"
"AUS","QLD","*","0","13"
"AUS","ACT","*","0","14"
"AUS","NT","*","0","15"
"AUS","WA","*","0","16"
"AUS","SA","*","0","17"
"AUS","TAS","*","0","18"
我知道并使用过 fontis extension在过去,但不喜欢它有多么臃肿,因为我没有用到的额外功能。
最佳答案
在表格中查找之后,我找到了以下解决方案。
首先,您需要将所需的州添加到 directory_country_region
表中。确保这是自动递增的,并使用 AU
作为 country_id
。
我运行了以下查询:
INSERT
INTO `your-database-name`.`directory_country_region`
(`region_id`, `country_id`, `code`, `default_name`)
VALUES
(NULL, 'AU', 'VIC', 'Victoria'),
(NULL, 'AU', 'NSW', 'New South Wales'),
(NULL, 'AU', 'QLD', 'Queensland'),
(NULL, 'AU', 'ACT', 'Australian Captial Territory'),
(NULL, 'AU', 'NT', 'Northern Territory'),
(NULL, 'AU', 'WA', 'Western Australia'),
(NULL, 'AU', 'SA', 'South Australia'),
(NULL, 'AU', 'TAS', 'Tasmania');
插入这些行后,记下它们各自的 region_id
,以便在 directory_country_region_name
表中使用。
我逐行运行了以下查询。确保更新 region_id
以匹配在上次查询中创建的 ID。
INSERT
INTO `your-database-name`.`directory_country_region_name`
(`locale`, `region_id`, `name`)
VALUES
('en_AU', '485', 'Victoria'),
('en_AU', '486', 'South Australia'),
('en_AU', '487', 'Western Australia'),
('en_AU', '488', 'Northern Territory'),
('en_AU', '489', 'Queensland'),
('en_AU', '490', 'New South Wales'),
('en_AU', '491', 'Australian Capital Territory'),
('en_AU', '492', 'Tasmania');
现在使用澳大利亚地址创建一个新帐户并注意我们现在得到一个下拉列表,其中填充了这些值!万岁!
我现在可以毫无问题地将我的 CSV 导入 Magento 中的表费率。
"Country","Region/State","Zip/Postal Code","Order Subtotal (and above)","Shipping Price"
"AUS","*","*","250","0"
"AUS","VIC","*","0","11"
"AUS","NSW","*","0","12"
"AUS","QLD","*","0","13"
"AUS","ACT","*","0","14"
"AUS","NT","*","0","15"
"AUS","WA","*","0","16"
"AUS","SA","*","0","17"
"AUS","TAS","*","0","18"
我想让这个查询自动使用 directory_country_region_name
表中的 region_id
,如果有人对如何改进有任何提示,我将不胜感激。
关于php - 在 magento 中添加澳大利亚表费率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20482025/
好吧,这是一个很大的问题,我已经在这里和互联网上阅读了很多相关内容。 我发现的最好的是:this link 现在这是我们的问题(这仅适用于澳大利亚距离)我们拥有澳大利亚每个郊区的纬度和经度值数据库。
我有一份澳大利亚各州和领地的列表及其相应的值。现在我想制作这样的热图: 我正在关注此 link 中的 Pyplot 示例但它只是美国各州的一个例子。 特别是,在这段代码中: data = [ dict
我需要验证澳大利亚电话号码(例如 02[3-9]\d{7} 或 07[3-9]\d{7} 或04[\d]{8}) 在 JavaScript 中。 要求: 必须是10位数字 没有逗号 没有破折号 前面没
我想检查输入是否是有效的文胸尺寸。在美国,胸罩尺码以偶数 28-48 和字母 A-I、AAA、AA、DD、DDD、HH 或 HHH 书写。欧盟、日本和澳大利亚使用不同的数字和模式,例如。 90C C9
我正在生成澳大利亚的 TopoJSON map 。我已经成功生成了澳大利亚的 GeoJSON map 。然后我将该数据转换为 TopoJSON 但无法呈现 map 。 注意事项: 我可以准确地投影城市
我对这种情况感到困惑。 在 Java 中,语言代码在需要时使用下划线,例如 en_AU。但我在其他地方和包(例如 JQuery UI)中看到,人们像在 en-au 中一样使用破折号。 我很想知道为什么
我正在尝试使用 java.time.ZonedDateTime< 将 IST [亚洲/加尔各答] 中的 LocalDateTime 转换为 AET [澳大利亚/悉尼]/。以下是我所做的: LocalD
我是一名优秀的程序员,十分优秀!