- Posts: 59
- Thank you received: 0
Products after deleting categories
If i delete a category with products inside... what happen after that to the products? Are they deleted too?
Please Log in or Create an account to join the conversation.
I looked at the code and there seems to be an error there. Right now if you do so, a proper link to the root category won't be created automatically and you won't be able to see the product in the listing. You should change the code
Another solution would be to add another category in the products before deleting the category. The link to the deleted category will be removed but the link to the other category will still be there and no additional link will be added.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I tried on my end with the modification I told you and it worked for me.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Curiously, if i look for those products through joomla search engine, they still are there, but nothing appears at the backend.
May you upload that php file in order to download and try it?
Also, i´d like to know how to set a main "product category" for all the products, i am not sure what are you talking about.
Please Log in or Create an account to join the conversation.
Then you will see your product again on the back end.
Please Log in or Create an account to join the conversation.
For example, if the missing product has the product_id 5. You could edit another product and replace &cid=2 (if 2 is the id of the other product) by &cid=5 and you will be able to edit the product and add another category to it so that it's again visible in the listing.
Please Log in or Create an account to join the conversation.
I do not need those products anymore, they were only testing products. I want to erase all my previous products in order to create new ones.
I tried to delete the product entries in database. I am not any kind of database nor squl expertise, but i tried erase them using common sense and your previous indications.
I proceeded this way:
- at hikashop_product_category: i listed all entries in product_id field and deleted them.
- at hikashop_product: i listed all entries in product_id field and also deleted them.
As a result, now all those testing products has dissappeared from searching results, but now i got an empty product in my backend with a curious behaviour: i can´t delete it and if i try to edit it, a new product is created with those new settings and this blank products remains.
I guess that i need to delete something more, but i do not know what.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
But if i go to hikashop_product, product_id, there is nothing inside. No entries.
I created a new product to check it, and this new product appears, but nothing with id=o.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Glad you found it.
Please Log in or Create an account to join the conversation.