Jump to content

matthell

Members
  • Content count

    26
  • Joined

  • Last visited

Profile Information

  • Real Name
    Matthew Helliwell
  1. matthell

    [contribution] Simple Template System (sts)

    After a bit of help relating to $headcontent and headertags please. Searched everywhere I can think of but nothings coming up. We've got AddThis on our product_info pages, but to work correctly with Facebook we need to add metatags into the header for the description and default thumbnail. Without STS it would be a simple case of adding this into the <head> section of /product_info_php <link rel="image_src" href="<?php echo DIR_WS_IMAGES . $product_info['products_image']; ?>" /> But as I understand it, anything in the <head> tag gets wiped and overwritten by the contents of the product_info.php.html template. A bit more snooping led me to $this->template['headcontent'] = $this->template['headcontent'].$this->template['headertags']. "\n"; ; in classes/sts.php. My idea was if I could insert the data from product_info.php into ['headertags'] it would carry it across and appear in the rendered header. I got through /includes/modules/sts_inc/headertags.php into /includes/functions/header_tags.php before finding a wall of code and giving up. Is there a simple way to pass vars from one file to the other?
  2. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Hi Glen Thanks for your help ... The mirrored site method is the only way to get SSL working on Fasthosts (and this is what they recommend), I am now looking at changing hosts. The only way I can get it to work currently is by disabling SSL but this is obviously not the correct way to do it!
  3. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Hi Glen I have figured out what the problem is. I dont think I have been making my setup clear. I have 2 versions of my site which are exact copies. 1 on my main site, and an exact copy on a secured shared server. A person browsing items in my site stays on the normal www.xxx.com but as soon as they want to checkout or log in they are taken to https://www.securedsite.com/xxx/ which is on a completly different shared server and is an exact copy of the normal site. so when I put in the file system path for the main site it says it cant find it because by the time someone wants to pay for something they have switched onto the secured server. Changing the cert file path in admin to the secured server location works and is confirmed with wpp_diagnostics.php However trying to run the module with this brings up the "PayPal WPP installation incomplete!" This is because it is again looking for items in the www.xxx.com file system path. Changing the Set DIR_FS_CATALOG in configure.php in the secure version of the site to the secure file system path EG '/secured/catalog/etc/' sorts this out and I am able to go through the checkout normally and can put my card details in and process the payment up until the very last page where I have entered the verified by visa code. When i enter the visa code i get forced back to the chekout_shipping page and the following error is present; "unable to use client certificate (no key found or wrong pass phrase?) (Error No. 58)" Clicking on the 'Pay with Paypal' button also produces this same error. I'm thinking that the module prefers everything to stay on the same server and because of my multi server setup it is confusing everything! Sorry this is getting epic now lol! Thanks.
  4. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Hi Glen I have done the following and I'm getting 'Cannot find API cert' error. The path is correct but if im running the command to look for the api cert from the secure folder (which is on a different server) I'm thinking that I would need to put the full web server address into the api cert location box? And which server should it be looking for the api cert on the secure server or the standard server? I ran wpp_diagnostics and the following erros came up: Does cURL work? (Simple HTTPS test) No SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (Error No. 60) API Certificate installed? No API Certificate directory protected? No This is a shared SSL server so I do not have access to the SSL certificate nor did I install it. Is there a way to configure cURL to accept any server certificate as this what the problem seems to be. Thanks
  5. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Glen Have done this and I am now back to the following errors: When I put the API Certificate address in on the config as /home/fhlinux134/x/XXX.com/user/htdocs/catalog/etc/etc I get the cant find API Certificate error I change it to /sslroot/XXX/catalog/etc/etc (my secure server address) and it manages to find it but then I get this: PayPal WPP installation incomplete! There should be XML files located in /XXXXXX/catalog/includes/wpp_xml/ ! (setExpressCheckout.xml) I have noticed that this is pointing to the wrong folder and isnt the same as the file structure in the download. - setExpressCheckout.xml is in the folder catalog/includes/paypal_wpp/xml/ I have tried copying the xml folder into the includes folder (on both secure and standard) and renaming it wpp_xml but it still comes up with the same error. Thanks for your help with this so far much appreciated!
  6. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    OK when the proxy is blank i get the old error coming up. Could this be something to do with configure.php in includes in the secure section of the website? Code below: define('HTTP_SERVER', 'http://www.XXX.com'); define('HTTPS_SERVER', 'https://vault1.secured-url.com/XXX'); // secure server define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.XXX.com'); define('HTTPS_COOKIE_DOMAIN', 'https://vault1.secured-url.com/XXX'); // secure server define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/sslroot/XXX/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I have tried changing the define('DIR_FS_CATALOG', '/sslroot/XXX/catalog/'); code to the standard website but I get an error
  7. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Hi Glen Just got off the phone to Fasthosts they claim that my proxy address is my secure webspace address .... is this correct or are they making it up? What should my proxy address look like? Thanks
  8. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    OK this has now been fixed - it was an issue with the configure.php in includes The problem I am getting now is: 'unable to use client certificate (no key found or wrong pass phrase?) (Error No. 58)' I am able to go all the way through with the transaction including putting in 3d secure information then when i have entered the 3d secure info this error comes up. Also clicking on the Pay by Paypal button produces this same error message. Thanks
  9. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    OK So it all works in my development folder but when I implement it onto the website which uses totally different webspace for the SSL it all comes undone! First I was getting the 'cannot find cert file' - fixed this in the admin by pointing the module to the secure webspace instead of the normal webspace (it didnt like me pointing it at the absolute path in the standard webspace) Now when I click on the Paypal Express button from the secure webspace I get the following: PayPal WPP installation incomplete! There should be XML files located in /XXXXXX/catalog/includes/wpp_xml/ ! (setExpressCheckout.xml) Its looking for files in the standard webspace instead of the secure webspace. Is there a way to force the module to look for the files on my secure webspace instead of on the standard one? Thanks in advance!
  10. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Glen Thanks Very Much! That sorted it out. I was getting the following error at the top of checkout_confirmation.php Warning: Missing argument 4 for cc_validation::validate(), called in XXXXXX/catalog/includes/modules/payment/paypal_wpp.php on line 199 and defined in XXXXXX/catalog/includes/classes/cc_validation.php on line 16 If anyone else has been getting this its a simple fix change line 199 in paypal_wpp.php from $result = $cc_validation->validate($_POST['paypalwpp_cc_number'], $_POST['paypalwpp_cc_expires_month'], $_POST['paypalwpp_cc_expires_year']); to the following: $result = $cc_validation->validate($_POST['paypalwpp_cc_number'], $_POST['paypalwpp_cc_expires_month'], $_POST['paypalwpp_cc_expires_year'], $_POST['paypalwpp_cc_checkcode']); It seems that it wanted to be passed the CCV2 code in this section but since it wasnt it threw up the error as it was only getting 3 of the 4 variables it wanted. Or I might be talking garbage ..... lol Hope this helps someone out!
  11. matthell

    PayPal WPP Direct Payments & Express Checkout Support

    Hi Just installed this module but getting the following warnings at the top of Admin Modules Payment Page Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in XXXXXXXX/catalog/includes/modules/payment/paypal_wpp.php on line 1589 Same on line 2166 and same on line 2168 These same warnings come up on the Payment page as well when I try to go through payment Any ideas what is causing this? Also when I click on the Paypal Express button in the store it says that it cannot find the cert file when it is there in the includes/paypal_wpp/cert/ folder. Any help much appreciated and thank you in advance!
  12. matthell

    3D Secure

    Hi Mark Please see this thread ... http://forums.oscommerce.com/topic/351323-paypal-pro-uk-with-3d-secure/page__st__20
  13. matthell

    Paypal Pro UK with 3D Secure

    Its not that we even need hold my hand instructions though as you say 'Go Compare' is simply unnacceptable for a company of Paypals size. Its that the module they have released is not communicating with Cardinal correctly. At least we are not alone - its the same story with Zen Cart. After the cut off Maestro Payments will cease to process through the Paypal module - hopefully everything else wont melt down as well! My look into another payment processor led me to Nochex but they don't do rolling reserves ... oh no they take the first £1000 (or more) that you make through them and keep it as a reserve. Plus points though no monthly fee and lower transaction rate than Paypal but another neg is that there is no virtual terminal and you are limited as to how much your customers can put through in 1 transaction. We might set up with them for Maestro Payments since there is no monthly but then we will loose our first £1000 of sales. This might be a work around for some of you out there as well. Depends on how your finances are flowing and if you can take the £1000 hit.
  14. matthell

    Paypal Pro UK with 3D Secure

    Hi Nile This mod 'should' work with 2.2 - MS2 but requires a lot of manual compare coding in order to integrate especially if you have modified your site. I say 'should' work as I'm not sure anyone has got it to work properly yet! We are all awaiting a response from Paypal / Cardinal on how to get this module up and running so welcome to the party!
  15. matthell

    Paypal Pro UK with 3D Secure

    You would have thought Paypal would be jumping at the chance to help put more payments through their system. We have taken the decision to go with another Payment processor because of the lack of support from Paypal.
×