Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
@linuxguy2, could you give me an example of the characters you're wanting to weed-out?
Hi Lat,
Exclude
!@$%^&*()+?><>:"{}|[]\;/=_
Basically I only want to allow alpha, Numeric , the # (hashtag) - (dash) and the ' (apostrophe).
Of course I need the @ sign in the email address.
The Password will need to accept some typical special characters but I can adjust those later.
Thanks, for your prompt response.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
linuxguy2
Hi Lat,
Exclude
!@$%^&*()+?><>:"{}|[]\;/=_
Basically I only want to allow alpha, Numeric , the # (hashtag) - (dash) and the ' (apostrophe).
Of course I need the @ sign in the email address.
The Password will need to accept some typical special characters but I can adjust those later.
Thanks, for your prompt response.
You can use preg_match on each of those fields to weed those out:
Code:
if (preg_match('/[!@$%^&*\(\)\+\?><>:"{}|\[\]\;\/=_]/', $variable_name)) {
// Contains unwanted characters
}
I'll need to review the various spots within OPC where I can throw notifications that enable you to provide those additional checks.
Note that there's a sweet little tool (rubular.com) that can help you test various regex patterns.
GitHub issue for tracking: https://github.com/lat9/one_page_checkout/issues/226
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
You can use preg_match on each of those fields to weed those out:
Code:
if (preg_match('/[!@$%^&*\(\)\+\?><>:"{}|\[\]\;\/=_]/', $variable_name)) {
// Contains unwanted characters
}
I'll need to review the various spots within OPC where I can throw notifications that enable you to provide those additional checks.
Note that there's a sweet little tool (rubular.com) that can help you test various regex patterns.
GitHub issue for tracking:
https://github.com/lat9/one_page_checkout/issues/226
Lat9
That would be great!
Thanks, I'll check rubular out.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
linuxguy2
Lat9
That would be great!
Thanks, I'll check rubular out.
Hi Lat9,
You probably are way ahead of me on this but when the notice (Characters ..... not allowed in this field) is thrown I'd like the form to retain data that has already been entered.
Thanks,
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
linuxguy2
Hi Lat9,
You probably are way ahead of me on this but when the notice (Characters ..... not allowed in this field) is thrown I'd like the form to retain data that has already been entered.
Thanks,
Understood.
Re: One-Page Checkout [Support Thread]
Hello, I am having some template related issue resulting in
Your order's details have changed. Please review the current values and re-submit.
Fresh zencart 1.5.6.b with only CEON URI installed and the OPC 2.2.2.
When I test it with the responsive template OPC seems to work nicely, but when I change to my template GOODWIN something goes wrong and
Message Your order's details have changed. Please review the current values and re-submit. appears.
I am using only cod as payment and store pickup delivery.
What may cause this error? It is quite possible something from the template part but where to look for?
Kind regards.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
perfumbg
Hello, I am having some template related issue resulting in
Your order's details have changed. Please review the current values and re-submit.
Fresh zencart 1.5.6.b with only CEON URI installed and the OPC 2.2.2.
When I test it with the responsive template OPC seems to work nicely, but when I change to my template GOODWIN something goes wrong and
Message Your order's details have changed. Please review the current values and re-submit. appears.
I am using only cod as payment and store pickup delivery.
What may cause this error? It is quite possible something from the template part but where to look for?
Kind regards.
That themeforest template, as others from that template-provider, make various non-standard changes to the store's /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. Those changes make it so that OPC can't locate the order's current total, resulting in that 'details changed' message.
I'll update the One-Page Checkout documentation to indicate that all templates from themeforest are problematic.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
That themeforest template, as others from that template-provider, make various non-standard changes to the store's /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_order_totals.php. Those changes make it so that OPC can't locate the order's current total, resulting in that 'details changed' message.
I'll update the One-Page Checkout documentation to indicate that all templates from themeforest are problematic.
I might be able to work out something. If you enable the One-Page Checkout's debug ... just prior to clicking the "Confirm" button, an OPC log will be created in the site's /logs directory that will identify what the underlying loop-back issue is.
I'll PM you my direct email address and you can send me that log for analysis.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I might be able to work out something. If you enable the One-Page Checkout's debug ... just prior to clicking the "Confirm" button, an OPC log will be created in the site's /logs directory that will identify what the underlying loop-back issue is.
I'll PM you my direct email address and you can send me that log for analysis.
Yes I have the debug file you can download it from http://autofox.net/OPC.log
Thank you in advance.
Re: One-Page Checkout [Support Thread]
You were right the did some changes to tpl_modules_order_totals.php,
I have replaced them with the original from template_default and now it seems ok, at least it works and the customer can make order.
I will test it some more and if new problem is there I will report it here.
Thank you for pointing the exact cause of my problem, it may help others if they use ThemeForest templates!