Skip to content

Latest commit

 

History

History

Add to Cart Button Active Hours

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Add to Cart Button Active Hours

Synopsis

Enable add to cart buttons during active hours.

Version

  • 0.1.1

SS Versions

  • 7.1

  • 7.0

v7.1 Fluid Engine Compatible

  • Not Applicable

Dependencies


Install

Notes

By default the code uses Settings > Business Information > BUSINESS HOURS to determine when the atc button is active. You can override the business hours set in your site using settings in the code. Use the same hours format as shown in the support documentation < https://tinyurl.com/ybunsvxz > or the user interface.

The button is inactive effect is minimal. You can of course use your own custom CSS to enhance or replace what the code does. A twc-atcbah class is added to the atc wrapper element.

If you need installation help or customization please contact me for paid consulting.

Make a Donation

Please consider making a donation.

Changes

  • 2023-07-19

    • fix a bug in textToRanges returning bad ranges
    • bumped version to 0.1.1
  • 2023-07-19

    • initial version