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

Very Cool Detailed Images Mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-02-2004, 10:10 PM
 
Donne Giovani Donne Giovani is offline
 

Member
  
Join Date: Nov 2002
Posts: 27
 

Default Very Cool Detailed Images Mod

Hey guys -

Take a look at the following URL -

http://www.angelacarol.com/customer/product.php?productid=547

I have tried to get this to work and I got the images to show up, but I can not get them to link to the specific image.

Can someone help me with this?

Thanks so much,

David Young
Reply With Quote
  #2  
Old 05-03-2004, 07:37 AM
 
Donne Giovani Donne Giovani is offline
 

Member
  
Join Date: Nov 2002
Posts: 27
 

Default Nevermind, I got it...

Guys -

Nevermind.

I got it to work.

Thanks,

David Young
Reply With Quote
  #3  
Old 05-03-2004, 09:41 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Hmmm...

I am glad that you like the way I did that
Reply With Quote
  #4  
Old 05-10-2004, 09:39 AM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

How DID you do that? Would you like to share?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #5  
Old 05-15-2004, 06:09 AM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

telafirma

Any chance of telling us how you setup your product validation.

How did you get it to work on only one product option?

I can't figure out how to do it without having to put validation in for all options.

Nice Site.
Reply With Quote
  #6  
Old 05-15-2004, 07:19 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Thank you for the compliment on the site

Well, there is a littel bit going on there. First, I wanted to display the "name" of the option within the dropdowns. So, I had to modify the product.tpl file from this:
Code:
<select name=amount> {if $product.min_amount le 1} {assign var="start_quantity" value=1}
to this:
Code:
<select name="amount"> <option value="0">quantity</option> {if $product.min_amount le 1} {assign var="start_quantity" value=1}
This put the name "quantity" as the first value in the quantity dropdown.

Then when entering my product options, I added the name of the option as the first selection in each listing. So for instance, I create an option named Size. The options would be:

Code:
select a size Small Medium Large x-Large

Next I needed to edit the customer_options.tpl file to remove the feild names (since they would be displayed in the dropdown).

Then I have to add Product Option Validation to each product. If I have all three options (Size, Color, Quantity) then the validation would look like this:

Code:
if (product_option('Color').selectedIndex == 0) { alert('Please Select A Color'); return false; } if (product_option('Size').selectedIndex == 0) { alert('Please Select A Size'); return false; } if (product_option('amount').selectedIndex == 0) { alert('Please Select A Quantity'); return false; } { return true; }

If I only have to options (Size, Quantity), then I just enter the appropriate validations:

Code:
if (product_option('Size').selectedIndex == 0) { alert('Please Select A Size'); return false; } if (product_option('amount').selectedIndex == 0) { alert('Please Select A Quantity'); return false; } { return true; }

Since the default for any dropdown box is to have option "0" selected, this validation checks to make sure that "0" is not selected. So, they are not able to submit to the cart without making a selection from each of the dropdowns.

**Disclaimer** This is a modification that I made on my site and I do not make any warranties that it will work in your sitiation.
Reply With Quote
  #7  
Old 05-15-2004, 09:40 AM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

thanks for taking the time to post this explanation.

I think I've lost you somewhere.
http://oustore.org/customer/product.php?productid=16259&cat=264&page=1

My Option is=Volume
selections are:
Choose a volume
Volume I
Volume II
Slipped Case Set

If I do not include validation for all choices, the product does not go into the cart.

Code:
if (product_option('Volume').selectedIndex== 0) { alert('You must chose Volume I, Volume II or Slip-Cased Set. Please close this window and select an option.'); return false; } if (product_option('Volume').selectedIndex== 1) { alert('You chose Volume I'); return true; } if (product_option('Volume').selectedIndex== 2) { alert('You chose Volume I'); return true; }if (product_option('Volume').selectedIndex== 3) { alert('You chose Slipped Case Set'); return true; }

What have I missed in your post?
Sorry If I'm a bit thick here.

BTW The brownie site is also very nice. Are they selling them?
Reply With Quote
  #8  
Old 05-15-2004, 10:38 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Try this....


Code:
if (product_option('Volume').selectedIndex == 0) { alert('You must chose Volume I, Volume II or Slip-Cased Set. Please close this window and select an option.'); return false; } { return true; }
Reply With Quote
  #9  
Old 05-15-2004, 10:59 AM
 
magder magder is offline
 

Advanced Member
  
Join Date: Apr 2004
Posts: 51
 

Default

That did it!!

THanks so much.

I can't beleive it was that simple.

Would you accept a small thank-you donation?
Reply With Quote
  #10  
Old 05-15-2004, 02:45 PM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

No need But I appreciate the gesture
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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:26 AM.

   

 
X-Cart forums © 2001-2020