Hublify provides some extra enriched datasets.

Products

product()

For getting products ....


Variants

A product can have variants.

  • Each variant of a product is in Hublify a standalone product-record with an own unique PCode.
  • Multiple variant-products are "grouped" to a variant-group by having all the same "master_pcode".


Interesting fields within the data-result:

Side-Info: Most of these fields are on-the-fly-enriched/-calculated fields by Hublify. Their intent is to make templating-life easier ...

 [xc__drvd_variants_prdv_size] => 
 [xc__drvd_variants_prdv_other] => 
 [xc__drvd_variants_cnt] => 3
 [xc__drvd_variants_label] => FL00007###FL00008###FL00009




  [drvd_variant_specification] => Default Title
  [xc__drvd_variants_price_min] => 234.0000
  [xc__drvd_variants_price_max] => 234.0000
  [xc__drvd_variants_offer_level] => 0


  [variants] => Array
        (
            [prdv_color] => Array
                (
                    [0] => Array
                        (
                            [value] => chrom
                        )
                    [1] => Array
                        (
                            [value] => transparent
                        )
                    [2] => Array
                        (
                            [value] => bronze
                        )
                )
        )


  [variants_fields] => Array
        (
            [prdv_color] => Array
                (
                    [db_col_raw] => prdv_color
                    [data_col] => xc__drvd_variants_prdv_color
                )
        )


  [xc__drvd_variants_prices] => Array
        (
            [min] => Array
                (
                    [brutto] => 1869
                    [netto] => 1570.59
                    [netto_internal] => 1570.5882
                )


            [max] => Array
                (
                    [brutto] => 1869
                    [netto] => 1570.59
                    [netto_internal] => 1570.5882
                )


        )

  // ------ 

  [drvd_selection_required] => 1
  [drvd_selection_type] => variant
  [drvd_selection_price_brutto] => 1869
  [drvd_selection_price_netto] => 1570.59
  [drvd_selection_price_type] => price_from



Bundles

Products can be bundled.

  • A bundle of products is itself an own standalone "product". That means it has an own pcode.
  • So this "bundle-product" can have own images, names, descriptions etc. !
    It even can be part of variant-group!
  • Bundles can be bundled again (basically unlimited nesting ...)


Interesting helpful fields, inside a "bundle-product"

If field "products_contain" is not empty - it is a bundle product!

PRODUCT DATA Array:  
[
  ...

  [prd_bundle_price_discount_perc] => ...
  [prd_bundle_resolve_mode] => ...
  [products_contain] => Array (

      [model] => cdb_record

      [data] => Array (                       // array of BUNDLED PRODUCTS !
          [0] => Array (
              [pcode] => FL00007
              [name] => KTribe W Wandleuchte
              [primaryValue] => FL00007
              [primaryKey] => pcode
              [displayValue] => KTribe W Wandleuchte
              [displayKey] => name
              ...
              [r2r_pos] => 1                           // Position within bundle (in case it is important...)
              [r2r_xdata] => Array (                   // BUNDLED DETAIL INFOS in here !
                  [quantity] => 1                      //   - Quantity this product is contained in bundle!
                  [allow_variants] => false
                  [title] => "SubItem Bundle TITEL text"
                  [teaser] => "SubItem Bundle TEASER"
              )
           )
      )
  ...
]