lib/two_performant.rb
#  Search for Products in a Product Store
Search for Products in a Product Store
Search for Products in a Product Store
def product_store_products_search(campaign_id, search, product_store_id='all', category=nil, page=1, perpage=6, sort='date', uniq_products=false)
    request = {
      'page'          => page,
      'perpage'       => perpage,
      'search'        => search,
      'category'      => category,
      'campaign_id'   => campaign_id,
      'sort'          => sort
    }
    request['uniq_products'] = uniq_products if uniq_products
    product_store_id = 'all' if !product_store_id
    self.hook("/product_stores/#{product_store_id}/searchpr.xml", "product-store-data", request, 'GET')
  end
def product_store_products_search ( campaign_id , search , product_store_id = 'all' , category = nil , page = 1 , perpage = 6 , sort = 'date' , uniq_products = false ) request = { 'page' => page , 'perpage' => perpage , 'search' => search , 'category' => category , 'campaign_id' => campaign_id , 'sort' => sort } request [ 'uniq_products' ] = uniq_products if uniq_products product_store_id = 'all' if ! product_store_id self . hook ( "/product_stores/#{product_store_id}/searchpr.xml" , "product-store-data" , request , 'GET' ) end
Search for Products in a Product Store
Search for Products in a Product Store
campaign_id
<not_specific>
search
<not_specific>
product_store_id
<not_specific>
category
<not_specific>
page
<not_specific>
perpage
<not_specific>
sort
<not_specific>
uniq_products
<not_specific>