Class: Magenthor::Catalog

Inherits:
Base
  • Object
show all
Defined in:
lib/magenthor/catalog.rb

Class Method Summary collapse

Methods inherited from Base

setup

Class Method Details

.additional_attribute_list(product_type, set_id) ⇒ Array, FalseClass

Get the list of all additional attributes

Parameters:

  • product_type (String)

    the type of the product

  • set_id (String, Integer)

    the attribute set id

Returns:

  • (Array, FalseClass)

    a list of all additional attributes or false



26
27
28
# File 'lib/magenthor/catalog.rb', line 26

def additional_attribute_list product_type, set_id
    commit('product.listOfAdditionalAttributes', [product_type, set_id])
end

.attribute_list(set_id) ⇒ Array, FalseClass

Get the list of a attribute set

Parameters:

  • set_id (String, Integer)

    the set id to get the attributes from

Returns:

  • (Array, FalseClass)

    a list of all attributes of the set or false



17
18
19
# File 'lib/magenthor/catalog.rb', line 17

def attribute_list set_id
    commit('catalog_product_attribute.list', [set_id])
end

.attribute_set_listArray, FalseClass

Get the list of all products sets

Returns:

  • (Array, FalseClass)

    a list of all attribute sets or false



9
10
11
# File 'lib/magenthor/catalog.rb', line 9

def attribute_set_list
    commit('catalog_product_attribute_set.list', [])
end