[Skip to main content](#vessel-content)

#   charataristics not changing , after removal

##

- **[reace](/forum/user/272-reace "View reace's Profile")**
- [![reace's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar272.gif)](/forum/user/272-reace "View reace's Profile") Topic Author
- [ Offline](/forum/user/272-reace)
- Entrepreneur

Less More

- Posts: 93
- Thank you received: 5
-
-
-
-

15 years 11 months ago -  15 years 11 months ago [\#1821](#1821) by [reace](/forum/user/272-reace "View reace's Profile")  *[charataristics not changing , after removal](/forum/3-bug-report/1821-charataristics-not-changing-after-removal#1821 "ok there are several problems I have found but I will start with this one in particular at this point in time.  if you create a new product , and then assign characteristics to it with images then all is good  how ever if you then change your mind and delete the images from the char's they remain (in db under the name) as well as in the product page.  even if you delete the char's and re apply them (blank no images) the images remain.  only way around this for now is to remove the char's from the product  then recode the product then add the char's again.  That works.  I think that it is not removing them from the db which stores them under a slightly modified code to the product code. (if that makes sense) :blink:")* was created by *[reace](/forum/user/272-reace "View reace's Profile")*

ok there are several problems I have found but I will start with this one in particular at this point in time.

if you create a new product , and then assign characteristics to it with images then all is good

how ever if you then change your mind and delete the images from the char's they remain (in db under the name)
as well as in the product page.

even if you delete the char's and re apply them (blank no images) the images remain.

only way around this for now is to remove the char's from the product

then recode the product then add the char's again.

That works.

I think that it is not removing them from the db which stores them under a slightly modified code to the product code. (if that makes sense)
:blink:

---

you Guys are Awesome and have excellent Support! Keep up the great Work!.

Last edit: 15 years 11 months ago by [reace](/forum/user/272-reace "View reace's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xODIxLWNoYXJhdGFyaXN0aWNzLW5vdC1jaGFuZ2luZy1hZnRlci1yZW1vdmFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 11 months ago [\#1830](#1830) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: charataristics not changing , after removal](/forum/3-bug-report/1821-charataristics-not-changing-after-removal#1830 "ok there are several problems I have found but I will start with this one in particular at this point in time.  if you create a new product , and then assign characteristics to it with images then all is good  how ever if you then change your mind and delete the images from the char's they remain (in db under the name) as well as in the product page.  even if you delete the char's and re apply them (blank no images) the images remain.  only way around this for now is to remove the char's from the product  then recode the product then add the char's again.  That works.  I think that it is not removing them from the db which stores them under a slightly modified code to the product code. (if that makes sense) :blink:")*

I'm not sure I understand you.
You cannot assign an image to a characteristic. You can only assign images to categories, products and variants of products.

If the same image entry is assigned to several products/variants, the image won't be deleted until you removed the last product/variant which uses the file entry.

The code to handle a product deletion and a variant deletion is the same. So it works the same way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xODIxLWNoYXJhdGFyaXN0aWNzLW5vdC1jaGFuZ2luZy1hZnRlci1yZW1vdmFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[reace](/forum/user/272-reace "View reace's Profile")**
- [![reace's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar272.gif)](/forum/user/272-reace "View reace's Profile") Topic Author
- [ Offline](/forum/user/272-reace)
- Entrepreneur

Less More

- Posts: 93
- Thank you received: 5
-
-
-
-

15 years 11 months ago [\#1884](#1884) by [reace](/forum/user/272-reace "View reace's Profile")  Replied by *[reace](/forum/user/272-reace "View reace's Profile")* on topic *[Re: charataristics not changing , after removal](/forum/3-bug-report/1821-charataristics-not-changing-after-removal#1884 "ok there are several problems I have found but I will start with this one in particular at this point in time.  if you create a new product , and then assign characteristics to it with images then all is good  how ever if you then change your mind and delete the images from the char's they remain (in db under the name) as well as in the product page.  even if you delete the char's and re apply them (blank no images) the images remain.  only way around this for now is to remove the char's from the product  then recode the product then add the char's again.  That works.  I think that it is not removing them from the db which stores them under a slightly modified code to the product code. (if that makes sense) :blink:")*

sorry what I ment is that I can assign an image to a variant of a product , what I have done is simply created 1 char for the product (for example candles).

the char's for this product are different sizes / colour's so actually I have 2 char's for this product.

if I then proceed to setup the images for each variant of the product it works fine.

how-ever what happened was i used the wrong images for the related variants and had to go back over them and replace with either new images or remove the images assigned to each variant. Which is what I done.

so I managed the variants and removed all images from each of the variants within the colour's char's and saved without problem.

cleared cache and browser cache 'ctrl+shift+del' and then previewed the site expecting to have the default image show for all variants for the product.

but.. instead the old images were still there.... which is what led me to find a away to remove them.

I then noticed that the images derived their property names from the product 'code' and thought that in order to remove the images I simply needed to change the product code which would in effect change the pointers to the images from the old one's to new one's , and being none there it would use the default image . Which it has done.

note that removing and re-adding the char's does not work. Only by changing the product code could i Remove the images from the shopfront.

---

you Guys are Awesome and have excellent Support! Keep up the great Work!.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xODIxLWNoYXJhdGFyaXN0aWNzLW5vdC1jaGFuZ2luZy1hZnRlci1yZW1vdmFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 11 months ago [\#1887](#1887) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: charataristics not changing , after removal](/forum/3-bug-report/1821-charataristics-not-changing-after-removal#1887 "ok there are several problems I have found but I will start with this one in particular at this point in time.  if you create a new product , and then assign characteristics to it with images then all is good  how ever if you then change your mind and delete the images from the char's they remain (in db under the name) as well as in the product page.  even if you delete the char's and re apply them (blank no images) the images remain.  only way around this for now is to remove the char's from the product  then recode the product then add the char's again.  That works.  I think that it is not removing them from the db which stores them under a slightly modified code to the product code. (if that makes sense) :blink:")*

Mmm. I cannot agree with you unfortunately ![:/](/irritated.gif ":/")

The images are all stored in the table hikashop_file. In this table, the file_ref_id stores the id of the entity to which the image is attached (a product id, a variant id, a category id) and the file_type column stores the type of the image: product for product and variant images. That's the only link between an image and a variant. Changing the code of a variant does not have any impact on the images of the variant/product.

Here is what I think happened: You clicked on the delete icon of the images WITHOUT saving the product/variant. If you do that, the modification isn't taken into account. Then, you checked on another tab your front end and indeed the image was still there. Then, you changed the code and saved and at that time the deletion of the image was taken into account.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xODIxLWNoYXJhdGFyaXN0aWNzLW5vdC1jaGFuZ2luZy1hZnRlci1yZW1vdmFsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.090 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
