For simple and conigurable product types get true/false has options return 1 or 0:
<?php if ( $_product->getData('has_options') ): ?>
<!-- do something -->
<?php endif; ?>
For flat category data option enabled
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
cfupdater
file to /usr/local/bin
chmod +x /usr/local/bin/cfupdater
/etc/systemd/system/
, the cfupdate.service
is shown as an example.cfupdate.timer
is shown as an example.This script will check if external IP is changed or not and will update the external IP of A or AAAA record in Cloudflare DNS using API token/ global API key method.