CubeCart Bot Posted February 6, 2018 Share Posted February 6, 2018 Name: Print Order Form Price: Free Category: Payment Gateways Homepage: https://www.cubecart.com/extensions/payment-gateways/print-order-form Quote Link to comment Share on other sites More sharing options...
filitel Posted May 1, 2018 Share Posted May 1, 2018 (edited) print order form not working on cubecart 6.2.0 Edited May 1, 2018 by filitel Quote Link to comment Share on other sites More sharing options...
filitel Posted May 2, 2018 Share Posted May 2, 2018 can some one help me ? thsnks Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 2, 2018 Share Posted May 2, 2018 I can't help, but I just tested mine and it worked. I tried from within Admin on an old order and also logged in as a customer for the Order History. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 2, 2018 Share Posted May 2, 2018 We would want to know at what point in the checkout sequence the POF is failing for you. I just checked it. I am able to choose it from the list of payment methods, and I eventually get a web page that I can print out. Quote Link to comment Share on other sites More sharing options...
filitel Posted May 2, 2018 Share Posted May 2, 2018 first sorry for my bad english, iam from portugal it fails in the last part, i choose print order form , secure checkout, and instead of showing me the form to print, lt show a web pag in blank thanks Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 2, 2018 Share Posted May 2, 2018 We would ask that you create PHP's error_log. When you next try to use the POF and get a blank page, find the error_log file in your site's folder and examine the contents. Quote Link to comment Share on other sites More sharing options...
filitel Posted May 2, 2018 Share Posted May 2, 2018 it does not creat an error on file, iam using php 7.0, is that making a diferense ? perhaps something is not active on php version Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 2, 2018 Share Posted May 2, 2018 Please view admin, Transaction Logs. Determine if the order you just made is listed here. If so, then the POF is getting up to a certain point and we can explore after that point. I see nothing that would cause this to fail under PHP 7. Quote Link to comment Share on other sites More sharing options...
filitel Posted May 3, 2018 Share Posted May 3, 2018 i dont have any transaction logs , my website fail the upgrade to cubercart 6.2.0, so i instal all new... it does not complete de order. iam going to install cubecart 6.1.15 and see if it works thansks for your time Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 3, 2018 Share Posted May 3, 2018 The POF module should have logged this transaction. So, we know that the module is failing at a point before where it is coded to log the order. Quote Link to comment Share on other sites More sharing options...
filitel Posted May 3, 2018 Share Posted May 3, 2018 its working wid new install , cubecart 6.2 i did something wrong, thanks Quote Link to comment Share on other sites More sharing options...
danielstaeger Posted July 27, 2018 Share Posted July 27, 2018 works perfect with 6.2.1. Quote Link to comment Share on other sites More sharing options...
Bad Wolf Posted April 28, 2020 Share Posted April 28, 2020 OK i'm an idiot. Where does this get uploaded to? Please don't say, "Your site". Which directory please :) Not much in the documentation tab or any "read me" files in the extracted zip. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 28, 2020 Share Posted April 28, 2020 Two ways: FTP the folder that was extracted from the ZIP file to CubeCart's /modules/gateways/ folder, or obtain the lightning bolt token and enter it in CubeCart's admin, Manage Extensions page. It will automagically appear in the Extensions list. 1 Quote Link to comment Share on other sites More sharing options...
Bad Wolf Posted April 28, 2020 Share Posted April 28, 2020 3 hours ago, bsmither said: Two ways: FTP the folder that was extracted from the ZIP file to CubeCart's /modules/gateways/ folder, or obtain the lightning bolt token and enter it in CubeCart's admin, Manage Extensions page. It will automagically appear in the Extensions list. Thank you sir! Quote Link to comment Share on other sites More sharing options...
megafonico Posted October 27, 2021 Share Posted October 27, 2021 The description of this extension clearly states Quote NOTE: This payment gateway will not log sales data to Google eCommerce Analytics as payments can not be digitally verified. and yet... my question is: Is there a way to have this extension log this as a conversion for Google Analytics? Even is the payment is not digitally verified, for many merchants it would be an important metric if anything to verify that a customer completed an online checkout. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 27, 2021 Share Posted October 27, 2021 I see it this way, and I could be wrong: The GA code is actually javascript that gets executed on the customer's browser. That javascript accompanies most page views, but I think the most important one is Cubecart's "Thank you, your order is complete" page. That is, I do not recall CubeCart, or any of its gateway modules, informing Google directly about transaction status. (If there is a gateway module that does this, I would like to know.) Thus, indirectly, when CubeCart moves an order to Processing, the "Thank you" page gets sent and the customer's browser runs the GA code. The POF module does not have CubeCart move the order past Pending (as payment has not been made). And, when the admin does change the order's status to Processing, there is no corresponding code to inform Google about the change in the order's transaction status. I think a separate plugin/snippet would need to be written to send a message to Google should it be the case that the admin is required to move the order beyond pending. "it would be an important metric if anything to verify that a customer completed an online checkout." That's the thing, a POF transaction is not where a customer can complete an online checkout. Quote Link to comment Share on other sites More sharing options...
megafonico Posted October 28, 2021 Share Posted October 28, 2021 18 hours ago, bsmither said: The GA code is actually javascript that gets executed on the customer's browser Yes, but the page that is displayed by the POF module lacks the code. Looking for some way to edit the module and put the code there. Quote That's the thing, a POF transaction is not where a customer can complete an online checkout. For the purpose of Google Analytics, a completion (or conversion as they call it) can be whatever you define it to be; a person subscribing to your newsletter, a person looking at a specific video or page or (most commonly, of course) a sale been completed. For the purpose of our store, its our most important metric when they place the order online (even if it is not completely paid of) as in our case it means a customer has booked a rental with us. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 28, 2021 Share Posted October 28, 2021 I understand. Be back soon. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 28, 2021 Share Posted October 28, 2021 Please try these edits: In the POF gateway.class.php, find near line 178: if ($this->_module['bank']) { $GLOBALS['smarty']->assign('BANK', true); } Add after: $ga_id = $GLOBALS['config']->get('config', 'google_analytics'); $ga_id = trim($ga_id); $GLOBALS['smarty']->assign('ANALYTICS', !empty($ga_id) ? $ga_id : false); Then in POF /skin/print.tpl, find near line 144: <div id="thanks">{$LANG.common.thanks}</div> <div id="footer"> {$LANG.gateway.postal_address}: {$STORE.address}, {$STORE.county}, {$STORE.postcode} {$STORE.country}<br /> {$STORE.name}, {$STORE.url} </div> </div> Add after: {if isset($smarty.cookies.accept_cookies) && $smarty.cookies.accept_cookies=='true' && $ANALYTICS && $SUM} <script> {literal}(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{/literal}{$ANALYTICS}{literal}', 'auto'); ga('require', 'ecommerce'); ga('ecommerce:addTransaction', { 'id': '{/literal}{$SUM.cart_order_id}{literal}', 'affiliation': '{/literal}{$SUM.store_name}{literal}', 'revenue': '{/literal}{$SUM.total}{literal}', 'shipping': '{/literal}{$SUM.shipping}{literal}', 'tax': '{/literal}{$SUM.total_tax}{literal}' }); {/literal}{foreach from=$ITEMS item=item}{literal}ga('ecommerce:addItem', { 'id': '{/literal}{$SUM.cart_order_id}{literal}', 'name': '{/literal}{$item.name}{literal}', 'sku': '{/literal}{$item.product_code}{literal}', 'price': '{/literal}{$item.price}{literal}', 'quantity': '{/literal}{$item.quantity}{literal}' });{/literal}{/foreach}{literal} ga('ecommerce:send');{/literal} </script> {/if} Please understand, there is no means for me to test if this actually works. But the code is present in the page that appears. Also note that the customer must have a cookie named 'accept_cookies' with a value of true. Quote Link to comment Share on other sites More sharing options...
megafonico Posted October 29, 2021 Share Posted October 29, 2021 I will give that a try and report on my progress here. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 30, 2021 Share Posted October 30, 2021 I would say it is not the POF module contributing to this. Rather, the 'verification code' is CubeCart complaining that the reCaptcha gadget is not agreeing with the solution provided. It might not be displaying when it should be, or the customer worked out the puzzle, but the solution is not correct. Please verify that, in admin, Store Settings, Features tab, Bot Protection section, the reCaptcha is enabled as desired. Then, assure yourself that your browser is not blocking the javascript needed to fetch the reCaptcha gadget from Google. 1 Quote Link to comment Share on other sites More sharing options...
DelrosarioO Posted March 16, 2022 Share Posted March 16, 2022 That's great. I was impressed by your writing. I am happy to see such a topic. Quote Link to comment Share on other sites More sharing options...
kaastrup Posted November 23, 2022 Share Posted November 23, 2022 My hosting partner is updating the environment to PHP 8.xx Anyone knows if this plugin is working on PHP 8 ???? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.