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

How to link 2 attributes together

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-04-2015, 07:54 PM
 
juancho juancho is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 47
 

Smile How to link 2 attributes together

Would it be possible to link one attribute to another based on the option selected in the first one?

For instance. In the example at the bottom part of http://kb.x-cart.com/display/XDD/Managing+attribute+values

The "Cotton Solid Bath Towel" has 2 attributes:
1) monogram this item?
2) Monogram text

However the second attribute only makes sense if the first one is selected. A solution could be to display the second only when the first one is selected. Any ideas how to do it?

I don't think that the module "product variants" can be used in this situation.

Thanks
__________________
X-Cart Business 5.0.12
Reply With Quote
  #2  
Old 02-04-2015, 10:00 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How to link 2 attributes together

There is no such a feature in the "stock" X-Cart 5. However, you can create a custom module that adds javascript hiding the second attribute when the first option is selected.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
juancho (02-05-2015)
  #3  
Old 02-05-2015, 04:24 PM
 
juancho juancho is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 47
 

Default Re: How to link 2 attributes together

I see that Tony has posted a tutorial on how to modify the logic of the cart:
http://kb.x-cart.com/display/XDD/Forcing+product+quantity+while+adding+to+cart

In my case, what would the JS look like?
Thanks
__________________
X-Cart Business 5.0.12
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


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 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 12:20 PM.

   

 
X-Cart forums © 2001-2020