Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Display pictues for options

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-08-2007, 04:14 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default 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?
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #2  
Old 10-08-2007, 09:44 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default 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
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #3  
Old 10-08-2007, 10:09 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #4  
Old 10-08-2007, 10:38 PM
 
xtestedx xtestedx is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Sydney
Posts: 61
 

Default 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!
__________________
x-cart 4.1.11 yay finally starting to get the hang of this stuff!!
site: www.slixaustralia.com.au
Reply With Quote
  #5  
Old 10-18-2007, 11:08 AM
 
Widerimagellc Widerimagellc is offline
 

Member
  
Join Date: Dec 2006
Location: Pittsburgh, PA
Posts: 23
 

Default 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!
__________________
www.widerimage.com
XCART version 4.1.8
Reply With Quote
  #6  
Old 10-21-2007, 01:57 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:30 PM.

   

 
X-Cart forums © 2001-2020