- Posts: 34
- Thank you received: 0
How to make characteristics align vertically
- davcraiguk
-
Topic Author
- Offline
Less
More
15 years 6 months ago #12978
by davcraiguk
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
How to make characteristics align vertically was created by davcraiguk
Can someone help me to work out how to align characteristics in the product display page vertically rather the the default horizontal? In my case its a range of sizes.
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
- davcraiguk
-
Topic Author
- Offline
Less
More
- Posts: 34
- Thank you received: 0
15 years 6 months ago #12980
by davcraiguk
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Replied by davcraiguk on topic Re: How to make characteristics align vertically
Solved this myself!
1. Go to the Characteristics edit screen
2. Edit the value(s) of the characteristic
3. At the end of the 'name' field add '<br />'
4. If your using other languages, add the same to the name field on each language tab.
Note: Adding '<br />' to the name field in the 'Main Information' tab dosen't seem to get saved - Nicolas?
1. Go to the Characteristics edit screen
2. Edit the value(s) of the characteristic
3. At the end of the 'name' field add '<br />'
4. If your using other languages, add the same to the name field on each language tab.
Note: Adding '<br />' to the name field in the 'Main Information' tab dosen't seem to get saved - Nicolas?
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
15 years 6 months ago #12988
by nicolas
Replied by nicolas on topic Re: How to make characteristics align vertically
You will have to change the code:
$element->$column = strip_tags($value);
to:
$safeHtmlFilter = & JFilterInput::getInstance(null, null, 1, 1);
$element->$column = $safeHtmlFilter->clean($value, 'string');
in the file administrator/components/com_hikashop/classes/characteristic.php
$element->$column = strip_tags($value);
to:
$safeHtmlFilter = & JFilterInput::getInstance(null, null, 1, 1);
$element->$column = $safeHtmlFilter->clean($value, 'string');
in the file administrator/components/com_hikashop/classes/characteristic.php
Please Log in or Create an account to join the conversation.
- davcraiguk
-
Topic Author
- Offline
Less
More
- Posts: 34
- Thank you received: 0
15 years 5 months ago #13268
by davcraiguk
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Replied by davcraiguk on topic Re: How to make characteristics align vertically
A more elegant solutions is to use CSS:
This does not affect the product title as the embedded <br /> does and no core code changed
Code:
table.hikashop_product_characteristics_table label {
float:left;
clear:right;
font-weight:normal;
}
table.hikashop_product_characteristics_table .inputbox {
margin-top:5px;
margin-right: 10px;
float:left;
clear:left;
}
This does not affect the product title as the embedded <br /> does and no core code changed
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
15 years 5 months ago #13270
by nicolas
Replied by nicolas on topic Re: How to make characteristics align vertically
Thank you for that solution, I'm sure it will help others.
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds