Ubercart USPS 错误消息

发布于 2024-08-15 16:54:27 字数 3925 浏览 4 评论 0原文

我启用了 USPS 的运输报价,并且打开了调试信息,以便可以接收请求/响应信息:

API=RateV3&XML=
<RateV3Request USERID="(Hidden)">
<Package ID="0">
    <Service>ALL</Service>
    <ZipOrigination>90038</ZipOrigination>
    <ZipDestination>90024</ZipDestination>
    <Pounds>1</Pounds>
    <Ounces>0.0</Ounces>
    <Container>RECTANGULAR</Container>
    <Size>REGULAR</Size>
    <Machinable>False</Machinable>
</Package>
</RateV3Request>

<?xml version="1.0"?>
<RateV3Response>
    <Package ID="0">
        <ZipOrigination>90038</ZipOrigination>
        <ZipDestination>90024</ZipDestination>
        <Pounds>1</Pounds>
        <Ounces>0.0</Ounces>
        <Size>REGULAR</Size>
        <Machinable>FALSE</Machinable>
        <Zone>1</Zone>
        <Postage CLASSID="23">
            <MailService>Express Mail Sunday/Holiday Guarantee</MailService>
            <Rate>27.50</Rate>
        </Postage>
        <Postage CLASSID="25">
            <MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService>
            <Rate>30.00</Rate>
        </Postage>
        <Postage CLASSID="2">
            <MailService>Express Mail Hold For Pickup</MailService>
            <Rate>15.00</Rate>
        </Postage>
        <Postage CLASSID="27">
            <MailService>Express Mail Flat-Rate Envelope Hold For Pickup</MailService>
            <Rate>17.50</Rate>
        </Postage>
        <Postage CLASSID="3">
            <MailService>Express Mail</MailService>
            <Rate>15.00</Rate>
        </Postage>
        <Postage CLASSID="13">
            <MailService>Express Mail Flat-Rate Envelope</MailService>
            <Rate>17.50</Rate>
        </Postage>
        <Postage CLASSID="1">
            <MailService>Priority Mail</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="16">
            <MailService>Priority Mail Flat-Rate Envelope</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="28">
            <MailService>Priority Mail Small Flat-Rate Box</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="17">
            <MailService>Priority Mail Regular/Medium Flat-Rate Boxes</MailService>
            <Rate>10.35</Rate>
        </Postage>
        <Postage CLASSID="22">
            <MailService>Priority Mail Large Flat-Rate Box</MailService>
            <Rate>13.95</Rate>
        </Postage>
        <Postage CLASSID="4">
            <MailService>Parcel Post</MailService>
            <Rate>4.90</Rate>
        </Postage>
        <Postage CLASSID="5">
            <MailService>Bound Printed Matter</MailService>
            <Rate>2.33</Rate>
        </Postage>
        <Postage CLASSID="6">
            <MailService>Media Mail</MailService>
            <Rate>2.38</Rate>
        </Postage>
        <Postage CLASSID="7">
            <MailService>Library Mail</MailService>
            <Rate>2.26</Rate>
        </Postage>
    </Package>
</RateV3Response>

看起来响应很好,但在要求其计算后,我没有在页面上获得实际的运输报价。相反,我收到错误“获取运输报价时出现问题。请验证交货和产品信息,然后重试。如果这不能解决问题,请致电完成订单。”

如果有人知道为什么它仍然会显示错误,我将不胜感激。

I have shipping quotes with USPS enabled, and I turned on debugging information so I can receive the request/response information:

API=RateV3&XML=
<RateV3Request USERID="(Hidden)">
<Package ID="0">
    <Service>ALL</Service>
    <ZipOrigination>90038</ZipOrigination>
    <ZipDestination>90024</ZipDestination>
    <Pounds>1</Pounds>
    <Ounces>0.0</Ounces>
    <Container>RECTANGULAR</Container>
    <Size>REGULAR</Size>
    <Machinable>False</Machinable>
</Package>
</RateV3Request>

<?xml version="1.0"?>
<RateV3Response>
    <Package ID="0">
        <ZipOrigination>90038</ZipOrigination>
        <ZipDestination>90024</ZipDestination>
        <Pounds>1</Pounds>
        <Ounces>0.0</Ounces>
        <Size>REGULAR</Size>
        <Machinable>FALSE</Machinable>
        <Zone>1</Zone>
        <Postage CLASSID="23">
            <MailService>Express Mail Sunday/Holiday Guarantee</MailService>
            <Rate>27.50</Rate>
        </Postage>
        <Postage CLASSID="25">
            <MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService>
            <Rate>30.00</Rate>
        </Postage>
        <Postage CLASSID="2">
            <MailService>Express Mail Hold For Pickup</MailService>
            <Rate>15.00</Rate>
        </Postage>
        <Postage CLASSID="27">
            <MailService>Express Mail Flat-Rate Envelope Hold For Pickup</MailService>
            <Rate>17.50</Rate>
        </Postage>
        <Postage CLASSID="3">
            <MailService>Express Mail</MailService>
            <Rate>15.00</Rate>
        </Postage>
        <Postage CLASSID="13">
            <MailService>Express Mail Flat-Rate Envelope</MailService>
            <Rate>17.50</Rate>
        </Postage>
        <Postage CLASSID="1">
            <MailService>Priority Mail</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="16">
            <MailService>Priority Mail Flat-Rate Envelope</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="28">
            <MailService>Priority Mail Small Flat-Rate Box</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="17">
            <MailService>Priority Mail Regular/Medium Flat-Rate Boxes</MailService>
            <Rate>10.35</Rate>
        </Postage>
        <Postage CLASSID="22">
            <MailService>Priority Mail Large Flat-Rate Box</MailService>
            <Rate>13.95</Rate>
        </Postage>
        <Postage CLASSID="4">
            <MailService>Parcel Post</MailService>
            <Rate>4.90</Rate>
        </Postage>
        <Postage CLASSID="5">
            <MailService>Bound Printed Matter</MailService>
            <Rate>2.33</Rate>
        </Postage>
        <Postage CLASSID="6">
            <MailService>Media Mail</MailService>
            <Rate>2.38</Rate>
        </Postage>
        <Postage CLASSID="7">
            <MailService>Library Mail</MailService>
            <Rate>2.26</Rate>
        </Postage>
    </Package>
</RateV3Response>

It looks like the response is fine, but I'm not getting an actual shipping quote on my page after asking it to calculate. Instead I get the error "There were problems getting a shipping quote. Please verify the delivery and product information and try again. If this does not resolve the issue, please call in to complete your order."

If anyone has any information why it would still show an error, I would appreciate the help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北凤男飞 2024-08-22 16:54:27

你想出解决办法了吗?我得到了类似的回复,我可以通过选择不同的运输选项来解决这个问题。在 USPS 运输模块中,First Class Mail Parcel 和 First Class Mail Flat 选项似乎设置为与运费不对应的值。

这是在 Drupal 6 站点上。

Did you figure out a solution? I was getting a similar response and I was able to clear it up by selecting different shipping options. It seems in the usps shipping module the First Class Mail Parcel and the First Class Mail Flat options are set to values that don't correspond to shipping rates.

this is on a Drupal 6 site.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文