-
Posts
963 -
Joined
-
Last visited
-
Days Won
18
Reputation Activity
-
John W got a reaction from Dan Cole in AIM Module - MD5 Hash Is Going Away. Is there an update?
On my test site using my AIM module on their test server/sandbox it works with all the MD5 code commented out of the aim module. I never had anything entered for it and all the md5 code was contingent on something being entered. I think the md5 code was carry over from when Harald did the SIM module, but I'm guessing.
I also downloaded their SDK for the api and have played with that a little on my test site with Netbeans. Netbeans is helpful because it parses the code and can take you right to a class or method without having to hunt for it. Since they have about 500 files in this api, NB is really helpful. I used their sample code to get it to work from my test site. I think we could reuse a lot of the aim module code and convert it to use the api.
-
John W reacted to cannuck1964 in AIM Module - MD5 Hash Is Going Away. Is there an update?
For hosted forms. For XML it is the preferred method of implementation
The link I sent is for XML implementation classes
Hosted forms have not been in use for a very long time now.
cheers
Peter
-
John W got a reaction from Moxamint in Cezpdf pdf-php creator
I don't know if anyone will have interest in this, so I won't spend a lot of time on this unless it gains traction. Anyway, I use batch print from over a decade ago and didn't realize until yesterday that the pdf class was still being maintained. Since I only sell in the US, I haven't run into many character encoding problems, but I imagine some of you do. So, the new version of Cezpdf seems to work with all the characters. It's also php 7.2 compliant. Even better, I was able to replace my old Cezpdf and Cpdf class files and associated files. With very little changes, it prints my invoice. The pdf manual seems pretty useful, but I haven't gone very far into it yet. The main snag I hit was using "addTextWrap", which requires a different order than before. But, it has more functionality, so I can right justify for totals, which I couldn't do before. addText also has changed. I only have a few hours into it, but check the manual out.
So, I said wouldn't ramble too much. If anyone is intersted you can find it at https://github.com/rospdf/pdf-php
-
John W got a reaction from Stephan Gebbers in Cezpdf pdf-php creator
I don't know if anyone will have interest in this, so I won't spend a lot of time on this unless it gains traction. Anyway, I use batch print from over a decade ago and didn't realize until yesterday that the pdf class was still being maintained. Since I only sell in the US, I haven't run into many character encoding problems, but I imagine some of you do. So, the new version of Cezpdf seems to work with all the characters. It's also php 7.2 compliant. Even better, I was able to replace my old Cezpdf and Cpdf class files and associated files. With very little changes, it prints my invoice. The pdf manual seems pretty useful, but I haven't gone very far into it yet. The main snag I hit was using "addTextWrap", which requires a different order than before. But, it has more functionality, so I can right justify for totals, which I couldn't do before. addText also has changed. I only have a few hours into it, but check the manual out.
So, I said wouldn't ramble too much. If anyone is intersted you can find it at https://github.com/rospdf/pdf-php
-
John W reacted to cdetdi in Paypal Express Dropping Tax Calculation
Fixed for now - I added a function in general that looks to see if the PAYMENTREQUEST_0_TAXAMT is in the Paypal array which then turns on the tax rate I need. The fact that this works suggests that it was the shop that calculated the rate by itself (disregarding the PayPal return) and the shop was dropping the tax rate.
-
John W got a reaction from raiwa in AJAX Attribute Manager support
@raiwa
Seems to work with 2.9.5 with a quick test. I'll let you know if I find anything else.
Thanks for all your work on this.
-
John W got a reaction from raiwa in AJAX Attribute Manager support
So, I've updated to 2.9.4 and testing it using E_ALL error reporting. Got an undefined var warning when saving a product.
On attributeManagerUpdateAtomic.inc.php line 27 I added the isset and it solved it. Like below.
if (isset(${AM_SESSION_VAR_NAME}) && is_array(${AM_SESSION_VAR_NAME}) && is_numeric($products_id)) { I'll keep testing and report anything and I can find and hopefully offer a fix.
-
John W reacted to clustersolutions in ULTIMATE Seo Urls 5 - by FWR Media
Hmm...true, clean code is important...
I don't know if this banaid is better than the previous one, but they both offer a similar solution.
I would really do a var_dump($text_array) or print_r($text_array) just before the foreach statement to get a stack trace of the argument. You really need to know why PHP was complaining. In fact, the foreach statement wasn't just looking for an array, and it was expecting an associative array.
FWR is a smart dude, I would definitely understood why before deciding on a fix. That would be my approach...some upstream setting may just fix the warning.
-
John W reacted to JcMagpie in Google Adsense and https site
Short answer for an established business no! I personally only use it on my hobby sites. On these it works very well.
However in reality it depends on what you are selling and how established your store is. If your selling hobby stuff which is not easy to get or stuff you make your self, then having others that sell similar stuff place ads that may be of interest to your customers can help.
You may find you have competitors that target your site with ads but google allows you to block them. So it's all down to what your selling and how you use it.
-
John W got a reaction from raiwa in [CONTRIBUTION] PDF Customer Invoice
STORE_NAME_ADDRESS used to be used and was changed. I still have it in my configuration DB for my old PDF that I still use.
-
John W got a reaction from azpro in [Contribution] Recently Viewed Products(sales optimized)
@azpro I didn't think about that at the time. I was just submitting some pages to check for errors and it came up. However, I think you are correct.
-
John W reacted to Jack_mcs in Automatically send data feed to Froogle
A new version has been uploaded with these changes:
Added the OPTIONS_USE_IMAGE_TABLE to cause the image to be loaded from the products_image table (2.3 only). Changed the condition field to be loaded from the products description table instead of the products table. Found by member kru. Changed the code to limit the length of the title to 150 characters. Changed the code that handles the taxes. An invorrect value caused VAT to be ignored. Removed filename definitions.
-
John W reacted to Bobber in updated certificates
@John W yes the new one works for me and I am using secure2
-
John W reacted to Dan Cole in updated certificates
@John W The new certificate works fine John and fyi...you don't need to change the gateway either. Mine is still pointed to secure instead of secure2 and everything seems to be working as it should.
Dan
-
John W got a reaction from Bobber in updated certificates
Yes, that's where I got my copy. They recently have changed a couple times, and I haven't tried the lastest version. @Bobber Does the latest work for you?
-
John W reacted to Bobber in updated certificates
Thank you again for the help @John W
I Found This Resource Pertaining To This Problem: https://community.developer.authorize.net/t5/News-and-Announcements/SSL-Certificate-Updates-for-Legacy-SDKs/td-p/62935
SSL Certificate Updates for Legacy SDKs 05-02-2018 04:10 PM Beginning April 29, 2018, Authorize.Net began updating its SSL certificates on the secure.authorize.net and api.authorize.net endpoints. Legacy SDKs may point to these endpoints and therefore require a new cert.pem file located in Authorize.Net’s GitHub repository. Additionally, if your payment solution pins Authorize.Net’s certificates or related information, please update accordingly. We greatly apologize for any inconvenience this may have caused. Here Is Where They Keep The Authorize.net Certs: https://github.com/AuthorizeNet/sdk-php/blob/master/lib/ssl/cert.pem
Keep Up The Great Work @John W And Thank You For The Help And Solution!!!
-
John W got a reaction from Bobber in updated certificates
That is the exact cet code I'm using in ext/modules/authorizenet/authorize.net.crt @Bobber IT is super important that you make sure you save it without BOM (byte order marker) or it may fail.
It's been changed again but I'm using that and it's recent. They have a ton of certs now in there.
I'm uploading a copy of my crt file in case it doesn't work by copying it.
authorize.net.crt
-
John W got a reaction from Bobber in updated certificates
Change it to https://secure2.authorize.net/gateway/transact.dll
There are 3 instances as i remember.
-
John W reacted to piernas in Shipping table is now a real table :)
Today I decided I got angry for the last time updating a table rate based module. Afer several tryouts to change the shipping rates just to see I had a typo in the values string -damned colons- and having to manually calculate the net prices for each row from the gross that came from the table provided by the courier... I had enough and modified the table rate module to show a real table where you can see what you're doing. Uses some javascript to update net/gross, add or remove rows and do some basic checks.
It can be adapted to any other module that uses the same system.
Note: The net pice is caclulated based on the tax class from the module. It will apply only to the countries in the module's zone and it's not savet to database but calculated on the fly. For this column to work you need to set up the tax rate first, save and enter the module configuration again.
Here is the file: https://apps.oscommerce.com/wyYLv&sgipping-table-module-update
@burt you can replace the stock one if you consider it fits the community project.
-
John W reacted to sinopia in PayPal App v5.000
I think I might found the issue. At OSCOM_PayPal.php if "Verify SSL" option is true it does this:
if ( (substr($server['host'], -10) == 'paypal.com') && file_exists(DIR_FS_CATALOG . 'ext/modules/payment/paypal/paypal.com.crt') ) {
curl_setopt($curl, CURLOPT_CAINFO, DIR_FS_CATALOG . 'ext/modules/payment/paypal/paypal.com.crt');
} elseif ( file_exists(DIR_FS_CATALOG . 'includes/cacert.pem') ) {
curl_setopt($curl, CURLOPT_CAINFO, DIR_FS_CATALOG . 'includes/cacert.pem');
}
The problem resides at ext/modules/payment/paypal/paypal.com.crt and copied from mine cacert.pem (which is a updated version). Make sure you get from here http://curl.haxx.se/ca/cacert.pem or this one from paypal -> https://raw.githubusercontent.com/paypal/TLS-update/master/php/cacert.pem
-
John W got a reaction from burt in ULTIMATE Seo Urls 5 - by FWR Media
Interesting fact I heard on Jeopardy a few months ago. Snake oil never contained any snake oil.
-
John W got a reaction from Psytanium in ULTIMATE Seo Urls 5 - by FWR Media
@Psytanium If this is your live site, you really shouldn't output errors to the screen. Send them to a file that you can check.
-
John W reacted to burt in ULTIMATE Seo Urls 5 - by FWR Media
It is telling you that sometimes, for unknown reason...
$text_array is not an array. A foreach therefore...cannot work.
Try this;
foreach ( (array)$text_array as $key => $text ) { Which forces $text_array as an array.
-
John W got a reaction from Dan Cole in Authorize.net Advanced Integration Method (AIM) TLS 1.2 ?
I made that change a long time ago on another old A.net module I used and then moved it over when I started using this one. I also set it to come back to the confirmation page since that is where the CC data is entered. Seemed to make more sense to me. I mentioned it before in some other threads, but no one responded. There are a bunch of different errors that can be sent back and these are more exact.
-
John W reacted to Dan Cole in Help with ot_shipping due the free shipping
Some people wear shorts year round up here too...
I think our dogs are a bit smarter though...