Closed Godweed closed 10 years ago
Hi @Godweed, can you please show us you Gemfile.lock
lines for spree_fancy and spree itself?
It sounds like you're not on the latest commit which is supposed to fix this exact issue.
See #102.
Hi @radar please find github.lock file related lines as below, thank you
remote: git://github.com/spree/spree_fancy.git revision: 568825d5d81c225bbe9b40cfa56c15e003ead755 branch: 2-2-stable specs: spree_fancy (1.3.0) compass-rails deface (~> 1.0.0rc3) jquery-ui-rails spree_core (~> 2.2.0.beta)
spree_core (2.2.0) activemerchant (~> 1.42.3) acts_as_list (= 0.3.0) awesome_nested_set (~> 3.0.0.rc.3) aws-sdk (= 1.27.0) cancan (~> 1.6.10) deface (~> 1.0.0) ffaker (~> 1.16) friendly_id (= 5.0.3) highline (~> 1.6.18) httparty (~> 0.11) json (~> 1.7) kaminari (~> 0.15.0) paperclip (~> 3.4.1) paranoia (~> 2.0) rails (~> 4.0.3) ransack (~> 1.1.0) state_machine (= 1.2.0) stringex (~> 1.5.1) truncate_html (= 0.9.2)
Hi @Godweed, you are currently 3 commits behind the latest 2-2-stable. 04419d25f45d9acae02ee5447e238b4ad9e8a94c is one of those commits, and is the commit that will fix your issue.
Please update.
@radar Hi again, I updated but the same problem persists; GIT remote: git://github.com/spree/spree_fancy.git revision: 023f6144439f7e87db0547d36e27b971965973ee ref: 023f6144439f7e87db0547d36e27b971965973ee specs: spree_fancy (1.3.0) compass-rails deface (~> 1.0.0rc3) jquery-ui-rails spree_core (~> 2.2.0.beta) GIT remote: git://github.com/spree/spree.git revision: ef8ac051f7fd8e90d1e8786d3f63d3ae766c7c6a ref: ef8ac051f7fd8e90d1e8786d3f63d3ae766c7c6a specs: spree (2.2.2.beta) spree_api (= 2.2.2.beta) spree_backend (= 2.2.2.beta) spree_cmd (= 2.2.2.beta) spree_core (= 2.2.2.beta) spree_frontend (= 2.2.2.beta) spree_sample (= 2.2.2.beta) spree_api (2.2.2.beta) rabl (= 0.9.3) spree_core (= 2.2.2.beta) versioncake (~> 1.2.0) spree_backend (2.2.2.beta) jquery-rails (~> 3.1.0) jquery-ui-rails (~> 4.1.0) select2-rails (~> 3.4.7) spree_api (= 2.2.2.beta) spree_core (= 2.2.2.beta) spree_cmd (2.2.2.beta) thor (~> 0.14) spree_core (2.2.2.beta) activemerchant (~> 1.42.3) acts_as_list (= 0.3.0) awesome_nested_set (~> 3.0.0.rc.3) aws-sdk (= 1.27.0) cancan (~> 1.6.10) deface (~> 1.0.0) ffaker (~> 1.16) friendly_id (= 5.0.3) highline (~> 1.6.18) httparty (~> 0.11) json (~> 1.7) kaminari (~> 0.15.0) paperclip (~> 3.4.1) paranoia (~> 2.0) rails (~> 4.0.3) ransack (~> 1.1.0) state_machine (= 1.2.0) stringex (~> 1.5.1) truncate_html (= 0.9.2) spree_frontend (2.2.2.beta) canonical-rails (~> 0.0.4) jquery-rails (~> 3.1.0) spree_api (= 2.2.2.beta) spree_core (= 2.2.2.beta) stringex (~> 1.5.1) spree_sample (2.2.2.beta) spree_core (= 2.2.2.beta)
Now I can add the same product with variants from slider but from product page when I am trying to add product to cart it renders 404 again
I am able to add product without variants from show page and slider but in case of product have variants i could not able to add it from product page but adding to cart works in slider at home page.
as far as I realized the below part in replace_varaints_selection_markup_to_fit_for_jquery_ui.html.erb.deface is causing problem.
<%= radio_button_tag "products[#{@product.id}]", v.id, checked, :disabled => !v.can_supply?, 'data-price' => v.price_in(current_currency).display_price %>
@radar the commit from #102 only changes the code on the slider. Trying to add an item from the product page itself still fails.
On product pages, the code generated looks like:
<input checked="checked" data-price="$2.50" id="products_1_7" name="products[1]" type="radio" value="7" /><label for="products_1_7">
<span class="variant-description">
Color: Sapphire, Diameter: 10mm</span>
</label>
Using the Spree sample data...
From the slider, adding to cart produces these logs:
Started POST "/orders/populate" for 127.0.0.1 at 2014-04-18 13:27:52 -0400
Processing by Spree::OrdersController#populate as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ej9EpPyfnQq0h/x/7+Uk2hEMA46dvkCZ09eMKKCX3yg=", "quantity"=>"1", "variant_id"=>"3"}
[1m[36mSpree::Preference Load (0.2ms)[0m [1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1[0m
[1m[35mSpree::User Load (0.4ms)[0m SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1
[1m[36mSpree::Order Load (0.5ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND "spree_orders"."created_by_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["user_id", 1]]
[1m[35mSpree::Order Load (0.3ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = 3 AND "spree_orders"."currency" = 'USD' LIMIT 1
[1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (3) ORDER BY spree_adjustments.created_at ASC[0m
[1m[35mSpree::Order Load (0.2ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" IS NULL LIMIT 1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin'[0m [["user_id", 1]]
[1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", "3"]]
[1m[36mSpree::LineItem Load (0.2ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY created_at ASC[0m [["order_id", 3]]
[1m[35m (0.1ms)[0m begin transaction
[1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? ORDER BY "spree_variants"."id" ASC LIMIT 1[0m [["id", 3]]
[1m[35mSpree::Product Load (0.3ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? ORDER BY "spree_products"."id" ASC LIMIT 1 [["id", 3]]
[1m[36mSpree::TaxCategory Load (0.2ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSpree::Variant Load (0.4ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = 3 LIMIT 1
[1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'[0m
[1m[35mSQL (0.6ms)[0m UPDATE "spree_line_items" SET "quantity" = ?, "updated_at" = ? WHERE "spree_line_items"."id" = 4 [["quantity", 2], ["updated_at", Fri, 18 Apr 2014 17:27:52 UTC +00:00]]
[1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-04-18 17:27:52.737944' WHERE "spree_orders"."id" = 3[0m
[1m[35mSpree::LineItem Load (0.4ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 4]]
[1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC LIMIT 1 [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[36mSQL (1.1ms)[0m [1mUPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-04-18 17:27:52.751988' WHERE "spree_line_items"."id" = 4[0m
[1m[35m (4.7ms)[0m commit transaction
[1m[36m (0.2ms)[0m [1mSELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 3]]
[1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 3], ["adjustable_type", "Spree::Order"]]
[1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 3]]
[1m[35m (0.2ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 3]]
[1m[36m (0.2ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::Order"]]
[1m[35m (0.4ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 3]]
[1m[36m (0.2ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 3]]
[1m[35m (0.5ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 3]]
[1m[36m (0.3ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 3]]
[1m[35mSQL (6.3ms)[0m UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 59.97, "item_count" = 3, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "total" = 59.97, "updated_at" = '2014-04-18 17:27:52.800187' WHERE "spree_orders"."id" = 3
[1m[36mSpree::Order Load (0.3ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 3]]
[1m[35mSpree::Promotion Load (0.2ms)[0m SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2014-04-18 17:27:52.813207') AND (expires_at IS NULL OR expires_at > '2014-04-18 17:27:52.813762') AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL
[1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1[0m [["id", 4]]
[1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]]
[1m[35mSQL (4.8ms)[0m UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2014-04-18 17:27:52.818040' WHERE "spree_line_items"."id" = 4
[1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 3]]
[1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY created_at ASC [["order_id", 3]]
[1m[36mSpree::Adjustment Load (0.4ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC[0m [["adjustable_id", 3], ["adjustable_type", "Spree::Order"]]
[1m[35m (0.2ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 3]]
[1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 3], ["adjustable_type", "Spree::Order"]]
[1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 3]]
[1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 3]]
[1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 3]]
[1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 3]]
[1m[36mSQL (4.2ms)[0m [1mUPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 59.97, "item_count" = 3, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "total" = 59.97, "updated_at" = '2014-04-18 17:27:52.838233' WHERE "spree_orders"."id" = 3[0m
[1m[35mSpree::Order Load (0.2ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 3]]
[1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? ORDER BY "spree_variants"."id" ASC LIMIT 1[0m [["id", 3]]
[1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? ORDER BY "spree_products"."id" ASC LIMIT 1 [["id", 3]]
[1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]]
[1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = 3 LIMIT 1
[1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'[0m
[1m[35mSpree::Order Load (0.3ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? ORDER BY "spree_orders"."id" ASC LIMIT 1 [["id", 3]]
[1m[36mSpree::Shipment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1[0m [["order_id", 3]]
Redirected to http://localhost:3000/cart
Completed 302 Found in 229ms (ActiveRecord: 34.9ms)
From the product page, adding a variant to cart produces these logs:
Started POST "/orders/populate" for 127.0.0.1 at 2014-04-18 13:28:16 -0400
Processing by Spree::OrdersController#populate as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ej9EpPyfnQq0h/x/7+Uk2hEMA46dvkCZ09eMKKCX3yg=", "products"=>{"3"=>"18"}, "quantity"=>"1"}
^[[1m^[[36mSpree::Preference Load (0.2ms)^[[0m ^[[1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/frontend_configuration/locale' LIMIT 1^[[0m
^[[1m^[[35mSpree::User Load (0.4ms)^[[0m SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1
^[[1m^[[36mSpree::Order Load (0.3ms)^[[0m ^[[1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND "spree_orders"."created_by_id" = 1 ORDER BY created_at DESC LIMIT 1^[[0m [["user_id", 1]]
^[[1m^[[35mSpree::Order Load (0.2ms)^[[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = 3 AND "spree_orders"."currency" = 'USD' LIMIT 1
^[[1m^[[36mSpree::Adjustment Load (0.2ms)^[[0m ^[[1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (3) ORDER BY spree_adjustments.created_at ASC^[[0m
^[[1m^[[35mSpree::Order Load (0.2ms)^[[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" IS NULL LIMIT 1
^[[1m^[[36m (0.2ms)^[[0m ^[[1mSELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin'^[[0m [["user_id", 1]]
Rendered public/404.html (0.4ms)
Completed 404 Not Found in 30ms (Views: 8.7ms | ActiveRecord: 1.9ms)
TL;DR version:
From slider you get:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ej9EpPyfnQq0h/x/7+Uk2hEMA46dvkCZ09eMKKCX3yg=", "quantity"=>"1", "variant_id"=>"3"}
And from cart page you get:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ej9EpPyfnQq0h/x/7+Uk2hEMA46dvkCZ09eMKKCX3yg=", "products"=>{"3"=>"18"}, "quantity"=>"1"}
Hello I am trying to upgrade 2-1 stable to 2-2 stable. I made a fresh install as below I am creating a product and it works as normal can be added to shopping card. I am creating a prototype with options. And after that created a product with prototype when trying to add that product to card it renders 404, If I created a normal product without variants it works without problem
my gem file is like below,
and below is the log:
1) rails 4.0.3 new mytest add gem 'spree', github: 'spree/spree', branch: '2-2-stable' gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-2-stable' to gem file bundle install rails g spree:install --sample=false --seed=true 2) go to admin area 3) click products 4) click option types 5) add option type name: renk presentation: reede 6) add option values name: #434343 presentation: reede name: #848848 presentation: ewewe 7) click prototypes add one 8) name 3D option types reede click create 9)click products click new product 10) name: deded prototype 3d masterprice 100 avaible on 2014/03/19 shipping categories default ariants select all click create 11) go to store add product to shopping cart works 12) add gem 'spree_static_content', :github => 'spree/spree_static_content', :branch => ‘2-2-stable' gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => ‘2-2-stable' to gem file 13) bundle install 14)bundle exec rails g spree_fancy:install bundle exec rails g spree_static_content:install 15) go to product you are getting show_zero_stock_products preference not defined 16) go to config/initializers/spree.rb and add config.track_inventory_levels = false 17) restart server and go to product 18)backtoproduct list and add a new product with protorype again (go back to 10) 19)now you can see the product show page without error 20) add new product to add to card button you are getting http://localhost:3000/orders/populate 404 error as now I realized this error is I guess related with spree_fancy or spree_static_content plug_ins