使用magento产品查看页面上的邮政编码检查是否可以使用货到付款 [英] identify cash on delivery is availble or not using zip/postal code check on product view page in magento

查看:41
本文介绍了使用magento产品查看页面上的邮政编码检查是否可以使用货到付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在产品视图-页面"上添加一个文本字段

I want to add a textfield on "Product- view - page"

因此,通过输入邮政编码,客户可以检查其地址中是否提供货到付款"选项.

so that by entering zip/postal code, customer can check whether "cash on delivery " option is available in their address or not.

我有大约500个邮政编码,支持货到付款.

I have some 500 zip/pin codes that support cash on delivery.

推荐答案

我认为您可以使用产品详细信息页面中的获取报价块来满足您的要求.

I think you requirement is fulfilled using the get a quote block in your product-detail page.

这是您需要做的:

  1. 创建一种名为货到付款的餐桌费率运输方法,并以价格上传您的csv.
  2. 默认使用购物车页面中的获取报价块,并将其放在产品详细信息页面中.我想这可以通过布局来完成.
  1. Create a tablerate shipping method named Cash On Delivery and upload your csv with price.
  2. Use the Get a Quote block that is in cart page in default, and place it in product detail page. This can be done from layout i guess.

现在,在产品详细信息页面上获得获取报价之后.仅显示邮政编码字段,并隐藏其他字段.

Now after you get the Get a Quote in your product detail page.Show only zip code field and hide other field.

如果我做对的话,这可以解决您的问题.

This could solve your problem,if i got it right.

希望这会有所帮助.

这篇关于使用magento产品查看页面上的邮政编码检查是否可以使用货到付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆