FAQ
I was digging into Spree Promotions to for a clien to turn promotions
on/off for specific products.

While doing so, I found that the PercentPerItem maps over an array of
Spree::Product Objects in order to make the Promotional Adjustment rather
than only compairing the thhe Spree::Product#id for a match.

See this,
https://github.com/spree/spree/blob/master/core/app/models/spree/calculator/percent_per_item.rb#L40,
for more code.

Is there a reason for this? If not, I'll put a pull request to compare the
Object ids rather than the whole ruby Object.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJun 3, '14 at 2:53a
activeJun 3, '14 at 8:00p
posts2
users2
websitespreecommerce.com
irc#RubyOnRails

2 users in discussion

Jeff Dutil: 1 post Weston Platter: 1 post

People

Translate

site design / logo © 2022 Grokbase