Re: One-Page Checkout [Support Thread]
Missing Configuration Key
OPC v2.4.1 (apparently)
@lat9, re the issue raised on Github OPC, I see that you referred to the 'Payment Methods Handling Form Submittal' configuration switch introduced in OPC v2.4.0
Even though I have been upgrading through the versions to v2.4.1, I don't have that setting in my admin but I see that the code to add it is in init_checkout_one_upgrade.php, can you suggest a way for me to manually add or re-run that SQL code to add this setting and perhaps also check for any others that might be missing?
I don't usually muck up my upgrades, for some reason OPC has been my bugbear.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
simon1066
Missing Configuration Key
OPC v2.4.1 (apparently)
@lat9, re the issue raised on
Github OPC, I see that you referred to the 'Payment Methods Handling Form Submittal' configuration switch introduced in OPC v2.4.0
Even though I have been upgrading through the versions to v2.4.1, I don't have that setting in my admin but I see that the code to add it is in init_checkout_one_upgrade.php, can you suggest a way for me to manually add or re-run that SQL code to add this setting and perhaps also check for any others that might be missing?
I don't usually muck up my upgrades, for some reason OPC has been my bugbear.
It's ok, I checked the init_ files and manually added the missing configuration setting to the database - not sure why I thought it would be troublesome.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
simon1066
It's ok, I checked the init_ files and manually added the missing configuration setting to the database - not sure why I thought it would be troublesome.
It's only troublesome in that the setting didn't get added automatically on the upgrade.:(
Re: One-Page Checkout [Support Thread]
Hah! When we were kids, you had to REMOVE and RE-INSTALL to get the database updates.
You tell that to kids these days and they don't believe you!
1 Attachment(s)
Re: One-Page Checkout [Support Thread]
FEATURE REQUEST:
Hi lat9. I would like to request a feature (really a modification) to OPC to be included in a possible future update. I am always on the lookout for how to simplify things, because a simple shopping experience is the best shopping experience.
My suggestion: Under the Gift Certificate section of OPC, have the gift certificate balance automatically fill into the "Apply Amount" box instead of having a separate "Available Balance" line. The way it is currently setup is a little confusing and I think that this will simplify things for the customers. Let me know what you think of this suggestion!
Attachment 20045
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
swguy
Hah! When we were kids, you had to REMOVE and RE-INSTALL to get the database updates
You tell that to kids these days and they don't believe you!
My first computer was 16k of ram and a cassette tape for storage. It did have the latest technology in a 300 baud modem built in! :P
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
njcyx
Hi @lat9, my site received several errors during the holiday, from one Australia customer.
PHP Code:
[02-Jul-2022 09:31:55 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: 1.129.27.xxx
#1 trigger_error() called at [/public_html/includes/classes/OnePageCheckout.php:1058]
#2 OnePageCheckout->getAddressValuesFromDb() called at [/public_html/includes/classes/OnePageCheckout.php:1031]
#3 OnePageCheckout->getAddressValues() called at [/public_html/includes/templates/template_default/templates/tpl_modules_opc_address_block.php:26]
#4 require(/public_html/includes/templates/template_default/templates/tpl_modules_opc_address_block.php) called at [/public_html/includes/templates/template_default/templates/tpl_modules_opc_shipping_address.php:31]
#5 require(/public_html/includes/templates/template_default/templates/tpl_modules_opc_shipping_address.php) called at [/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php:54]
#6 require(/public_html/includes/templates/template_default/templates/tpl_checkout_one_default.php) called at [/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:185]
#7 require(/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/public_html/index.php:94]
--> PHP Fatal error: unknown address_book_id () for customer_id (109389) in /public_html/includes/classes/OnePageCheckout.php on line 1058.
I received 7 log files and 6 files are the above content. One is the following:
PHP Code:
[02-Jul-2022 09:39:35 America/New_York] Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShipping, IP address: 1.129.27.xxx
#1 trigger_error() called at [/public_html/includes/classes/OnePageCheckout.php:992]
#2 OnePageCheckout->setTempShippingToBilling() called at [/public_html/includes/classes/ajax/zcAjaxOnePageCheckout.php:56]
#3 zcAjaxOnePageCheckout->updateShipping() called at [/public_html/ajax.php:85]
--> PHP Fatal error: Invalid access; $_SESSION['billto'] is not set. in /public_html/includes/classes/OnePageCheckout.php on line 992.
Here are the codes near line 1058:
PHP Code:
if ($address_info->EOF) {
trigger_error("unknown address_book_id (" . $address_book_id . ') for customer_id (' . $_SESSION['customer_id'] . ')', E_USER_ERROR);
exit();
}
My OPC debug is ON so I have the log file at that time. Please DM me your email so I can send it to you.
Thanks in advance.
Hi @lat9, may I have any updates for this issue?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lolwaut
My suggestion: Under the Gift Certificate section of OPC, have the gift certificate balance automatically fill into the "Apply Amount" box instead of having a separate "Available Balance" line. The way it is currently setup is a little confusing and I think that this will simplify things for the customers. Let me know what you think of this suggestion!
I would venture to guess that most folks want control over their funds.
I would think that the number complaining that you "took their money" would far outweigh those who thaked you for using it.
Some are holding on to that for Aunt Sally's birthday present.
With the fact that most folks skim over most any form, I think you would wind up with a lot of irate folks.
I don't have the time to look it up but, I'm thinking it might not even be legal to capture those funds without the customers' approval.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lolwaut
FEATURE REQUEST:
Hi lat9. I would like to request a feature (really a modification) to OPC to be included in a possible future update. I am always on the lookout for how to simplify things, because a simple shopping experience is the best shopping experience.
My suggestion: Under the Gift Certificate section of OPC, have the gift certificate balance automatically fill into the "Apply Amount" box instead of having a separate "Available Balance" line. The way it is currently setup is a little confusing and I think that this will simplify things for the customers. Let me know what you think of this suggestion!
Attachment 20045
Quote:
Originally Posted by
dbltoe
I would venture to guess that most folks want control over their funds.
I would think that the number complaining that you "took their money" would far outweigh those who thaked you for using it.
Some are holding on to that for Aunt Sally's birthday present.
With the fact that most folks skim over most any form, I think you would wind up with a lot of irate folks.
I don't have the time to look it up but, I'm thinking it might not even be legal to capture those funds without the customers' approval.
As @dbltoe indicated, setting the input-field to contain the current Gift Certificate amount would result in a possibly-unwanted use of GC funds for the order. That's why the amount is indicated as text below the input field itself.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
As @dbltoe indicated, setting the input-field to contain the current Gift Certificate amount would result in a possibly-unwanted use of GC funds for the order. That's why the amount is indicated as text below the input field itself.
I don't see how that is possible, since you cannot apply more gift certificate funds than the total of an order. The system won't let you do it. If you apply $50 in gift certificate funds to a $30 order, you will still be left with $20 in your account. And the funds aren't applied until the user specifically clicks the APPLY button, so I feel this is not an issue as it relates to my suggestion.