What is alternative for Gel in catalog client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2019 11:37 PM
Can anyone guide me what will be the alternative for gel. Below is the onload client script to hide Order now button
// Hide Cart - Order Now button.
function onLoad() {
gel("cart").style.display="none";
}
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2019 11:58 PM
Chk the comments of Brad Tipton n Srikanth
Mark my ANSWER as CORRECt n also HELPFUL if it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2019 11:59 PM
Hi Akshat,
use
document.getElementById('order_now').style.display="none";
Write this line onLoad() catalog client script
Thanks
Mark helpful if my response help to solve your problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 01:05 AM
document.getElementById is not functional now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 01:49 AM
Hi Akshat,
We can hide order now without script as well.
1.go on catalog item list view
2.select your catalog item and use personalized list
3. there is an option in list bucket of Hide Order now
4. you just have to set that value to true
Try this it worked for me without any script.
Thanks
Mark helpful if my response help to solve your problem