File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -98,3 +98,5 @@ export const MAGENTO_RELATED_PRODUCTS_LOADING = 'magento_related_products_loadin
9898export const MAGENTO_RELATED_PRODUCTS_SUCCESS = 'magento_related_products_success' ;
9999export const MAGENTO_RELATED_PRODUCTS_ERROR = 'magento_related_products_error' ;
100100export const MAGENTO_RELATED_PRODUCTS_CONF_PRODUCT = 'magento_related_products_conf_product_update' ;
101+
102+ export const MAGENTO_PRODUCT_RATING_OPTIONS = 'MAGENTO_PRODUCT_RATING_OPTIONS' ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515 MAGENTO_RELATED_PRODUCTS_CONF_PRODUCT ,
1616} from '../actions/types' ;
1717import { getPriceFromChildren } from '../helper/product' ;
18+ import * as types from '../actions/types' ;
1819
1920const INITIAL_STATE = {
2021 current : {
@@ -32,6 +33,7 @@ const INITIAL_STATE = {
3233 error : '' ,
3334 items : [ ] ,
3435 } ,
36+ ratingOptions : [ ] ,
3537} ;
3638
3739export default ( state = INITIAL_STATE , action ) => {
@@ -169,6 +171,9 @@ export default (state = INITIAL_STATE, action) => {
169171 relatedProducts,
170172 } ;
171173 }
174+ case types . MAGENTO_PRODUCT_RATING_OPTIONS : {
175+ return { ...state , ratingOptions : action . payload } ;
176+ }
172177 default :
173178 return state ;
174179 }
You can’t perform that action at this time.
0 commit comments