Skip to main content
Magento

Return to Question

Notice removed Draw attention by Community Bot
Bounty Ended with no winning answer by Community Bot
Tweeted twitter.com/StackMagento/status/890569779391717378
added 52 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105

This seems to work perfectly and allowing me to remove all products with tier prices set to "all_group" and i seem to haveleaving just my collection of tier priced products within signed in users customer group. Feel a bit gutted i wasted the bounty now :P

This seems to work perfectly and allowing me to remove all products with tier prices set to "all_group" and i seem to have my collection. Feel a bit gutted i wasted the bounty now :P

This seems to work perfectly allowing me to remove all products with tier prices set to "all_group" leaving just my collection of tier priced products within signed in users customer group. Feel a bit gutted i wasted the bounty now :P

added 128 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105

So i have added a join to the collection and filtered by all tier prices set to 0 to remove the tier prices for all groups:

This has allowedseems to work perfectly and allowing me to remove all "all_group"products with tier prices set to "all_group" and i seem to have my collection. Feel a bit gutted i wasted the bounty now :P

So i have added a join to the collection:

This has allowed me to remove all "all_group" tier prices and i seem to have my collection. Feel a bit gutted i wasted the bounty now :P

So i have added a join to the collection and filtered by all tier prices set to 0 to remove the tier prices for all groups:

This seems to work perfectly and allowing me to remove all products with tier prices set to "all_group" and i seem to have my collection. Feel a bit gutted i wasted the bounty now :P

added 60 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105

How is a collection like above filtered to achieve this?

UPDATE

I receiveThe above filter works giving me the products with tier prices however this also shows the onesproducts for all groups also which i need to filter out. Something like below:

Upon looking at the database in the "catalog_product_index_price" price table there just seems to be a record set for each group id when all group is selected, so to solve this i think I can join this table to the 'catalog_product_entity_tier_price' table so that i can then filter out products that have the all_groups row set to 1 as this seems to have the data i need.

UPDATE

I receive the products with tier prices however this shows the ones for all groups also which i need to filter out. Something like:

Upon looking at the database there just seems to be a record set for each group id, so to solve this i think I can join this table to the 'catalog_product_entity_tier_price' table so that i can then filter out products that have the all_groups row set to 1 as this seems to have the data i need.

How is a collection like above filtered to achieve this?

UPDATE

The above filter works giving me the products with tier prices however this also shows the products for all groups also which i need to filter out. Something like below:

Upon looking at the database in the "catalog_product_index_price" price table there just seems to be a record set for each group id when all group is selected, so to solve this i think I can join this table to the 'catalog_product_entity_tier_price' table so that i can then filter out products that have the all_groups row set to 1 as this seems to have the data i need.

deleted 2326 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 23 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 516 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 218 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 218 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 201 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 1212 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 1212 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 1899 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 1899 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
Notice added Draw attention by harri
Bounty Started worth 50 reputation by harri
added 11 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 397 characters in body
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
added 121 characters in body; edited title
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
Source Link
harri
  • 5.6k
  • 6
  • 48
  • 105
Loading
default

AltStyle によって変換されたページ (->オリジナル) /