Bulk adding & updating product attribute

[M1]

I have over 2000 products in my Magento store. I want to add a new attribute called ‘Warranty Terms’ to display it on the frontend. This is going to be the same for all products. I know how to add a new attribute, but how do I mass update it for all products? Warranty terms attribute is going to require WYSIWYG editor.

I added a new attribute & tried bulk updating it through Catalog > Products > Select All > Update attributes, however, this new attribute is not displaying in the list of attributes that could be mass updated. Is there a way using codes or maybe through SQL query?

how i can adding Structured data JSON-LD to multisite in drupal 7

how i can add rich snippets(Structured data JSON-LD) to multisite in drupal7 ??

example JSON-LD:

<script type="application/ld+json">    {"@context": "https://schema.org",        "@type": "Organization",        "url": "http://www.example.com",      "name": "Unlimited Ball Bearings Corp.",       "contactPoint": {     "@type": "ContactPoint",     "telephone": "+1-401-555-1212",     "contactType": "Customer service"   } }   </script> 

Unable to install package post adding ppa

I’ve been trying to create a bootable pen drive for the windows 10 may update on my ubuntu laptop for my PC. I’m running the 19.04 version of ubuntu. Since the windows iso needs special processes to be burned to the usb I’m required to install the woe-usb open source package.

sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt install woeusb 

But I keep receiving this error

Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package woeusb 

I’ve searched throughout Stack Exchange and ask ubuntu but I have ended up empty-handed.

after adding target=_blank file is still opening in new window. So to override file.js

I have added window.open(jQuery(“.form-managed-file a”).href, ‘_blank’); in jquery but still file is opening in new window instead of new tab. How can we override below event of file.js

function(event) { $ (this).attr(‘target’, ‘_blank’); window.open(this.href, ‘filePreview’, ‘toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=500,height=550’); return false; }

Thanks in advance

Adding script to certain nodes and pages on drupal 7

I am trying to add a script code on all pages of my drupal except a few. Is there any conditionals I can use in html.tpl.php ? or any functions on the template.php to achieve this?

I tried the code below on template.php but no luck 🙁

Thanks in advance!

 function THEME_preprocess_page(&$  variables) {     if (isset($  variables['node']->type)) {    $  variables['theme_hook_suggestions'][] = 'page__' .     $  variables['node']->type;   }    //this is what I am trying    if ($  variables['nid'] == '77') {     drupal_add_js(drupal_get_path('theme', 'THEME') .'/scripts/path.js');    }  }  

Automate Adding Meta Tag to Content Piece Creation

Hello Drupal Community!

I’m currently maintaining a lot of different sites containing the same information pages (example: profile pages with the same content but on different sites/base url) and I’d like to consolidate this into a single URL housing all the profile pages. However, the first phase of this ask was to develop a way to automate a rel=canonical metadata tag on creation of a content piece (no matter where the piece is created). What would be the best way to meet this requirement? Is there a hook I can use?

shell script is not executed after adding it as a crontab job

I have added the following crontab job:

sudo crontab -e 

enter image description here

58 * * * * ubuntu /home/ubuntu/backup/mysqlbackup.sh >/home/ubuntu/backup/log/backup.log 

I have tried both root and ubuntu users.

When I run the command:

sudo crontab -l 

enter image description here

And when I run:

systemctl status cron 

enter image description here

But mysqlbackup.sh is not executed. Any idea what is the problem or how can I diagnose what is going wrong?


Note I have added only minutes to test the script

Adding Live Chat on mobile and desktop if there is a sticky bar at the bottom?

Typically, live chat is located on the bottom right as a floater either on desktop and mobile. However, on some of my pages, I have a sticky bar with a CTA button on the bottom right. If we were to add a live chat, the live chat would cover the CTA button.

If we move the floater above the CTA button, it would cover some of the information on the side…

Additionally, is it best practice to keep desktop and mobile experience the same? I think I might need to make the live chat experience different from the mobile site.

I need help figuring out the best place to put a live chat function on this page. Help please!