X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Anyone know a mod that applies images based on custom properties? (https://forum.x-cart.com/showthread.php?t=40318)

GeeCee 06-06-2008 04:20 AM

Anyone know a mod that applies images based on custom properties?
 
Hi,

I want to display images down the right hand side of the product details page, based on specific properties of a product. E.g. if it has Widget A, show the Widget A image, etc.

Is there there another way other than manually adding the html to do this on each and every product description? For example, I'd like to export a list of products, with columns or some parameter for options, specify options that apply to each product in an nice Excel spreadsheet, then upload the lot and have the option specific images displayed appropriately.

Anyone know a mod that does this?

Ta.

intel352 06-06-2008 04:27 AM

Re: Anyone know a mod that applies images based on custom properties?
 
you could add a new field to the products table, have it as a single char field, and set up IF statements in skin1/customer/main/product.tpl to display images per the char setting

You already know how to add a field to the import/export, too :-)

GeeCee 06-06-2008 04:32 AM

Re: Anyone know a mod that applies images based on custom properties?
 
I *could* hack around with a log of things. ;-) Although if I was going to add a single column, it would have to be a 32-bit integer and have a bit per image. :p

However I was looking for a nice mod that had done the hard work for me. E.g. it would also need an admin screen to setup the html. In fact, it could be a complete html template driven thing, no real need to restrict it to images at all. So if you specify option A, you get all of option A html. Then there's issues of updating the product edit screens to allow selection through the UI etc.

intel352 06-06-2008 05:01 AM

Re: Anyone know a mod that applies images based on custom properties?
 
updating product admin screen is pretty simple, i could post some sample code for that.

regarding what you're talking about, sounds like you're essentially looking for an Ad Banner system, except hijacked for use with Products :-) (and without the random display)

GeeCee 06-06-2008 06:02 AM

Re: Anyone know a mod that applies images based on custom properties?
 
I'll just add it to the list of mods i'll one day write. ;)


All times are GMT -8. The time now is 12:01 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.