@@ -389,11 +389,6 @@ protected function _applyCustomOption()
389
389
'csg.group_id = cw.default_group_id ' ,
390
390
array ()
391
391
)
392
- ->join (
393
- array ('cs ' => $ this ->getTable ('core/store ' )),
394
- 'cs.store_id = csg.default_store_id ' ,
395
- array ()
396
- )
397
392
->join (
398
393
array ('o ' => $ this ->getTable ('catalog/product_option ' )),
399
394
'o.product_id = i.entity_id ' ,
@@ -411,7 +406,7 @@ protected function _applyCustomOption()
411
406
)
412
407
->joinLeft (
413
408
array ('otps ' => $ this ->getTable ('catalog/product_option_type_price ' )),
414
- 'otps.option_type_id = otpd.option_type_id AND otpd .store_id = cs.store_id ' ,
409
+ 'otps.option_type_id = otpd.option_type_id AND otps .store_id = csg.default_store_id ' ,
415
410
array ()
416
411
)
417
412
->group (array ('i.entity_id ' , 'i.customer_group_id ' , 'i.website_id ' , 'o.option_id ' ));
@@ -468,11 +463,6 @@ protected function _applyCustomOption()
468
463
'csg.group_id = cw.default_group_id ' ,
469
464
array ()
470
465
)
471
- ->join (
472
- array ('cs ' => $ this ->getTable ('core/store ' )),
473
- 'cs.store_id = csg.default_store_id ' ,
474
- array ()
475
- )
476
466
->join (
477
467
array ('o ' => $ this ->getTable ('catalog/product_option ' )),
478
468
'o.product_id = i.entity_id ' ,
@@ -485,7 +475,7 @@ protected function _applyCustomOption()
485
475
)
486
476
->joinLeft (
487
477
array ('ops ' => $ this ->getTable ('catalog/product_option_price ' )),
488
- 'ops.option_id = opd.option_id AND ops.store_id = cs.store_id ' ,
478
+ 'ops.option_id = opd.option_id AND ops.store_id = csg.default_store_id ' ,
489
479
array ()
490
480
);
491
481
0 commit comments