Skip to content

Update editCategory#14501

Closed
mhcwebdesign wants to merge 1 commit intoopencart:masterfrom
mhcwebdesign:mhcwebdesign-patch-2
Closed

Update editCategory#14501
mhcwebdesign wants to merge 1 commit intoopencart:masterfrom
mhcwebdesign:mhcwebdesign-patch-2

Conversation

@mhcwebdesign
Copy link
Copy Markdown
Contributor

When editing e.g. category 'Components' and then saving it, then all the SEO keywords from its sub-categories, such as 'Components > Mice and Trackballs', 'Components > Monitors', etc., are accidentally deleted.

This bugfix restores the old editCategory function taken from OC 4.0.2.3 where this issue didn't exist.

When editing e.g. category 'Components' and then saving it, then all the SEO keywords from its sub-categories, such as 'Components > Mice and Trackballs', 'Components > Monitors', etc., are accidentally deleted.

This bugfix restores the old editCategory function taken from OC 4.0.2.3 where this issue didn't exist.
@mhcwebdesign mhcwebdesign mentioned this pull request Feb 12, 2025
@stalker780
Copy link
Copy Markdown
Contributor

OC4.1 have no column and top fields in oc_category

Looks like my solution does the same, but uses new OC4.1 model methods to collect the path and seo_url data instead of direct SQL queries.

@mhcwebdesign
Copy link
Copy Markdown
Contributor Author

mhcwebdesign commented Feb 12, 2025

OC4.1 have no column and top fields in oc_category

Looks like my solution does the same, but uses new OC4.1 model methods to collect the path and seo_url data instead of direct SQL queries.

OC 4.1.0.0 does not have the 'top' field anymore in the 'oc_category', but there is still a 'column' field.
I'll try your solution to see whether it does the job.

@mhcwebdesign mhcwebdesign deleted the mhcwebdesign-patch-2 branch March 18, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants