Jump to content

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

Product Image Pairing & Option Combinations Rate Topic   - - - - -

 
  • dhaupin
  • Newbie
  • Members
  • Join Date: 07-Apr 16
  • 12 posts

Posted 10 August 2017 - 09:02 PM #1

It seems pretty hard to mitigate which image loads as main for products. Is there a way to force image pairing to use the real product image instead of the first chosen option? Changing params in fn_gather_additional_products_data() doesnt change the behavior of what happens for main (type M image).

 

I want to do this in grid lists so that customers see the original product image instead of first option combination. It seems pretty intense to get the image pairing to use something different than what is in DB schema.

 

Anyone have thoughts on this? 

 

Thanks



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 9,716 posts

Posted 11 August 2017 - 12:04 AM #2

It should always use the 'M' image for creating thumbnails for list pages unless there is a specific thumbnail that was uploaded.

The image management within cs-cart is severely outdated. Main-pairs were applicable when one uploaded a details and a thumbnail for every product.  But since thumbs are auto-created, the whole image-pair concept is rather lame and overly complicates most image management activities.


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.


 
  • dhaupin
  • Newbie
  • Members
  • Join Date: 07-Apr 16
  • 12 posts

Posted 12 August 2017 - 12:17 AM #3

Ah i see why its like that i guess, considering an old style CS-Cart. In addition to the unreachable, didnt check earlier, but im hinkering that the M image is set at options combo save. Its already in the DB with relations to some entity right?

 

Its like the last few tasks have ran into overbuilt monolithic stuff like this. Its one thing to shim/hack/hardcode something in, but its not correct ya know?

 

If anyone has any tips to eloquently lasso down the image pairing to make it a bit more flexible, please share :) Ill do the same



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 9,716 posts

Posted 13 August 2017 - 07:50 PM #4

image pairs are set for many images that relate to products or product objects (like shipping, payments, etc.).

Alternate images (A) also have image_pairs. though most simply use the 'detailed' image and the 'image' (icon) is now mostly ignored other than for compatibility purposes.

 

To answer your last question; Rewrite it and have Main and Alternate imagery and make all thumbnails dynamically sized from their parent image. A compatibility routine for fn_get_image_pairs() would help with bridging the gap along with how downloaded images are handled (it's unique to cs-cart and could be made much simpler).


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.


 
  • dhaupin
  • Newbie
  • Members
  • Join Date: 07-Apr 16
  • 12 posts

Posted Today, 04:11 AM #5

Thank you man, i appreciate your time and experience. I wish i had a clone to assign tinkering jobs like the pairing routine, ya know? Haha.

 

If it is rewritten, we should all collab on it so its correct from the start. At the least, a community accepted shim :)



 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 1,924 posts

Posted Today, 06:56 AM #6

Does this help? https://store.cart-p...ges-add-on.htmland  https://store.cart-p...ges-add-on.html


When life hands you lemons, bring on the Tequila baby!