Page 1 of 1

Cannot delete Custom SKU from Additional SKUS list

Posted: Tue Jan 12, 2016 1:02 pm
by ipapachristoudis
This problem drives me nuts.

I have extended Sku Main Entity, according to the tutorial.

Everything works fine, except one function.

At a product page, in the additional skus list, i can modify a Sku but i cannot delete it.

By using the Sku Default Entity, skus can be deleted.

Guys PLEASE give me a hint

Re: Cannot delete Custom SKU from Additional SKUS list

Posted: Wed Jan 13, 2016 6:58 am
by ipapachristoudis
Someone please. The project will be cancelled if i don't implement some features.

Please give a hint at least what to search for.

Re: Cannot delete Custom SKU from Additional SKUS list

Posted: Wed Mar 02, 2016 11:24 pm
by kunner
I had in a trouble like this situation.
in fact, I couldn't solve this problem.

In ProductImpl.java, there is explicit definition on additionalSkus - "SkuImpl.class"
So It can't switch our new entity automatically.

But you can solve it irregular way. (this way may illegal or violate to license, I don't know)
Make ProductImpl.java in Admin / Site Project, Same root package and Same Class name.
It would be override original BLC's ProductImpl.java.
You can refine additionalSkus's info.
Look like below.

@OneToMany(fetch = FetchType.LAZY, targetEntity = CustomSkuImpl.class, mappedBy = "product", cascade = CascadeType.ALL)