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

Radio Button Product Options

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-23-2015, 04:10 AM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Radio Button Product Options

Trying to figure out how to add radio buttons for product options instead of a drop down list.
__________________
Ver 5.2.6
Reply With Quote
  #2  
Old 04-09-2015, 06:30 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Radio Button Product Options

Hello Phil,

Is the request still actual for you?
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #3  
Old 04-13-2015, 12:18 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Radio Button Product Options

Yes I am still interested in this. I had to put this project on hold, but I do still want to do this.
__________________
Ver 5.2.6
Reply With Quote
  #4  
Old 04-15-2015, 05:51 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Radio Button Product Options

Thanks for letting me know, Phil.

OK, to get started you will need to edit the implementation of product options that is done in the <X-Cart>/skins/admin/en/product/attribute_value/select/body.tpl template.

For that, you should decorate the \XLite\View\Product\AttributeValue\Customer\Select class (more about decoration here http://kb.x-cart.com/display/XDD/Step+3+-+applying+logic+changes) and point it to your template. For that you should decorate the getDir() method.

Your new template will be based on the skins/admin/en/product/attribute_value/select/body.tpl one, but it will have radio button implementation of product options, instead of select-box.

If my instruction is unclear to you, please let me know and I will explain in more details.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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 07:17 PM.

   

 
X-Cart forums © 2001-2020