X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Display pictues for options (https://forum.x-cart.com/showthread.php?t=34464)

xtestedx 10-08-2007 04:14 PM

Display pictues for options
 
i was looking for a solution so any comments appreciated! I was looking for pictures to correspond with and option selection and ajax if possible. or even something like this http://fashionfish.com.au/shop/product_info.php?cPath=2&products_id=39. but rather than selection dots perhaphs just clicking on fabric? has someone got a mod like this yet?

xtestedx 10-08-2007 09:44 PM

Re: Display pictues for options
 
inebriate, your post hasnt shown up yet in the forum but i'll reply anyway. i was wondering what i should look at editing to achieve this? will I need to use javascript? i read somewhere of one guy who modified detailed images so that when an option is selected the page refreshed to the correct picture

inebriate 10-08-2007 10:09 PM

Re: Display pictues for options
 
i deleted the previous post since it dealt with dynamic images rather than having images assigned to options


but to do what the link you posted showed...
in the for loop (assuming you have your options set up as radios) inside the customer_options.tpl page you would put
the image tag before/after the corresponding radio button

but you must have a naming scheme to do this
ie:
{foreach blahblahblah}
<input type="radio" blahblahblah><img src="{thesmartyvarfortheponame}-{thesmartyvarfortheoptionid}.jpg">
{/foreach}

if you just want to click on the fabric without the radios, then you do something similar
but now you would include a hidden input (this will be passed onto the add product function) and set the onclick of the image to a javascript script that changes the value of the hidden input...at least thats how i would approach it

...im not going to go in too much detail since the mod i am working on to sell incorporates this as well as many other things for product options

xtestedx 10-08-2007 10:38 PM

Re: Display pictues for options
 
so how far are you away from finishing this mod and i'll just buy it! if you've already started. Anyway sounds great and keep me posted cause I don't really want to start my own mod as i have my HSC in 2 weeks!

Widerimagellc 10-18-2007 11:08 AM

Re: Display pictues for options
 
Hello,

I just wanted to see when this mod will be coming out. I am VERY interested in this for my site. Thanks!

inebriate 10-21-2007 01:57 PM

Re: Display pictues for options
 
i had to delay my mod since i was busy with other stuff, but i am working on it again and hope to have it out as soon as i can


All times are GMT -8. The time now is 08:52 AM.

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