The apparel subproducts generate page displays the following error if no variation attributes have been defined:

Invalid argument supplied for foreach() in /home/darrenoh/public_html/modules/ecommerce/subproducts/subproducts.inc on line 45.

CommentFileSizeAuthor
#2 subproducts.inc.patch3.15 KBdarren oh

Comments

darren oh’s picture

Status: Active » Closed (duplicate)

There is a patch for this problem in issue 66752.

darren oh’s picture

Version: master » 4.7.x-1.x-dev
Assigned: Unassigned » darren oh
Status: Closed (duplicate) » Reviewed & tested by the community
StatusFileSize
new3.15 KB

That patch was not relevant. Here is a patch to fix this issue. It adds two lines to subproducts.inc.

darren oh’s picture

Assigned: darren oh » Unassigned

I'm de-assigning myself because I don't have CVS commit access. Someone else will need to commit this patch.

darren oh’s picture

Component: other » subproducts
darren oh’s picture

Marked issue 77368 as a duplicate of this issue. It's good to see I'm not the only one interested in this problem.

nedjo’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)