X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Radio Button Product Options (https://forum.x-cart.com/showthread.php?t=71676)

Phil Richman 03-23-2015 04:10 AM

Radio Button Product Options
 
Trying to figure out how to add radio buttons for product options instead of a drop down list.

tony_sologubov 04-09-2015 06:30 AM

Re: Radio Button Product Options
 
Hello Phil,

Is the request still actual for you?

Phil Richman 04-13-2015 12:18 PM

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.

tony_sologubov 04-15-2015 05:51 AM

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


All times are GMT -8. The time now is 11:20 AM.

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