Skip to content

Instantly share code, notes, and snippets.

+function ($) { "use strict";
var LiveFilter = {
initialize: function() {
if($('#live_filter_form').length) {
LiveFilter.initLocationFilterReload()
LiveFilter.initializeCheckBoxGroup()
LiveFilter.initializeClosedPropFilters()
LiveFilter.initializeChangeLocationClearMap()
LiveFilter.form = $('#live_filter_form')
def find_properties(query_options = {})
Property.
where(publish_prices: true).
where("(properties.sale AND properties.sale_price > 0) OR (properties.rental AND properties.rent > 0)").
joins(:property_images).
scoped_for_sitemap(query_options, true).
includes(organization: [:import_batch]).
where("(organizations.import_batch_id IS NULL OR import_batches.format <> ?)", EXCLUDE_FROM_IMPORT_BATCH).
uniq.
extend(KaminariAutoPaginate)
class EasybrokerFeedGenerator < FeedGenerator
EASY_AVISO_FEED_NAME = "EasyAviso"
VERSION = '1.0'
def conditions_for_country(country)
{
:conditions => "countries.id = #{country.id}",
:order => 'properties.organization_id ASC, properties.id ASC' # we sort them by agency on xml
}
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/newrelic_rpm-3.13.0.299/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/railties-4.2.4/lib/rails/engine.rb:514:in `call'
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/railties-4.2.4/lib/rails/application.rb:246:in `env_config'
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/railties-4.2.4/lib/rails/application.rb:534:in `validate_secret_key_config!'
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/newrelic_rpm-3.13.0.299/lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call'
App 614390 stderr: from /home/concili/rubyvenv/rankingdesk__com/2.1/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
App 614390 stderr: fr
diff --git a/app/models/product.rb b/app/models/product.rb
index 85a74bd..85d04b0 100644
--- a/app/models/product.rb
+++ b/app/models/product.rb
@@ -668,7 +668,8 @@ class Product < ActiveRecord::Base
:is_returnable,
:show_as,
:display_all_measurements,
- :inventory_classification_id
+ :inventory_classification_id,
(function() {
var options = {
productsSearchPath: '/s/Sites-modcloth-Site/dw/shop/v16_9/product_search',
productsPath: '/s/Sites-modcloth-Site/dw/shop/v16_9/products/({product_ids})',
apiParams: {
client_id: 'dd7cd63e-1cac-4ebb-ad88-618de6960926',
sort: 'bestSellers',
expand: 'images,prices',
},
searchOptions: {
cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1.minutes)
cache.fetch('CLIENT_ID') do
client = Savon.client(wsdl: 'http://service.example.com?wsdl')
client.body
end
NameVirtualHost *:80
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
<shipping_order_advice_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction i:type="shipping_order_advice_instruction_approve" /></instruction>
</instructions>
<key>
<guid>shipping_order_guid</guid>
</key>
</shipping_order_advice_request>
<?xml version='1.0' encoding='UTF-8'?>
<shipping_order_advice_request xmlns="urn:demandware.com:bf:api:core:v1">
<instructions>
<instruction xmlns="urn:demandware.com:bf:api:core:v1" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:type="shipping_order_advice_instruction_cancel_item">
<key>
<id>item_id</id>
</key>
<quantity>qty</quantity>
<reason>reason</reason>
<suppress_order_suspension>false</suppress_order_suspension>