Fix issue value of option attribute product when trying a product export

Created by Rosa Truong, Modified on Fri, 2 Oct, 2020 at 2:23 PM by Rosa Truong

Issue

We have got an issue when we try a Product Export.

When further investigated we found that the issue is due to Pro Configurable View(pro_configurable_view) drop-down attribute.

The drop-down attribute should have values with Label / Value pair array. So It tries to find the value index in the array variable but for this attribute, It can’t be found at it is having Yes/No value which is assigned via Source Model.

We have investigated further and found that Source Model which is being used for Drop-down option is having 0(Zero) value of Yes and 1(One) value of No option and logic of the extension also depends on this value.

Extension is also using the CONST variables for Yes/No values as below:

CONST PRODUCT_PRO_VIEW_ENABLED = 0;
CONST PRODUCT_PRO_VIEW_DISABLED = 1;

Could you please provide a fix for this?


Solution:


This issue is caused due to our module's bug.

Thus, we would like to give the solution to fix it on your site.

We have modified this file app/code/Bss/Configurablegridview/Model/Source/Option.php (please check the attachment for the details)

Please check, replace the fixed file, and then flush the cache on your site.


If you need any further support, please feel free to email us at sales@bsscommerce.com 

We'd like to help.


Attachments (1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article