mcgharios Posted April 18, 2023 Posted April 18, 2023 Hello! I am looking to modify the wording of "Discount" below under checkout: Can anyone help me finding this code?
Vicks Posted April 18, 2023 Posted April 18, 2023 (edited) You can try these: Using javascript: <script> el = document.querySelector("[class^='CheckoutTotal-label-']") el.innherHTML = "Your word" </script> or Using css : [class^='CheckoutTotal-label-'] { visibility: hidden } [class^='CheckoutTotal-label-']::before { content:'Your text'; visibility: visible; } This selector [class^='CheckoutTotal-label'] is trying to find element who has attribute class and the value of attribute starts with CheckoutTotal-label- Edited April 18, 2023 by Vicks tuanphan 1
Solution tuanphan Posted April 22, 2023 Solution Posted April 22, 2023 You can't do this. Custom Code won't run on Checkout Page mcgharios and Vicks 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Vicks Posted April 22, 2023 Posted April 22, 2023 🙂 ignore my post @tuanphan is right, I totally missed that its checkout page mcgharios 1
mcgharios Posted April 22, 2023 Author Posted April 22, 2023 That’s very sad. Thank you both for your input!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment