News:

Looking for documentation? Take a look on our wiki

Main Menu

Layout problems

Started by lapinhuijari, April 09, 2015, 23:05:59 PM

Previous topic - Next topic

lapinhuijari

I have same kind of problem...twice

Productdetails in Addtocart-area with many radiobutton and text/label are comming diffrend rows. Example: http://www.kello-optiikka.fi/joomla/verkkokauppa/piilolasit/varilliset-linssit/air-optix-colors-2-kpl-detail

With FireBug I can see code like this: <span class="product-field-display"><input type="radio" name="customPrice[1][19]" value="5380" checked="checked" id="53801"><label class="other-customfield" for="53801">Blue </label><input type="radio" name="customPrice[1][19]" value="5379" id="53791"><label class="other-customfield" for="53791">Brilliant Blue </label>...(etc)...</span>

With extplorer I see: components...com_virtuemart...views...productdetails...tmpl...default_addtocart.php row 46 is <span class="product-field-display"><?php echo $field->display ?></span>

Where from this jungle I can find this: <?php echo $field->display ?> and make it echo like <input> inside of <label> like this: <span class="product-field-display"><label class="other-customfield" for="53801"><input type="radio" name="customPrice[1][19]" value="5380" checked="checked" id="53801">Blue </label><label class="other-customfield" for="53791"><input type="radio" name="customPrice[1][19]" value="5379" id="53791">Brilliant Blue </label>...(etc)...</span>


And also in Shopping Cart I have same problem: http://www.kello-optiikka.fi/joomla/webshop/ostoskori

Shipment and Payment radio buttons are comming (in small screens) differend rows than their text/label.

In code I wouuld also like to put <input> inside <label>.

How I can do this???   :)  Any ideas?

jenkinhill

Please don't hijack unrelated threads. Use the big blue "New Topic" button on each forum page to start a new thread.

Now please read http://forum.virtuemart.net/index.php?topic=128401.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lapinhuijari

#2
Sorry!

I thought we have same issue so I dear to press "Reply"-button :)

Firstimers...:)...

Joomla 2.5.24
VirtueMart 2.6.2
PHP 5.3.28

Was this now correct?

Studio 42

For virtuemart 2.6, you cannot change the render. this is in the core
file YOURSITE\1e-cigarette\administrator\components\com_virtuemart\models\customfields.php
in function displayProductCustomfieldFE