Skip to content

Latest commit

 

History

History

Store Page List Tag Date Hide

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Store Page List Tag Date Hide

Synopsis

Hide products on product list pages using tags with dates.

Version

  • 0.1.1

SS Version

  • 7.1

Fluid Engine Compatible

  • Not Applicable

Dependencies


Install

  • Install twcsl. After you install twcsl be sure to continue on with the rest of the steps.

  • Options

How To Use

Edit a product and add a tag of twc-spltdh 2024-03-23 2024-03-25. The twc-spltdh indicates to the code that this is a product to be hidden based on the dates entered. The first date is the date to begin hiding the product, the second (optional) when the hiding ends.

Tag Syntax

  • twc-spltdh

  • start date ( YYYY-MM-DD )

  • stop date ( optional, YYYY-MM-DD )

twc-spltdh [ enter start date here replacing square brackets ] [ enter optional stop date here replacing square brackets ]

Examples

Hide a product beginning on date.

twc-spltdh 2024-03-24

Hide a product for a date range.

twc-spltdh 2024-03-23 2024-03-25

Hide a product annually for a date range.

twc-spltdh 1970-03-23 1970-03-25

Using the year 1970 tells the code to replace the year with the current one.

Extra spaces or not following the format described will cause a product not to be hidden.

Note

This effect is not active in SS Preview to test it use private browsing.

Make a Donation

Please consider making a donation.

Changes

  • 2024-04-11

    • fix for 1970 date check
    • bumped version to 0.1.1
  • 2024-03-24

    • initial version