Post by eurothai » Sat Feb 02, 2013 3:33 pm

Dear Pprmkr,

You're a hero! ;-)
Works very smooth and nice. Thanks for your work!

Newbie

Posts

Joined
Wed Jan 23, 2013 4:57 pm

Post by uktom91 » Mon Feb 25, 2013 1:56 am

Does anybody know how to get this working in version 1.5.5.1? Any help would be much appreciated. I'm trying to get the image option to display horizontally

Newbie

Posts

Joined
Thu Jan 24, 2013 9:31 pm

Post by shahwc » Fri Jun 07, 2013 12:39 am

I tried to edit what pprmkr said to make radio option horizontally but i got error? my OC is 1.5.5.1

Newbie

Posts

Joined
Wed Jun 05, 2013 11:45 pm

Post by milad » Mon Nov 04, 2013 12:48 pm

How can I change the select boxes from Vertical to Horizontal??( In the Available Options)

Please help me, it is urgent!

Newbie

Posts

Joined
Fri Nov 01, 2013 10:52 am

Post by frankleng » Mon Sep 15, 2014 12:54 am

great. found it. thanks.

www.tayoutec.com


Active Member

Posts

Joined
Sun Apr 22, 2012 5:49 pm

Post by vixynn » Fri Dec 12, 2014 6:17 am

thbr02 wrote:I've also been looking for the feature to display options horizontally for a long time. This works great! Thank you "pprmkr". If someone is interested I've setup a VQMod which will make the changes without changing the core files. Works fine with OC 1.5.1.3. Just upload to your vqmod/xml directory.

Hi,
will this work in OC1.5.6.4 ?
thanks!

New member

Posts

Joined
Tue Nov 18, 2014 8:59 am

Post by thbr02 » Fri Dec 12, 2014 9:47 pm

I don't know. Why don't try?

Active Member

Posts

Joined
Wed Jun 22, 2011 10:30 pm
Location - Sweden

Post by ultrafiremods » Thu Jan 08, 2015 10:30 am

how can i make this work for opencart 2x

Newbie

Posts

Joined
Wed Jan 07, 2015 2:46 am

Post by tmart » Sat Jul 04, 2015 3:03 am

Hi PPrMkr,

Can you please help us for Ver 2.0.3 the latest version please?

Thanks and regards
Tissy

Image
Logo Printed / Embroidered T-Shirts
Polo Shirts, Sweatshirts & Hoodies

http://www.tmart.in


New member

Posts

Joined
Fri Jan 21, 2011 2:02 am


Post by pprmkr » Sat Jul 04, 2015 11:16 pm

Edit catalog/view/theme/default/template/product/product.tpl

Find the div's surrounding radio and checkbox options:
<div class="radio"> and <div class="checkbox"> and remove them.

Code: Select all

            <?php if ($option['type'] == 'radio') { ?>
            <div class="form-group<?php echo ($option['required'] ? ' required' : ''); ?>">
              <label class="control-label"><?php echo $option['name']; ?></label>
              <div id="input-option<?php echo $option['product_option_id']; ?>">
                <?php foreach ($option['product_option_value'] as $option_value) { ?>
                <div class="radio">
                  <label>
                    <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" />
                    <?php echo $option_value['name']; ?>
                    <?php if ($option_value['price']) { ?>
                    (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                    <?php } ?>
                  </label>
                </div>
                <?php } ?>
              </div>
            </div>
            <?php } ?>
            <?php if ($option['type'] == 'checkbox') { ?>
            <div class="form-group<?php echo ($option['required'] ? ' required' : ''); ?>">
              <label class="control-label"><?php echo $option['name']; ?></label>
              <div id="input-option<?php echo $option['product_option_id']; ?>">
                <?php foreach ($option['product_option_value'] as $option_value) { ?>
                <div class="checkbox">
                  <label>
                    <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" />
                    <?php echo $option_value['name']; ?>
                    <?php if ($option_value['price']) { ?>
                    (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                    <?php } ?>
                  </label>
                </div>
                <?php } ?>
              </div>
            </div>
            <?php } ?>
After change it looks like:

Code: Select all

            <?php if ($option['type'] == 'radio') { ?>
            <div class="form-group<?php echo ($option['required'] ? ' required' : ''); ?>">
              <label class="control-label"><?php echo $option['name']; ?></label>
              <div id="input-option<?php echo $option['product_option_id']; ?>">
                <?php foreach ($option['product_option_value'] as $option_value) { ?>

                  <label>
                    <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" />
                    <?php echo $option_value['name']; ?>
                    <?php if ($option_value['price']) { ?>
                    (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                    <?php } ?>
                  </label>

                <?php } ?>
              </div>
            </div>
            <?php } ?>
            <?php if ($option['type'] == 'checkbox') { ?>
            <div class="form-group<?php echo ($option['required'] ? ' required' : ''); ?>">
              <label class="control-label"><?php echo $option['name']; ?></label>
              <div id="input-option<?php echo $option['product_option_id']; ?>">
                <?php foreach ($option['product_option_value'] as $option_value) { ?>

                  <label>
                    <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" />
                    <?php echo $option_value['name']; ?>
                    <?php if ($option_value['price']) { ?>
                    (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
                    <?php } ?>
                  </label>

                <?php } ?>
              </div>
            </div>
            <?php } ?>

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 189 guests