Thank you Daniel @Kofod95 I would like to check it ,, hope everything going well with your updateKofod95 wrote: ↑Wed Aug 24, 2022 4:26 pm My guess is the newsletter-subscription option. I may be a catalyst for that problem then, since I have made a newsletter subscription that just takes the email and creates a customer with no other info than that and subscription, and probably adviced others to do something similar...
@Omar_one, I'll post a solution if I think of a good one before you (or others)
//Daniel
updating from Frozen to 1.0.8.16
-
Omar_one
- Senior Contributor
- Posts: 679
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
Re: updating from Frozen to 1.0.8.16
- Kofod95
- Senior Contributor
- Posts: 748
- Joined: Sat Feb 06, 2021 7:38 pm
- Phoenix Version: 1.0.8.20
- Has thanked: 99 times
- Been thanked: 179 times
Re: updating from Frozen to 1.0.8.16
Thank you, yes. I'll soon update that thread again - a few unrelated set-backs hit last week, but I'm beginning to have more time again now
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
-
Omar_one
- Senior Contributor
- Posts: 679
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
Re: updating from Frozen to 1.0.8.16
how to change the missing field Messages (javascript messages) to different language,
example ( Please, fill out this field.)
Thank you
Omar
example ( Please, fill out this field.)
Thank you
Omar
-
Omar_one
- Senior Contributor
- Posts: 679
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
Re: updating from Frozen to 1.0.8.16
I create a hook like this (the code from old forum) I make as a hook
and includes/languages/(yourlanguage).php and change the value of the message
but this it's change every required field message same
I any idea
Omar
Code: Select all
class hook_shop_siteWide_js_error{
function listen_injectSiteEnd() {
$siteend = <<<eot
<script>
$("input[required], select[required]").on('change', function() {
this.setCustomValidity("");
});
$("input[required], select[required]").on('invalid', function() {
this.setCustomValidity("<?php echo FORM_INPUT_VALUE_MISSING; ?>");'
});
</script>
eot;
return $siteend;
}
}
Code: Select all
define('FORM_INPUT_VALUE_MISSING','This value is required');
I any idea
Omar