Skip to content

320ny/Lemonstand-Extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lemonstand-Extensions

Adds code extensions to the Lemonstand Platform

Installation

  1. Navigate to the /modules directory of your Lemonstand project
  2. Clone the repo into extensions320ny: git clone git@github.com:320ny/Lemonstand-Extensions.git extensions320ny
  3. Logout and then back into the Lemonstand admin site
  4. Done!

Usage

The following methods are now avilable for you to use. (Examples are in Twig)

list_unique_product_option_values($name)

This method adds the ability to collect all unique product options values, of a given option type, for only the products in a specific category. To use create an instance of the class by passing a known category id.

{% set my_category = method('Extensions320ny_Shop_Category', 'create') %}

Then apply the method passing in a specific option type.

{% set option_values = my_category.find_by_id(current_category.id).list_unique_product_option_values("Color") %}

You now have an array of option values to iterate through.

About

Extensions to the Lemonstand Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published