News:

AbanteCart v1.4.4 is released.

Main Menu
support

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Heemet

#16
Thanks for your suggestions.  I was able to disable ModSecurity, but that didn't help.  There is nothing in the AbanteCart error log.  I'm checking with hosting support.  I will revert with my findings.
#17
Hello,

When clicking on "edit" for an existing text banner in the admin site, I get the following error message in my browser:

"This site can't be reached
The webpage at [site address]/index.php?rt=extension/banner_manager/edit&banner_id=8&s=[admin]&token=[toke] might be temporarily down or it may have moved permanently to a new web address.
ERR_FAILED"

The existing banner appears on my site, but I cannot access it through the admin site.  Is something happening between the admin site and the SQL database?  What should I look for?  There is nothing in the error log.

FYI, I can enable and disable the existing banner, and I can see the "status" field change from "0" to "1" and back again in the "banners" table in the SQL database in CPanel, so I know the admin site is able to communicate with the SQL database.  I just can't edit any of the banners.

Any help would be appreciated.

Thanks,
Peter
#18
Thank you, gentlemen, for your assistance with this.  I successfully applied the fix manually, and it works perfectly now.

:)
#19
Hi Basara,

I inputted the zip code.  Here's the log for the outgoing XML (USERID and PASSWORD redacted):

2017-11-23 22:53:54 - '<RateV4Request USERID="XXXXX" PASSWORD="XXXXX">   <Package ID="1">   <Service>ALL</Service>   <ZipOrigination>19610</ZipOrigination> <ZipDestination>19610</ZipDestination>   <Pounds>1</Pounds>   <Ounces>9.12</Ounces>   <Container>VARIABLE</Container>   <Size>REGULAR</Size>   <Width>11.875</Width>   <Length>13.625</Length> <Height>3.375</Height>   <Girth>44.1</Girth>   <Machinable>true</Machinable>   </Package></RateV4Request>'

Here's the of the XML response from the USPS:

2017-11-23 22:53:55 - '<?xml version="1.0" encoding="UTF-8"?>
<RateV4Response><Package ID="1"><ZipOrigination>19610</ZipOrigination><ZipDestination>19610</ZipDestination><Pounds>1</Pounds><Ounces>9.12</Ounces><Size>REGULAR</Size><Machinable>TRUE</Machinable><Zone>1</Zone><Postage CLASSID="3"><MailService>Priority Mail Express 2-Day&amp;lt;sup&amp;gt;&amp;#8482;&amp;lt;/sup&amp;gt;</MailService><Rate>23.75</Rate></Postage><Postage CLASSID="2"><MailService>Priority Mail Express 2-Day&amp;lt;sup&amp;gt;&amp;#8482;&amp;lt;/sup&amp;gt; Hold For Pickup</MailService><Rate>23.75</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail 2-Day&amp;lt;sup&amp;gt;&amp;#8482;&amp;lt;/sup&amp;gt;</MailService><Rate>7.20</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail 2-Day&amp;lt;sup&amp;gt;&amp;#8482;&amp;lt;/sup&amp;gt; Medium Flat Rate Box</MailService><Rate>13.60</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail Parcel</MailService><Rate>3.12</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail Parcel</MailService><Rate>2.97</Rate></Postage></Package></RateV4Response>'

The response is correct.  The item costs USD 3.12 to ship via media mail.  However, none of the prices are showing up in the drop down box in the shipping estimator.

Thanks!
#20
Thanks you, abolabo! 

The XML code passed to the USPS's API and visible in the error-log is correct.

I added the following to line 238 of default_usps.php and I logged a response back from the USPS:
$this->log->write(var_export($result,true));

The response is well formed, and the prices are correct, but I'm seeing no estimates for USPS shipping options in the cart estimator.  I have only first class, priority mail, and media mail enabled.

I guess the data back from the USPS isn't getting into the drop-down box?
#21
Thanks for your reply and your continued help.  I disabled Cloudflare and changed the nameservers back to my original host's.  USPS shipping is still not showing up as an option.  I've confirmed that the page is being served by my host and no longer Cloudflare.

When I first view the cart, the form data sent with the POST (request URL "Request URL:.../store/index.php?rt=r/checkout/cart/change_zone_get_shipping_methods") sent by the shipping estimator is "country_id=223&zone_id=3663&postcode=", which makes sense, since no zip code was inputted yet.  The response is "{"default_usps":{"title":"United States Postal Service","quote":[],"sort_order":"0","error":"Missing value for ZipDestination."},"selectbox":""}", which also makes sense.

When I input the zip code in the shipping calculator, the URL request is the same, and the form data includes the zip code.  However, the response (in the browser's console) is blank.

How do I check the XML sent to the USPS's API and the response?

ETA: My workaround for this is to set up weight-based shipping, which I can easily do because all of my items will ship USPS media mail, which is solely a weight-based shipping method.  At this point, I'm trying to get to the bottom of this for the sake of others who might be facing a similar problem.  Thank you!
#22
Hi,

AbanteCart v. 1.2.11

USPS extension v. 1.0.2

I did a clean install of AbanteCart last night, and installed the USPS extension.  At first, the shipping option didn't show up on the stock site, but after filling in some of the details in System->Settings->Store details, USPS started showing up as a shipping option.  I don't understand that.

I fooled around today with turning on and off various shipping options in the USPS extension, e.g., priority mail, media mail, first class mail.  At first I could see some of these options showing up in the cart estimate (although they didn't match exactly what I had just selected) but now USPS is no longer available as a shipping option.  It's very strange.

Our site uses Cloudflare.  I'm not sure if that's a problem.  I've tried turning on development mode in Cloudflare (to turn off caching there), but it didn't make a difference.

Thanks!
#23
Thanks.  I've got the weight set.

The API appears to be active.  Per the USPS's suggestion, I inserted the following XML code (edited because I can't post an external link) into my browser's search bar (replacing xxxxxxxxxxxx with my userID), and I got a response, which would seem to indicate that my userID is active:

.....ShippingApi.dll?API=RateV4&XML=<RateV4Request USERID="xxxxxxxxxxxx">
<Package ID="1ST">
<Service>PRIORITY</Service>
<ZipOrigination>44106</ZipOrigination>
<ZipDestination>20770</ZipDestination>
<Pounds>1</Pounds>
<Ounces>8</Ounces>
<Container>NONRECTANGULAR</Container>
<Size>LARGE</Size>
<Width>15</Width>
<Length>30</Length>
<Height>15</Height>
<Girth>55</Girth>
</Package>

</RateV4Request>

How do I see what XML code is being sent to the USPS and the XML I'm receiving in response?
#24
Extension Support / USPS extension on but not showing up
November 19, 2017, 07:46:09 PM
Hello everyone,

New to the forum here. 

I installed the USPS extension and enabled it, but USPS is not showing up as a shipping option at check out.  I'm not including shipping in the price of the items I'm selling.  I've enabled priority mail and media mail, but I don't see these options at checkout.

I tested my user ID using the XML test request that the USPS suggests, and I got a response back.  So, my user ID isn't an issue.

I've tried uninstalling and then reinstalling the extension, but that didn't fix things.

Am I missing something?  Any suggestions are appreciated.

Thanks for your time.

ETA: I tried enabling another shipping extension, e.g., default_free_shipping, and that option appeared at checkout.

Forum Rules Code of conduct
AbanteCart.com 2010 -