updating from Frozen to 1.0.8.16

Open to all! Ask other shopowners for help.
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

Post by Omar_one »

Kofod95 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
Thank you Daniel @Kofod95 I would like to check it ,, hope everything going well with your update


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
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

Post by Kofod95 »

Omar_one wrote: Wed Aug 24, 2022 5:10 pm hope everything going well with your update
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
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

Post by Omar_one »

how to change the missing field Messages (javascript messages) to different language,
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

Post by Omar_one »

I create a hook like this (the code from old forum) I make as a hook

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;
  }
  
}
and includes/languages/(yourlanguage).php and change the value of the message

Code: Select all

define('FORM_INPUT_VALUE_MISSING','This value is required');
but this it's change every required field message same

I any idea
Omar


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply