Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Product Images Duplicated And Renamed When Used For Multiple Products Rate Topic   * * * * * 1 votes

 
  • bethanym
  • Newbie
  • Trial users
  • Join Date: 11-Jan 19
  • 2 posts

Posted 11 January 2019 - 08:11 PM #1

I am having problems with CS-Cart duplicating and renaming my product images when they're used for multiple products.

 

Example: I use the same product image for 5 different products. When we import our images for our products CS-Cart will then create a copy and add a alpha numeric code to the end of the file name so then we have 5 of the same image. 1 original image and 4 others with a alpha numeric code added to the url string.

 

 

Example of what the file names look like when they're duplicated & renamed:

 

original.jpg

original_hte4-27.jpg

original_w3fq-3t.jpg

original_zxmx-9k.jpg

original_02o6-3t.jpg

 

Unfortunately it's not just five products being effected.  This same occurrence happens for every product (over 200 products) each with 3 or more products, so it's really started to pile up in the directory and makes it more difficult to manage the images.

 

This also can't be good for SEO.  GTMetrix even suggests serving resources from a consistent URL. 

 

How can I stop this from happening?



 
  • Os_rasheed
  • Newbie
  • Members
  • Join Date: 21-Jan 19
  • 13 posts

Posted 08 April 2019 - 11:25 AM #2

I have the same problem. and the help disk dosent help! they say need custimizing! I see it as an error in the system not a need from me. I hope we can solve this issue



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4638 posts

Posted 22 August 2019 - 03:45 PM #3

Did anyone solve this, I have 1 product and this product comes in many 30 colours and 7 sizes = 211 images for 1 product when it only needs 30 for the colours, the image doesnt need changing for the size

 

Thanks


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 547 posts

Posted 22 August 2019 - 05:05 PM #4

It is not possible to solve this without making a number of core changes due to how the way CS-Cart is built. There is no way to truly override queries or function calls. Eventhough this is very easy to implement, it is still not a thing in CS-Cart. The same as how they store content in serialized files, whilst if they just use PHP files the speeds are at least 29 times better (and yes this is on SSD storage) since PHP has opcache, which stores these things in memory as bytecode...

 

But hey, who are we to judge.


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11358 posts

Posted 22 August 2019 - 06:47 PM #5

But hey, who are we to judge.

 

Only customers and so-called partners. 

 

Cs-cart has destroyed my addon business and given they're already looking at a 4.11, makes me very uncomfortable since I've seen no discussion on what they're going to break this time.  I can't afford to keep having to play catch up every time they do a release now. 

 

Used to be that my V4 addons worked under any V4 version (only cursory testing was needed).  Starting with 4.10 that's no longer true.  Should have been a V5.  The new checkout should have been the addon, not the original.  Deprecating and renaming functions in point releases is a bad idea without any deprecation notices in the error log or even cs-cart's internal log in prior versions.... 

 

Their validations are simply a grep of source code for strings.  So a commented out function still returns a false positive scaring users.  Same as their file comparison for modified core files that doesn't strip white space before generating the checksum.  Hence simply opening a file and saving it can show it as modified even though no code modifications were made.  All very annoying and sucks up all my time explaining to customers not to worry....  Maybe.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4638 posts

Posted 22 August 2019 - 08:50 PM #6

I cant understand it, 1 product, 20 colours and 5 sizes = 100 images needed instead of 20

 

I have 4000 products with average of 5 colour variants, =20,000

But I have also 5 diff sizes = going to have 100,000 images uploaded when only 20,000 are needed

 

Next question, apart from server space, does this slow the process down in anyway on my dedicated server,.


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19687 posts

Posted 23 August 2019 - 05:06 AM #7

Did anyone solve this, I have 1 product and this product comes in many 30 colours and 7 sizes = 211 images for 1 product when it only needs 30 for the colours, the image doesnt need changing for the size

 

Thanks

 

Try to disable the "Allow own images for child variations" option in the "Product variations" addon settings


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 547 posts

Posted 23 August 2019 - 06:45 AM #8

Only customers and so-called partners. 

 

Cs-cart has destroyed my addon business and given they're already looking at a 4.11, makes me very uncomfortable since I've seen no discussion on what they're going to break this time.  I can't afford to keep having to play catch up every time they do a release now. 

 

Used to be that my V4 addons worked under any V4 version (only cursory testing was needed).  Starting with 4.10 that's no longer true.  Should have been a V5.  The new checkout should have been the addon, not the original.  Deprecating and renaming functions in point releases is a bad idea without any deprecation notices in the error log or even cs-cart's internal log in prior versions.... 

 

Their validations are simply a grep of source code for strings.  So a commented out function still returns a false positive scaring users.  Same as their file comparison for modified core files that doesn't strip white space before generating the checksum.  Hence simply opening a file and saving it can show it as modified even though no code modifications were made.  All very annoying and sucks up all my time explaining to customers not to worry....  Maybe.

 

Not even customers, they don't even listen to anyone but simtech. I have been hammering on upgrading the AWS SDK so that we could use things like SQS to queue emails or S3 for image storeage without having to include a 15MB SDK class from AWS in our addons. First thing they do when Simtech requires an SDK update for AWS, update the SDK within a matter of weeks. How are you supposed to work with people that want you to sell licenses for a few thousand euros a year in order to be a partner, if they don't even fulfill some of your requests...


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).