Actually, I'll take that as a change-request to sort by company, firstname, lastname (with the address-book-id as a tie-breaker). Will that work for you @linuxguy2?
Printable View
Actually, I'll take that as a change-request to sort by company, firstname, lastname (with the address-book-id as a tie-breaker). Will that work for you @linuxguy2?
@linuxguy2, here's the GitHub issue I've created to track that change: https://github.com/lat9/one_page_checkout/issues/196
OPC, v2.1.0-beta9 is now available for pre-release testing: https://github.com/lat9/one_page_che...g/v2.1.0-beta9
I'm feeling (finally) pretty good about the stability, but will wait a couple of days before marking it as the v2.1.0-final version ... just in case there are more gremlins lurking in the code.
NOT a OPC edit
"SORT ADDRESS BOOK BY COMPANY"
Core edits...
/includes/modules/pages/address_book/header_php.php
That one was easy enough around line 28:
Previous edit to add company to address around line 40:Code:ORDER BY company, firstname, lastname";
Code:// Add company to address array
'company'=>$addresses->fields['company'],
I installed this on a testing server just to see how it actually worked. I think its a great module.
But as for the guest checkout The "save button" really hurts the whole aspect of making things easier.
Has anyone figured out a way to remove the save button but still make the process guest checkout function.
@chadlly2003, There's an open issue that requests that change: https://github.com/lat9/one_page_checkout/issues/163
I've just submitted v2.1.0 of One-Page Checkout to the Zen Cart plugins for review; once available, it can be downloaded from: https://www.zen-cart.com/downloads.php?do=file&id=2095
This release contains changes associated with the following GitHub issues and the plugin's installation instructions have changed significantly. See this link for additional information.
#150: Disallow Gift Certificate purchase by guests.
#154: Guest/Registered Accounts, no shipping/payment blocks displayed until address is entered.
#160: startGuestOnePageCheckout needs to return its status.
#164: Correct conditional statement, reported as PHP Warning.
#165: zc156 interoperability, correct PHP warning if ot_gv isn't active.
#166: Restructure installation/upgrade instructions for zc156+.
#167: Remove redundant language definitions.
#168: Correct conditional looking for a value rather than a function-return.
#169: Always observe for temporary-address-related notifications.
#170: The Shipping, same as billing setting gets "out of sync" with the associated addresses.
#171: Don't display the address-selection drop-down if the customer has only one address recorded.
#173: Correct undefined variable after guest-checkout on the checkout_success page.
#174: Correct undefined variables on checkout_one_confirmation page during guest-checkout.
#175: Use jQuery show()/hide() instead of Zen Cart-specific classes.
#176: Correct PHP Notice if shipping isn't taxed or the session's shipping is not recorded.
#177: Include date in OPC logfile names to more easily separate processing.
#178: Use jscript_framework.php from template_default.
#180: PayPal Express Checkout, shortcut button processing will now use the "traditional" checkout.
#182: Correct various, other, PHP Notice logs.
#185: Guest/Registered Accounts, temporary addresses no longer pre-fill the zipcode.
#186: Correct HTML comments in tpl_modules_opc_customer_info.php.
#187: Correct temporary-address integration with PayPal Express Checkout.
#188: Correct state display when State - Always display as pulldown is enabled.
#190, #191: Correct "Free Shipping on orders over xx" handling.
#192: Session variables' clean-up, when OPC enablement is toggled on and off.
#194: Handle session timeout indications on all AJAX requests.
#195: Ensure the processing ceases when an unrecoverable error is detected.
#196: Apply additional ordering to address drop-down selections.
LAt9 I did download the latest version. The issue for me is that the guest checkout is not a true OPC.
When you have a customer hit "save" or "next" it will confuse the customer. Plus it seems like two unnecessary extra steps.
Also when you click save or next it almost like refreshes the page and starts back up at the top.
This module has potential but for guest checkout it does not seem like the best solution.
I'm looking to combine the guest customer-info and their billing address' entry into a single step, noting that the base Zen Cart checkout processing requires an address to determine which shipping, payment and order-total modules to present as part of the checkout.
That change will still require at least one extra step (saving that contact/address information) during a guest's checkout.
That might actually work if you combine them. This way you only have to hit save or next once. Please post when you complete that. I would love to test it out.
This is only for constructive criticism
In my opinion customers have a hard time figuring out the most basic things on a website. Especially in a checkout it should be as easy as possible without having a 'save' or 'next' option.
v2.1.0 of One Page Checkout is now available for download from the Zen Cart Plugins section.
I am testing on the latest version of OPC.
I tested on guest checkout using test mode of Authorize.net.
However, one thing I noticed... if I create account after I placed order as "guest."
The newsletter's setting on those new users from OPC checkout is automatically set to HTML-only.
I wonder if this is intentional and whether it is based on OPC settings or the core of Zen Cart settings by default?
Also, I do agree on above comments by chadlly2003 that the OPC could do better if there is no extra steps on pressing "Next" and such.
I do feel it is almost no different using OPC or default Zen Cart checkout as you still have to go through "sections" (in OPC) instead of "pages" (in Zen Cart layout) during checkout process.
I do think the OPC should be simply true one-page and customers are simply just input their information and only button they need to click once they filled in is "Order" like some of big eCommerce websites are doing (customers should NOT have to "Save" or "Next" to continue...) If it has to be done and manage with core files, then it may needed to address with next Zen Cart major update (like in 1.5.7 or ... 2.0?)
You're right; I neglected to provide the TEXT vs HTML email choice when a guest is given the opportunity to create an account.
I've created a GitHub issue to track the change: https://github.com/lat9/one_page_checkout/issues/198
Sorry, but our expedited checkout process cannot be used. Click here to use our alternate checkout process.
Attachment 18431
Welcome to the Zen Cart community. Since you sent a PM with a link to the site, I was able to see the following messages in the console-log when I started the guest-checkout process (by pressing the F12 key, then the Console tab):
... which implies to me that the bootstrap template that you are using hasn't been correctly merged with the One-Page Checkout version that you're using. To continue helping, I'll need to know where the bootstrap template came from and its version, your Zen Cart version and the version of OPC that you are using.Code:SyntaxError: unexpected token: identifier[Learn More] index.php:476:6682
jQuery.Deferred exception: displayShippingBlock is not defined @https://www.scall.xyz/includes/modules/pages/checkout_one/jquery.checkout_one.js?1557103390:162:9
l@https://www.scall.xyz/includes/templates/bootstrap/jscript/jquery.min.js:2:29373
a/</c<@https://www.scall.xyz/includes/templates/bootstrap/jscript/jquery.min.js:2:29677
ReferenceError: displayShippingBlock is not defined[ undefined jquery.min.js:2:30920
This mod is such a great addition to any store. Thanks, Cindy, for your support of the Zen Cart community.
Zen Cart version (1.5.5f)
OPC version (2.1.0 (2019-04-07))
template version (ZCA-Bootstrap-Template-master-106)
Template add-on plugin:fotorama,mmenu
Thank you for viewing.
#############
Another small problem, the address information saved by Google Chrome will cause the "opc" form to be misjudged. which is a demo video link.
Sorry, my English is not good.
This is odd and I'm not sure of the cause.
I have this installed on a site recently upgraded to 1.5.6a. OPC is version 2.1.0-beta6 and we're using Avonlee Contempo template.
After adding an item to my cart and selecting guest check-out if I return to the Shopping Cart page, the address drop-down is prefilled with addresses: http://prntscr.com/nlnrg9
These appear to be these 14 addresses: http://prntscr.com/nlnsam
Is this an OPC bug, installation error, Zen Cart or hosting configuration issue?
@jeking, v2.1.0 (non-beta) was released mid-last month, with a significant number of changes since v2.1.0-beta6. I'll need to look, though, as the guest-checkout "customer" record should have only two addresses defined.
What "guest" checkout module does this module work with?
Great! I will have to check this module out.
Hi Lat,
Can you direct me to the fix for change shipping address doesn't save. I searched through GitHib and could not locate it
All conditionsQuote:
Under which conditions does the shipping address not save?
2.0.5Quote:
What version of OPC,
1.5.5FQuote:
what version of Zen Cart,
BootstrapQuote:
what custom-template is in use?
BothQuote:
Is this guest checkout or a logged in customer?
@mprough, my best guess is that the Bootstrap template (which includes template-override versions of OPC's templates) hasn't been "keeping up". I suggest that you do a file-comparison of that template's 'templates' sub-directory to those provided in the base OPC distribution (present in the template_default template).
I was reading back in June of last year where you reported this issue here in the forum and fixed it in a new version. That's why I was asking about a fix. It would save money for the shop owner rather than troubleshooting it =)
Hello,
I have a customer that wanted to make an order via an android phone and is getting continuously the error message as defined in the language files for : ERROR_NOJS_ORDER_CHANGED . I have all details available, like the android version etc. Also i have the logfile of the order going in loop.
I am using Zen Cart 1.5.5e with one page checkout version 1.4.0 (2017-08-12) .
How can i deliver you the log files?
I had the same issue earlier this week also with another customer. I notice that 2 customers that reported the issue are both French customers, so using a lot of accents in the words. I have other orders arriving without issues also.
And when i log in to their account via my pc i also don't get the loop.
Best regards
Bart
Bart, the current OPC version is v2.1.0, released 2019-04-07. There have been many, many changes over the past two years to the plugin. I suggest that you create a test site for the store (if you haven't already) and update your OPC installation to use the most recent; it's quite likely that whatever issue you're having has been corrected.
Currently on v1.5.5f and OPC v2.0.4 but plan to upgrade to v1.5.6b and OPC v2.1.0. Other major mod updates will include SBA and CEON URI Mapping, Initial investigations look to it being a daunting task.
I've read the install/upgrade readme instructions for OPC. Given the myriad of changes between v2.0.4 and v2.1.0 I wonder whether it would be easiest to first upgrade ZC to v1.5.6b (once released) and then upgrade OPC or vice-versa?
Actually, just re-read the install/upgrade instructions
'The goal of these instructions is to lay a path so that you have a smooth transition when you upgrade your store to Zen Cart 1.5.6b or later.'
Seems to answer my query.
Fresh install 1.5.5B - OPC 2.1.01 - PHP 7.1
When an order is submitted, no gif is displayed to show it processing... only shows Please wait ...
I tried a new file, I even tried hard coding the language function and the gif will not display.
Any ideas?
Was the file /includes/templates/template_default/images/confirmation_one_loading.gif uploaded?
Yes, from the confirmation page while processing I can right click and view the image which is successful
I mean while processing, when the image is supposed to be displaying I can right click - view image and the image is there. No logs and nothing in debug
Have you made any customizations to One-Page Checkout's /includes/templates/YOUR_TEMPLATE/css/checkout_one_confirmation.css? That's where the display positioning happens.
What payment-method and template are you using?
No, but it doesn't display at all... don't think it's positioned wrongQuote:
Have you made any customizations to One-Page Checkout's /includes/templates/YOUR_TEMPLATE/css/checkout_one_confirmation.css? That's where the display positioning happens.
COD & MO with store pickupQuote:
What payment-method and template are you using?
ZCA Bootstrap template Version: 2.0.0a
You'll need to do a file-compare between One-Page Checkout's default templates (present in the template_default directory) and those provided by the BootStrap template; I'm guessing that the template's override of OPC's default is where the issue resides.
Ok... So I did that already for any affected files that seemed logical. Now I place all of the template_default/templates files with OPC in to the bootstrap directory and still no luck
Does the payment method you're using require that the confirmation page be displayed before the order is submitted?
No, I just have MO & COD turned on
@mprough, I'm out of ideas.
Well let me ask you this, If I were to manually add it for guest and account checkout, where would it go?
The loading gif for processing screen
See post #1145.
Was the file /includes/templates/template_default/images/confirmation_one_loading.gif uploaded?
Yes..... and I am able to view the image at website.com//includes/templates/template_default/images/confirmation_one_loading.gif
The ZCA Bootstrap removed the template override files in Version: 2.0.0a
Clear your cache
When you right click the loading image? what image path is returned?
The loading image does not display, but when I right click on the words Please Wait ... I am returned the path for the image which is not displaying. I have the following error in Chrome console and the image loads in Chrome, but not in Edge, phones, nor Firefox. (just discovered that)
Attachment 18474
Originally
https://domain.com/includes/template...ne_loading.gif
Now, since I copied all of the file from OPC install template_default to the bootstrap directory
https://domain.com/includes/template...ne_loading.gif
I cleared my cache, still nothing. The question I was posing most recently is where to manually (with a simple img tag) hard code the gif, but I don't think Lat understood.
Well the original image is called from
includes/templates/template_default/templates/tpl_checkout_one_default.php
PHP Code:
<div id="checkoutOneLoading" style="display: none;"><?php echo zen_image($template->get_template_dir(CHECKOUT_ONE_LOADING, DIR_WS_TEMPLATE, $current_page_base ,'images') . '/' . CHECKOUT_ONE_LOADING, CHECKOUT_ONE_LOADING_ALT); ?></div>
no need for the inline style "display:none"
this is also set in checkout_one.css
#checkoutOneLoading { position: relative; height: 95vh; top: 50%; left: 50%; display: none; }
Part 1
Hi, I am new to posting and trying to get all my important ducks in a row so that someone will understand what my problem is and possible be able to help with it.
I am trying to follow the "posting guides" as closely as possible. I am a SAHM who has a hobby website store since 2005(mostly using Zen Cart). I really don't know coding but what I do know I did learn from this fourm. Any Questions I had after finding the correct terms to search for, I have always found the answer here. Now to my issue...
I have a fully functional Live website that is ZenCart version 1.5.6a using the One Page Checkout plugin v. 2.0.5. Php version 7.2.16 and Mysqli version 5.6.43.
Working Plugins besides the One Page Checkout are...
Wishlist
SBA
CEON Uri Mapping
Block Email Manager
Download Already Purchased
Google Recaptcha
Shopping Cart Sidebox
Quantity Discounts
Login as Customer
Ip Blocker
Admin Page Keys
Admin Password Change Display
Display Categories in Separate Boxes
(maybe edit orders?)
I use Paypal Express and Freecharger with the USPS Shipping mod.
Live website is www.goodiesbygail.com It Works great! The temp address for the update is www.goodiesbygail.com/NewStorey/index.php It is in maintenance mode.
Now I have a temp folder within my live store that I have installed a copy of said website(maintenance mode) in, to update to the 1.5.6b version of Zen Cart.
With all the same settings above except now the 1.5.6b version. I am trying to get One Page Checkout 2.1.0 or (Master from Github) to work. I thought I read these were to be the versions compatible with ZC v1.5.6b and PHP 7. Did I read wrong or miss something?
Everything is still working fine but the Once Page Checkout. I can get to the checkout page and it looks good will need a few css tweeks later on but when the CONFIRM THE ORDER button is clicked on the page just loops back on itself. So it is still the Checkout page. Does not do anything else. Not really any error logs but I turned on the debug in the OPC mod I get these, that I have not found answers to yet and i have been looking for a few days now which triggered me to finally post something. Hope I have put the information in the correct formats for the forum.
Error #1
Code:[04-Jun-2019 18:37:29 America/Chicago] PHP Notice: Undefined index: country_id in /home/goodiesbygail/public_html/NewStorey/includes/modules/order_total/ot_shipping.php on line 29
[04-Jun-2019 18:37:29 America/Chicago] PHP Notice: Undefined variable: ot_class in /home/goodiesbygail/public_html/NewStorey/includes/templates/magic/templates/tpl_modules_opc_credit_selections.php on line 43
I am getting a message my post is too long so I may have to post in multiples. Hope this is ok and all the information can be put together.
Sincerely,
Gail
Part 2
Error #2 was so long I couldn't post it. file attachment is not working for me. Keep saying invalid but it is in html format.
oh well here is the
Rest of Post...
I have also seen the posts about the F12 Console logs. Here is what it says for me
Microsoft Edge Browser
Chrome BrowserCode:HTML1300: Navigation occurred.
index.php (1,1)
HTML1524: Invalid HTML5 DOCTYPE. Consider using the interoperable form "!DOCTYPE html>".
index.php (2,1)
[object Object]: {siteHost: "www.swagbucks.com"}
PAGEEXT FINISHED: browserInject=[object Object]
SBPageExtension.js (2412,1)
setFormSubmitButton, payment-module: freecharger
jquery.checkout_one.js (54,13)
Showing "confirm"
jquery.checkout_one.js (54,13)
Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js (54,13)
jQuery version: 3.3.1
jquery.checkout_one.js (54,13)
SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.
index.php (1,1)
submitFunction, 2 arguments: 0, 0,
jquery.checkout_one.js (54,13)
Current order total: 0.00, text: $0.00
jquery.checkout_one.js (54,13)
Order total is 0, setting submitter
jquery.checkout_one.js (54,13)
submitFunction, on exit submitter=1
jquery.checkout_one.js (54,13)
Setting orderConfirmed (1), submitter (1)
jquery.checkout_one.js (54,13)
Submitting order-creating form
jquery.checkout_one.js (54,13)
Updating shipping method to free_free, processing type: submit
jquery.checkout_one.js (54,13)
[object Object]: {cache: false, data: Object, dataType: "json", error: function (jqXHR, textStatus, errorThrown) { zcLog2Console('error: status='+textStatus+', errorThrown = '+errorThrown+', override: '+jqXHR); if (textStatus == 'timeout') { alert( ajaxTimeoutErrorMessage ); } shippingError = true; }, timeout: 5000...}
Shipping method updated, error: false
jquery.checkout_one.js (54,13)
Form submitted, type (submit), orderConfirmed (1)
jquery.checkout_one.js (54,13)
Form checked, passed (true)
jquery.checkout_one.js (54,13)
2 HTML1300: Navigation occurred.
index.php (1,1)
HTML1524: Invalid HTML5 DOCTYPE. Consider using the interoperable form "!DOCTYPE html>".
index.php (2,1)
[object Object]: {siteHost: "www.swagbucks.com"}
PAGEEXT FINISHED: browserInject=[object Object]
SBPageExtension.js (2412,1)
setFormSubmitButton, payment-module: freecharger
jquery.checkout_one.js (54,13)
Showing "confirm"
jquery.checkout_one.js (54,13)
Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js (54,13)
jQuery version: 3.3.1
jquery.checkout_one.js (54,13)
SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.
Firefox BrowserCode:index.php?main_page=checkout_one:27 A parser-blocking, cross site (i.e. different eTLD+1) script, https://code.jquery.com/jquery-3.3.1.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ index.php?main_page=checkout_one:27
VM1691 SBPageExtension.js:3 SBBrowserInjectChrome {siteHost: "www.swagbucks.com"}
VM1691 SBPageExtension.js:2412 PAGEEXT FINISHED: browserInject=[object Object]
VM1667 jquery.checkout_one.js:54 setFormSubmitButton, payment-module: freecharger
VM1667 jquery.checkout_one.js:54 Showing "confirm"
VM1667 jquery.checkout_one.js:54 Setting orderConfirmed (0), submitter (null)
VM1667 jquery.checkout_one.js:54 jQuery version: 3.3.1
The resource https://pagead2.googlesyndication.com/pagead/js/r20190530/r20190131/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
VM1667 jquery.checkout_one.js:54 submitFunction, 2 arguments: 0, 0,
VM1667 jquery.checkout_one.js:54 Current order total: 0.00, text: $0.00
VM1667 jquery.checkout_one.js:54 Order total is 0, setting submitter
VM1667 jquery.checkout_one.js:54 submitFunction, on exit submitter=1
VM1667 jquery.checkout_one.js:54 Setting orderConfirmed (1), submitter (1)
VM1667 jquery.checkout_one.js:54 Submitting order-creating form
VM1667 jquery.checkout_one.js:54 Updating shipping method to free_free, processing type: submit
index.php?main_page=checkout_one:51 {cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000, …}
VM1667 jquery.checkout_one.js:54 Shipping method updated, error: false
VM1667 jquery.checkout_one.js:54 Form submitted, type (submit), orderConfirmed (1)
VM1667 jquery.checkout_one.js:54 Form checked, passed (true)
Navigated to https://www.goodiesbygail.com/NewStorey/index.php?main_page=checkout_one
2index.php?main_page=checkout_one:27 A parser-blocking, cross site (i.e. different eTLD+1) script, https://code.jquery.com/jquery-3.3.1.min.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
(anonymous) @ index.php?main_page=checkout_one:27
SBPageExtension.js:3 SBBrowserInjectChrome {siteHost: "www.swagbucks.com"}
SBPageExtension.js:2412 PAGEEXT FINISHED: browserInject=[object Object]
jquery.checkout_one.js?1554646729:54 setFormSubmitButton, payment-module: freecharger
jquery.checkout_one.js?1554646729:54 Showing "confirm"
jquery.checkout_one.js?1554646729:54 Setting orderConfirmed (0), submitter (null)
jquery.checkout_one.js?1554646729:54 jQuery version: 3.3.1
The resource https://pagead2.googlesyndication.com/pagead/js/r20190530/r20190131/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionall
I hope that I have provided enough information and the correct format for the post. I look forward to any suggestions.Code:setFormSubmitButton, payment-module: freecharger jquery.checkout_one.js:54:21
Showing "confirm" jquery.checkout_one.js:54:21
Setting orderConfirmed (0), submitter (null) jquery.checkout_one.js:54:21
jQuery version: 3.3.1 jquery.checkout_one.js:54:21
submitFunction, 2 arguments: 0, 0, jquery.checkout_one.js:54:21
Current order total: 0.00, text: $0.00 jquery.checkout_one.js:54:21
Order total is 0, setting submitter jquery.checkout_one.js:54:21
submitFunction, on exit submitter=1 jquery.checkout_one.js:54:21
Setting orderConfirmed (1), submitter (1) jquery.checkout_one.js:54:21
Submitting order-creating form jquery.checkout_one.js:54:21
Updating shipping method to free_free, processing type: submit jquery.checkout_one.js:54:21
Object { cache: false, type: "POST", traditional: true, dataType: "json", timeout: 5000, data: {…}, url: "ajax.php?act=ajaxOnePageCheckout&method=updateShipping", error: error()
}
index.php:51:19
Shipping method updated, error: false jquery.checkout_one.js:54:21
Form submitted, type (submit), orderConfirmed (1) jquery.checkout_one.js:54:21
Form checked, passed (true) jquery.checkout_one.js:54:21
Navigated to https://www.goodiesbygail.com/NewStorey/index.php?main_page=checkout_one_confirmation
setFormSubmitButton, payment-module: freecharger jquery.checkout_one.js:54:21
Showing "confirm" jquery.checkout_one.js:54:21
Setting orderConfirmed (0), submitter (null) jquery.checkout_one.js:54:21
jQuery version: 3.3.1
Thank you,
Gail
That second PHP Notice is due to an error in OPC's processing when a store (like yours) doesn't use CSS buttons. I've created a GitHub issue to track that change.
Where did that magic template come from?
Thank you so much for the reply. Well I have been using zen cart for many many years and did have that book to help when I started out.
It was a silly suggestion in the book I think for the custom template name. It just stuck and so that is my custom template from the template defaut template.
Thanks,
Gail
I looked at the GitHub post and did the suggested change. now error #1 says this...
Code:
[05-Jun-2019 10:45:41 America/Chicago] PHP Notice: Undefined index: country_id in /home/goodiesbygail/public_html/NewStorey/includes/modules/order_total/ot_shipping.php on line 29
Also the really long debug message #2 was there too. I have a fake account I use for testing.
Code:<p>2019-06-05 10:45:41 checkout_one: CHECKOUT_ONE_ENTRY, version (2.1.0 (2019-04-07)), Zen Cart version (1.5.6b), template (magic)<br />
2019-06-05 10:45:41 OnePageCheckout: startGuestOnePageCheckout, exit: sendto: , billto: 1236OnePageCheckout::__set_state(array(<br />
'isGuestCheckoutEnabled' => false,<br />
'registeredAccounts' => false,<br />
'guestIsActive' => false,<br />
'isEnabled' => true,<br />
'tempAddressValues' =><br />
array (<br />
'ship' =><br />
array (<br />
'gender' => '',<br />
'company' => '',<br />
'firstname' => '',<br />
'lastname' => '',<br />
'street_address' => '',<br />
'suburb' => '',<br />
'city' => '',<br />
'postcode' => '',<br />
'state' => '',<br />
'country' => 223,<br />
'zone_id' => 0,<br />
'zone_name' => '',<br />
'address_book_id' => 0,<br />
'selected_country' => 223,<br />
'country_has_zones' => true,<br />
'state_field_label' => '',<br />
'show_pulldown_states' => true,<br />
'error' => false,<br />
'error_state_input' => false,<br />
'validated' => false,<br />
),<br />
'bill' =><br />
array (<br />
'gender' => '',<br />
'company' => '',<br />
'firstname' => '',<br />
'lastname' => '',<br />
'street_address' => '',<br />
'suburb' => '',<br />
'city' => '',<br />
'postcode' => '',<br />
'state' => '',<br />
'country' => 223,<br />
'zone_id' => 0,<br />
'zone_name' => '',<br />
'address_book_id' => 0,<br />
'selected_country' => 223,<br />
'country_has_zones' => true,<br />
'state_field_label' => '',<br />
'show_pulldown_states' => true,<br />
'error' => false,<br />
'error_state_input' => false,<br />
'validated' => false,<br />
),<br />
),<br />
'guestCustomerInfo' => NULL,<br />
'guestCustomerId' => 6428,<br />
'tempBilltoAddressBookId' => 6606,<br />
'tempSendtoAddressBookId' => 6607,<br />
'dbStringType' => 'stringIgnoreNull',<br />
'customerInfoOk' => NULL,<br />
'billtoTempAddrOk' => NULL,<br />
'sendtoTempAddrOk' => NULL,<br />
'isVirtualOrder' => true,<br />
'billtoAddressChangeable' => true,<br />
'sendtoAddressChangeable' => true,<br />
))<br />
2019-06-05 10:45:41 OnePageCheckout: isOrderFreeShipping(), address_book_id = -1, order_country = -1, returning ().<br />
2019-06-05 10:45:41 OnePageCheckout: updateOrderAddresses, on entry:order::__set_state(array(<br />
'info' =><br />
array (<br />
'order_status' => '1',<br />
'currency' => 'USD',<br />
'currency_value' => '1.00000000',<br />
'payment_method' => '',<br />
'payment_module_code' => '',<br />
'coupon_code' => '',<br />
'shipping_method' => 'FREE_SHIPPING_TITLE',<br />
'shipping_module_code' => 'free_free',<br />
'shipping_cost' => 0,<br />
'subtotal' => 0,<br />
'shipping_tax' => 0,<br />
'tax' => 0,<br />
'total' => 0,<br />
'tax_groups' =><br />
array (<br />
),<br />
'comments' => '',<br />
'ip_address' => '72.182.165.112 - 72.182.165.112',<br />
),<br />
'totals' =><br />
array (<br />
),<br />
'products' =><br />
array (<br />
),<br />
'customer' =><br />
array (<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'company' => NULL,<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => 'Texas',<br />
'zone_id' => '57',<br />
'country' =><br />
array (<br />
'id' => '223',<br />
'title' => 'United States',<br />
'iso_code_2' => 'US',<br />
'iso_code_3' => 'USA',<br />
),<br />
'format_id' => 2,<br />
'telephone' => '',<br />
'email_address' => 'goofygrrl2@tx.rr.com',<br />
),<br />
'delivery' =><br />
array (<br />
),<br />
'billing' =><br />
array (<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'company' => NULL,<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => 'Texas',<br />
'zone_id' => '57',<br />
'country' =><br />
array (<br />
'id' => '223',<br />
'title' => 'United States',<br />
'iso_code_2' => 'US',<br />
'iso_code_3' => 'USA',<br />
),<br />
'country_id' => '223',<br />
'format_id' => 2,<br />
),<br />
'content_type' => 'virtual',<br />
'email_low_stock' => NULL,<br />
'products_ordered_attributes' => NULL,<br />
'products_ordered' => NULL,<br />
'products_ordered_email' => NULL,<br />
'products_ordered_html' => NULL,<br />
'attachArray' => NULL,<br />
'email_order_message' => NULL,<br />
'extra_header_text' => NULL,<br />
'doStockDecrement' => NULL,<br />
'send_low_stock_emails' => NULL,<br />
'queryReturnFlag' => NULL,<br />
'bestSellersUpdate' => NULL,<br />
'use_external_tax_handler_only' => NULL,<br />
'products_ordered_attributes_html' =><br />
array (<br />
),<br />
))OnePageCheckout::__set_state(array(<br />
'isGuestCheckoutEnabled' => false,<br />
'registeredAccounts' => false,<br />
'guestIsActive' => false,<br />
'isEnabled' => true,<br />
'tempAddressValues' =><br />
array (<br />
'ship' =><br />
array (<br />
'gender' => '',<br />
'company' => '',<br />
'firstname' => '',<br />
'lastname' => '',<br />
'street_address' => '',<br />
'suburb' => '',<br />
'city' => '',<br />
'postcode' => '',<br />
'state' => '',<br />
'country' => 223,<br />
'zone_id' => 0,<br />
'zone_name' => '',<br />
'address_book_id' => 0,<br />
'selected_country' => 223,<br />
'country_has_zones' => true,<br />
'state_field_label' => '',<br />
'show_pulldown_states' => true,<br />
'error' => false,<br />
'error_state_input' => false,<br />
'validated' => false,<br />
),<br />
'bill' =><br />
array (<br />
'gender' => '',<br />
'company' => '',<br />
'firstname' => '',<br />
'lastname' => '',<br />
'street_address' => '',<br />
'suburb' => '',<br />
'city' => '',<br />
'postcode' => '',<br />
'state' => '',<br />
'country' => 223,<br />
'zone_id' => 0,<br />
'zone_name' => '',<br />
'address_book_id' => 0,<br />
'selected_country' => 223,<br />
'country_has_zones' => true,<br />
'state_field_label' => '',<br />
'show_pulldown_states' => true,<br />
'error' => false,<br />
'error_state_input' => false,<br />
'validated' => false,<br />
),<br />
),<br />
'guestCustomerInfo' => NULL,<br />
'guestCustomerId' => 6428,<br />
'tempBilltoAddressBookId' => 6606,<br />
'tempSendtoAddressBookId' => 6607,<br />
'dbStringType' => 'stringIgnoreNull',<br />
'customerInfoOk' => NULL,<br />
'billtoTempAddrOk' => NULL,<br />
'sendtoTempAddrOk' => NULL,<br />
'isVirtualOrder' => true,<br />
'billtoAddressChangeable' => true,<br />
'sendtoAddressChangeable' => true,<br />
))<br />
2019-06-05 10:45:41 OnePageCheckout: Current sendto:<br />
2019-06-05 10:45:41 OnePageCheckout: updateOrderAddresses, , , 223, 57<br />
{"firstname":"Amethyst","lastname":"Wilson","company":null,"street_address":"2409 Bentley Dr.","suburb":"","city":"Grand Prairie","postcode":"75052","state":"Texas","zone_id":"57","country":{"id":"223","title":"United States","iso_code_2":"US","iso_code_3":"USA"},"format_id":2,"telephone":"","email_address":"goofygrrl2@tx.rr.com"}<br />
{"firstname":"Amethyst","lastname":"Wilson","company":null,"street_address":"2409 Bentley Dr.","suburb":"","city":"Grand Prairie","postcode":"75052","state":"Texas","zone_id":"57","country":{"id":"223","title":"United States","iso_code_2":"US","iso_code_3":"USA"},"country_id":"223","format_id":2}<br />
[]<br />
2019-06-05 10:45:41 checkout_one: CHECKOUT_ONE_AFTER_SHIPPING_QUOTES<br />
array (<br />
'id' => 'free_free',<br />
'title' => 'FREE_SHIPPING_TITLE',<br />
'cost' => 0,<br />
)order::__set_state(array(<br />
'info' =><br />
array (<br />
'order_status' => '1',<br />
'currency' => 'USD',<br />
'currency_value' => '1.00000000',<br />
'payment_method' => '',<br />
'payment_module_code' => '',<br />
'coupon_code' => '',<br />
'shipping_method' => 'FREE_SHIPPING_TITLE',<br />
'shipping_module_code' => 'free_free',<br />
'shipping_cost' => 0,<br />
'subtotal' => 0.0,<br />
'shipping_tax' => 0,<br />
'tax' => 0.0,<br />
'total' => 0.0,<br />
'tax_groups' =><br />
array (<br />
'Sales Tax' => 0.0,<br />
),<br />
'comments' => '',<br />
'ip_address' => '72.182.165.112 - 72.182.165.112',<br />
),<br />
'totals' =><br />
array (<br />
),<br />
'products' =><br />
array (<br />
0 =><br />
array (<br />
'qty' => 1.0,<br />
'name' => '* May 2019 *',<br />
'model' => 'F',<br />
'tax_groups' =><br />
array (<br />
'Sales Tax' => 0,<br />
),<br />
'tax_description' => 'Sales Tax',<br />
'price' => '0.0000',<br />
'final_price' => 0.0,<br />
'onetime_charges' => 0,<br />
'weight' => 0,<br />
'products_priced_by_attribute' => '0',<br />
'product_is_free' => '0',<br />
'products_discount_type' => '0',<br />
'products_discount_type_from' => '0',<br />
'id' => '658:4848537101bc49281b020978345a2956',<br />
'rowClass' => 'rowEven',<br />
'products_weight' => 0.0,<br />
'products_virtual' => 0,<br />
'product_is_always_free_shipping' => 0,<br />
'products_quantity_order_min' => 1.0,<br />
'products_quantity_order_units' => 1.0,<br />
'products_quantity_order_max' => 1.0,<br />
'products_quantity_mixed' => 0,<br />
'products_mixed_discount_quantity' => 1,<br />
'tax' => 0,<br />
'customid' =><br />
array (<br />
'value' => 'F',<br />
'type' => 'none',<br />
),<br />
'attributes' =><br />
array (<br />
0 =><br />
array (<br />
'option' => 'Format & Sizes',<br />
'value' => 'Multi Format Zip',<br />
'option_id' => 2,<br />
'value_id' => '63',<br />
'prefix' => '+',<br />
'price' => '0.0000',<br />
),<br />
),<br />
),<br />
),<br />
'customer' =><br />
array (<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'company' => NULL,<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => 'Texas',<br />
'zone_id' => '57',<br />
'country' =><br />
array (<br />
'id' => '223',<br />
'title' => 'United States',<br />
'iso_code_2' => 'US',<br />
'iso_code_3' => 'USA',<br />
),<br />
'format_id' => 2,<br />
'telephone' => '',<br />
'email_address' => 'goofygrrl2@tx.rr.com',<br />
),<br />
'delivery' =><br />
array (<br />
),<br />
'billing' =><br />
array (<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'company' => NULL,<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => 'Texas',<br />
'zone_id' => '57',<br />
'country' =><br />
array (<br />
'id' => '223',<br />
'title' => 'United States',<br />
'iso_code_2' => 'US',<br />
'iso_code_3' => 'USA',<br />
),<br />
'country_id' => '223',<br />
'format_id' => 2,<br />
),<br />
'content_type' => 'virtual',<br />
'email_low_stock' => NULL,<br />
'products_ordered_attributes' => NULL,<br />
'products_ordered' => NULL,<br />
'products_ordered_email' => NULL,<br />
'products_ordered_html' => NULL,<br />
'attachArray' => NULL,<br />
'email_order_message' => NULL,<br />
'extra_header_text' => NULL,<br />
'doStockDecrement' => NULL,<br />
'send_low_stock_emails' => NULL,<br />
'queryReturnFlag' => NULL,<br />
'bestSellersUpdate' => NULL,<br />
'use_external_tax_handler_only' => false,<br />
'products_ordered_attributes_html' =><br />
array (<br />
),<br />
))messageStack::__set_state(array(<br />
'messages' =><br />
array (<br />
0 =><br />
array (<br />
'params' => 'class="messageStackWarning larger"',<br />
'class' => 'header',<br />
'text' => '<img src="includes/templates/magic/images/icons/warning.gif" alt="Warning" title=" Warning " width="20" height="20" /> NOTICE: The website is currently Down For Maintenance to the public',<br />
),<br />
),<br />
))array (<br />
)<br />
2019-06-05 10:45:41 checkout_one: CHECKOUT_ONE_AFTER_ORDER_TOTAL_PROCESSING<br />
order_total::__set_state(array(<br />
'modules' =><br />
array (<br />
0 => 'ot_subtotal.php',<br />
1 => 'ot_shipping.php',<br />
2 => 'ot_quantity_discount.php',<br />
3 => 'ot_coupon.php',<br />
4 => 'ot_total.php',<br />
),<br />
))order::__set_state(array(<br />
'info' =><br />
array (<br />
'order_status' => '1',<br />
'currency' => 'USD',<br />
'currency_value' => '1.00000000',<br />
'payment_method' => '',<br />
'payment_module_code' => '',<br />
'coupon_code' => '',<br />
'shipping_method' => 'Free Shipping',<br />
'shipping_module_code' => 'free_free',<br />
'shipping_cost' => 0,<br />
'subtotal' => 0.0,<br />
'shipping_tax' => 0,<br />
'tax' => 0.0,<br />
'total' => 0.0,<br />
'tax_groups' =><br />
array (<br />
'Sales Tax' => 0.0,<br />
),<br />
'comments' => '',<br />
'ip_address' => '72.182.165.112 - 72.182.165.112',<br />
),<br />
'totals' =><br />
array (<br />
),<br />
'products' =><br />
array (<br />
0 =><br />
array (<br />
'qty' => 1.0,<br />
'name' => '* May 2019 *',<br />
'model' => 'F',<br />
'tax_groups' =><br />
array (<br />
'Sales Tax' => 0,<br />
),<br />
'tax_description' => 'Sales Tax',<br />
'price' => '0.0000',<br />
'final_price' => 0.0,<br />
'onetime_charges' => 0,<br />
'weight' => 0,<br />
'products_priced_by_attribute' => '0',<br />
'product_is_free' => '0',<br />
'products_discount_type' => '0',<br />
'products_discount_type_from' => '0',<br />
'id' => '658:4848537101bc49281b020978345a2956',<br />
'rowClass' => 'rowEven',<br />
'products_weight' => 0.0,<br />
'products_virtual' => 0,<br />
'product_is_always_free_shipping' => 0,<br />
'products_quantity_order_min' => 1.0,<br />
'products_quantity_order_units' => 1.0,<br />
'products_quantity_order_max' => 1.0,<br />
'products_quantity_mixed' => 0,<br />
'products_mixed_discount_quantity' => 1,<br />
'tax' => 0,<br />
'customid' =><br />
array (<br />
'value' => 'F',<br />
'type' => 'none',<br />
),<br />
'attributes' =><br />
array (<br />
0 =><br />
array (<br />
'option' => 'Format & Sizes',<br />
'value' => 'Multi Format Zip',<br />
'option_id' => 2,<br />
'value_id' => '63',<br />
'prefix' => '+',<br />
'price' => '0.0000',<br />
),<br />
),<br />
),<br />
),<br />
'customer' =><br />
array (<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'company' => NULL,<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => 'Texas',<br />
'zone_id' => '57',<br />
'country' =><br />
array (<br />
'id' => '223',<br />
'title' => 'United States',<br />
'iso_code_2' => 'US',<br />
'iso_code_3' => 'USA',<br />
),<br />
'format_id' => 2,<br />
'telephone' => '',<br />
'email_address' => 'goofygrrl2@tx.rr.com',<br />
),<br />
'delivery' =><br />
array (<br />
),<br />
'billing' =><br />
array (<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'company' => NULL,<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => 'Texas',<br />
'zone_id' => '57',<br />
'country' =><br />
array (<br />
'id' => '223',<br />
'title' => 'United States',<br />
'iso_code_2' => 'US',<br />
'iso_code_3' => 'USA',<br />
),<br />
'country_id' => '223',<br />
'format_id' => 2,<br />
),<br />
'content_type' => 'virtual',<br />
'email_low_stock' => NULL,<br />
'products_ordered_attributes' => NULL,<br />
'products_ordered' => NULL,<br />
'products_ordered_email' => NULL,<br />
'products_ordered_html' => NULL,<br />
'attachArray' => NULL,<br />
'email_order_message' => NULL,<br />
'extra_header_text' => NULL,<br />
'doStockDecrement' => NULL,<br />
'send_low_stock_emails' => NULL,<br />
'queryReturnFlag' => NULL,<br />
'bestSellersUpdate' => NULL,<br />
'use_external_tax_handler_only' => false,<br />
'products_ordered_attributes_html' =><br />
array (<br />
),<br />
))messageStack::__set_state(array(<br />
'messages' =><br />
array (<br />
0 =><br />
array (<br />
'params' => 'class="messageStackWarning larger"',<br />
'class' => 'header',<br />
'text' => '<img src="includes/templates/magic/images/icons/warning.gif" alt="Warning" title=" Warning " width="20" height="20" /> NOTICE: The website is currently Down For Maintenance to the public',<br />
),<br />
),<br />
))<br />
2019-06-05 10:45:41 checkout_one: CHECKOUT_ONE_AFTER_PAYMENT_MODULES_SELECTION<br />
payment::__set_state(array(<br />
'modules' =><br />
array (<br />
0 => 'paypalwpp.php',<br />
1 => 'freecharger.php',<br />
),<br />
'selected_module' => '',<br />
'doesCollectsCardDataOnsite' => false,<br />
'paymentClass' =><br />
freecharger::__set_state(array(<br />
'code' => 'freecharger',<br />
'title' => 'Free Order',<br />
'description' => 'There is no charge for this order. Typically used for granting Free Shipping. Required to allow no-charge checkouts. Required for free downloads.',<br />
'enabled' => true,<br />
'sort_order' => '5',<br />
'email_footer' => 'There is no charge for this order.',<br />
)),<br />
))array (<br />
'id' => 'free_free',<br />
'title' => 'FREE_SHIPPING_TITLE',<br />
'cost' => 0,<br />
)<br />
2019-06-05 10:45:41 OnePageCheckout: getAddressValuesFromDb(1236), returning: array (<br />
'gender' => '',<br />
'company' => NULL,<br />
'firstname' => 'Amethyst',<br />
'lastname' => 'Wilson',<br />
'street_address' => '2409 Bentley Dr.',<br />
'suburb' => '',<br />
'city' => 'Grand Prairie',<br />
'postcode' => '75052',<br />
'state' => '',<br />
'country' => '223',<br />
'zone_id' => '57',<br />
'zone_name' => 'Texas',<br />
'address_book_id' => '1236',<br />
'error' => false,<br />
'error_state_input' => false,<br />
'country_has_zones' => true,<br />
)</p>
also getting this new error message...
Code:
[05-Jun-2019 12:29:02 America/Chicago] PHP Notice: Trying to get property 'delivery' of non-object in /home/goodiesbygail/public_html/NewStorey/includes/classes/OnePageCheckout.php on line 169
Pressing Confirm the Order still loops back to checkout page. Never completing the purchase. If I disable OPC the order does goes through correctly.
Yes this occurs if I change the template. Some of my products are downloads and others are shipped through mail. I thought downloads are not considered "virtual".
Downloads are considered virtual. I've just posted v2.1.1 of OPC on its GitHub repository and am preparing to submit to the Zen Cart plugins for review.
You might try that version to see if it corrects your issues, as I've discovered (thanks to your posting) that there's a serious issue with virtual-only orders in v2.1.0.:(
As mentioned above, I've just submitted v2.1.1 of OPC to the Zen Cart moderators for review; I'll post back when it's available for download.
This release contains changes associated with the following GitHub issues:
#198: Add TEXT/HTML email choice to post-checkout guest account conversion.
#199: Correct debug-log thrown when a store uses non-CSS buttons.
#200: Correct virtual orders can't be checked out.
Ok I will try that, Thank you. Sorry to be the "Debbie Downer" of the forum. lol Was very hesitant to make a support type post of my own. I have always found answers on the forums. Your help has truly been appreciated and I will report back on if the change works.
Woo Hoo it went through!!! Thank you! Thank you!
I did get this php log
Code:
[05-Jun-2019 14:43:32 America/Chicago] PHP Notice: Undefined index: country_id in /home/goodiesbygail/public_html/NewStorey/includes/modules/order_total/ot_shipping.php on line 29
Ok it works and sends the order through. Other than the short PHP Notice I posted above this new log appeared...
Code:
[05-Jun-2019 14:55:36 America/Chicago] Request URI: /NewStorey/index.php?main_page=checkout_process, IP address: 72.182.165.112
#1 strpos() called at [/home/goodiesbygail/public_html/NewStorey/includes/classes/order.php:681]
#2 order->create() called at [/home/goodiesbygail/public_html/NewStorey/includes/modules/checkout_process.php:88]
#3 require(/home/goodiesbygail/public_html/NewStorey/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/NewStorey/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/home/goodiesbygail/public_html/NewStorey/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/NewStorey/index.php:36]
--> PHP Warning: strpos() expects parameter 1 to be string, array given in /home/goodiesbygail/public_html/NewStorey/includes/classes/order.php on line 681.
[05-Jun-2019 14:55:36 America/Chicago] Request URI: /NewStorey/index.php?main_page=checkout_process, IP address: 72.182.165.112
#1 mysqli_real_escape_string() called at [/home/goodiesbygail/public_html/NewStorey/includes/classes/db/mysql/query_factory.php:122]
#2 queryFactory->prepare_input() called at [/home/goodiesbygail/public_html/NewStorey/includes/classes/db/mysql/query_factory.php:516]
#3 queryFactory->prepareInput() called at [/home/goodiesbygail/public_html/NewStorey/includes/functions/functions_general.php:896]
#4 zen_db_input() called at [/home/goodiesbygail/public_html/NewStorey/includes/functions/functions_general.php:929]
#5 zen_db_perform() called at [/home/goodiesbygail/public_html/NewStorey/includes/classes/order.php:696]
#6 order->create() called at [/home/goodiesbygail/public_html/NewStorey/includes/modules/checkout_process.php:88]
#7 require(/home/goodiesbygail/public_html/NewStorey/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/NewStorey/includes/modules/pages/checkout_process/header_php.php:14]
#8 require(/home/goodiesbygail/public_html/NewStorey/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/NewStorey/index.php:36]
--> PHP Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /home/goodiesbygail/public_html/NewStorey/includes/classes/db/mysql/query_factory.php on line 122.
[05-Jun-2019 14:55:36 America/Chicago] Request URI: /NewStorey/index.php?main_page=checkout_process, IP address: 72.182.165.112
#1 strpos() called at [/home/goodiesbygail/public_html/NewStorey/includes/classes/order.php:1068]
#2 order->send_order_email() called at [/home/goodiesbygail/public_html/NewStorey/includes/modules/checkout_process.php:97]
#3 require(/home/goodiesbygail/public_html/NewStorey/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/NewStorey/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/home/goodiesbygail/public_html/NewStorey/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/NewStorey/index.php:36]
--> PHP Warning: strpos() expects parameter 1 to be string, array given in /home/goodiesbygail/public_html/NewStorey/includes/classes/order.php on line 1068.
Well do not know where those came from. I have not been able to recreate the log. Good or Bad?
You were not a "Debbie Downer"; the level of information that you provided was what pointed me to the source of the problem you identified!
Perhaps good; I'd call it "good" to have not received those logs if, for that checkout, the products in the cart were identical to those when the original log(s) were created.
Thank you for performing that up-front information-gathering that led to a quick resolution of the issue.
Removed the display none styles, in what you mentioned as well as tpl_checkout_one_confirmation_default.php and still was not displaying in Firefox, but I changed
#checkoutOneLoading { position: relative; height: 95vh; top: 50%; left: 50%; display: none; }
to
#checkoutOneLoading, #checkoutOneConfirmationLoading { margin: 0 auto;}
Still that gif will not display in FireFox
Well Like I said before I have been using the resources of this forum for MANY years now. I can say that my 1st time posting for support I am TOTALLY satisfied with the result and the hospitality! :)
okay, so I did some further testing with the bootstrap template, here is what I found:
go through the checkout process as you normally would and the loading image DOES NOT display.
go through the checkout process, click the "confirm order" button WITHOUT selecting a payment or shipping method, click OK in the "You must choose a shipping method for your order before the order can be confirmed" modal, then click the "confirm order" and the loading image displays.
I am thinking the loading image needs to be preloaded.
@rbarbour, I'm not seeing that behavior. Running OPC 2.1.1 on zc156b with a clone of the responsive_classic template.
Now available: https://www.zen-cart.com/downloads.php?do=file&id=2095
Hi Cindy,
fresh install on new v1.5.6b site running PHP 7.3 and Responsive Classic template .... using credit card then at confirm order I get the following error;
"Error We apologize for the inconvenience, but the credit card you entered is not one that we accept. Please use a different credit card or verify that the details you entered are correct, or contact the store owner for assistance."
Using a Visa card and it is setup in admin/configure/credit cards as 1 (on)
Any ideas please?
cheers,
Mike
Attachment 18503
Mike, no ideas but a couple of questions:
1. What credit card payment method is being used?
2. Does the same thing occur if you disable OPC and go through the built-in 3-page checkout?
Ok this message showed back up today...
Code:
[14-Jun-2019 16:21:50 America/Chicago] Request URI: /index.php?main_page=checkout_process, IP address: 24.200.129.246
#1 strpos() called at [/home/goodiesbygail/public_html/includes/classes/order.php:681]
#2 order->create() called at [/home/goodiesbygail/public_html/includes/modules/checkout_process.php:88]
#3 require(/home/goodiesbygail/public_html/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/index.php:36]
--> PHP Warning: strpos() expects parameter 1 to be string, array given in /home/goodiesbygail/public_html/includes/classes/order.php on line 681.
[14-Jun-2019 16:21:50 America/Chicago] Request URI: /index.php?main_page=checkout_process, IP address: 24.200.129.246
#1 mysqli_real_escape_string() called at [/home/goodiesbygail/public_html/includes/classes/db/mysql/query_factory.php:122]
#2 queryFactory->prepare_input() called at [/home/goodiesbygail/public_html/includes/classes/db/mysql/query_factory.php:516]
#3 queryFactory->prepareInput() called at [/home/goodiesbygail/public_html/includes/functions/functions_general.php:896]
#4 zen_db_input() called at [/home/goodiesbygail/public_html/includes/functions/functions_general.php:929]
#5 zen_db_perform() called at [/home/goodiesbygail/public_html/includes/classes/order.php:696]
#6 order->create() called at [/home/goodiesbygail/public_html/includes/modules/checkout_process.php:88]
#7 require(/home/goodiesbygail/public_html/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#8 require(/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/index.php:36]
--> PHP Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /home/goodiesbygail/public_html/includes/classes/db/mysql/query_factory.php on line 122.
[14-Jun-2019 16:21:50 America/Chicago] Request URI: /index.php?main_page=checkout_process, IP address: 24.200.129.246
#1 strpos() called at [/home/goodiesbygail/public_html/includes/classes/order.php:1068]
#2 order->send_order_email() called at [/home/goodiesbygail/public_html/includes/modules/checkout_process.php:97]
#3 require(/home/goodiesbygail/public_html/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/index.php:36]
--> PHP Warning: strpos() expects parameter 1 to be string, array given in /home/goodiesbygail/public_html/includes/classes/order.php on line 1068.
All these lines with the PHP Warnings match the lines in the zencart 1.5.6b files.
Thanks for getting back to me so quickly Cindy -
1. Credit card is Visa
2. Works fine with OPC disabled and same credit card in built in 3 page process
3. Also works fine with OPC enabled and using checkout with PayPal
over to you :smile:
cheers,
Mike
possibly not recognizing that the card is issued in Australia?
Hi Cindy - should have done this earlier - is this error log of any help to you?
cheers, Mike
Code:[15-Jun-2019 09:19:50 Australia/Sydney] Request URI: /ipn_main_handler.php, IP address: 173.0.81.1
#1 require() called at [/home/dazzlersharmonyn/public_html/includes/init_includes/init_ipn_postcfg.php:22]
#2 require(/home/dazzlersharmonyn/public_html/includes/init_includes/init_ipn_postcfg.php) called at [/home/dazzlersharmonyn/public_html/includes/autoload_func.php:48]
#3 require(/home/dazzlersharmonyn/public_html/includes/autoload_func.php) called at [/home/dazzlersharmonyn/public_html/includes/application_top.php:170]
#4 require(/home/dazzlersharmonyn/public_html/includes/application_top.php) called at [/home/dazzlersharmonyn/public_html/ipn_main_handler.php:114]
--> PHP Warning: require(/home/dazzlersharmonyn/public_html/includes/languages/englishcheckout_process.php): failed to open stream: No such file or directory in /home/dazzlersharmonyn/public_html/includes/init_includes/init_ipn_postcfg.php on line 22.
[15-Jun-2019 09:19:50 Australia/Sydney] PHP Fatal error: require(): Failed opening required '/home/dazzlersharmonyn/public_html/includes/languages/englishcheckout_process.php' (include_path='.:/opt/alt/php73/usr/share/pear') in /home/dazzlersharmonyn/public_html/includes/init_includes/init_ipn_postcfg.php on line 22
Yes, I saw that on my website once I upgraded to v1.5.6b. The issue is a missing / in /includes/init_includes/init_ipn_postcfg.php on line 22. You'll need to change
toCode:require(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'], 'checkout_process.php', 'false'));
I'll be submitting a PR to Zen Cart's 1.5.7 branch to provide future correction.Code:require(zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'], '/checkout_process.php', 'false'));
See this (https://github.com/zencart/zencart/pull/2442) PR for additional information.
Hmm, those appear to be related to the shipping-module setting for the order's conversion from cart. Remind me, which version of OPC is being used? Based on previous reports, I'm assuming that the product(s) in the cart are either virtual or downloads, please advise on that as well.
OPC version 2.1.0
yes Downloads
First, update OPC to v2.1.1, then go to the OPC GitHub (https://github.com/lat9/one_page_checkout/issues) and apply the changes associated with issues 201 and 202.
I'll try to find some time tomorrow to capture the changes for those 2 issue into v2.1.2 and update on the Zen Cart plugins.
Ok did the update to v2.1.1
Did a order of a free download. Went through but got this error log
Code:
[15-Jun-2019 13:10:40 America/Chicago] Request URI: /index.php?main_page=checkout_process, IP address: 72.182.165.112
#1 strpos() called at [/home/goodiesbygail/public_html/includes/classes/order.php:681]
#2 order->create() called at [/home/goodiesbygail/public_html/includes/modules/checkout_process.php:88]
#3 require(/home/goodiesbygail/public_html/includes/modules/checkout_process.php) called at [/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#4 require(/home/goodiesbygail/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/goodiesbygail/public_html/index.php:36]
--> PHP Warning: strpos(): Empty needle in /home/goodiesbygail/public_html/includes/classes/order.php on line 681.
Update for above post. #1197
I think I have fixed it. I just copied the line 681 from the zen cart 1.5.6b files and did another purchase. There were no error log created.
All these errors seem to only pop up occasionally so hopefully this means all good but I will keep an eye on it and will tackle the next error when or if it occurs.
Thank you for your Wonderful Help and Contributions. :)