Closed (fixed)
Project:
Commerce Kickstart
Version:
7.x-2.0-rc1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2012 at 19:22 UTC
Updated:
12 Jun 2013 at 13:10 UTC
Jump to comment: Most recent
Comments
Comment #1
advix commentedMissing divs breaks the "Read more | Read less" function.
Comment #2
capnjav commentedThanks for the advice on the likely root of my problem with missing "Read More/Read Less" links from here: http://drupal.org/node/1660968
How do we add the wrappers or make them available? field-items and field-item are definitely not available for me either.
Body for my custom product type I have it set to: "division -- < div > -- Generic container; only use as last resort"
Which is what the Body for example "Tops" is set to. (Mind you Tops doesn't display the "Read More/Less" either).
Comment #3
advix commentedDidn't yet figured out how to solve this. Hope somebody can help.
Comment #4
advix commentedSo. With Fences module disabled the missing divs are back. As quick fix OK, I don't know what will cause the disabled module in the future. Make sure, your text in body contains "p" tag and choose a text format Filtred HTML to make it work.
To solve this issue correctly, the javascript function Drupal.behaviors.bodyReadMore needs to be modified. From $('.field-name-body .field-item p') to $('.field-name-body p') hence you can turn on the fences module.
Comment #5
uking commentedI have had the same behavoir (no readmore readless button in custom products) in the 7.x-2.0 version. With the modification in the javascript function Drupal.behaviors.bodyReadMore from $('.node-product-type .field-name-body .field-item') to $('.field-name-body p') and a text format Filtred HTML it works fine.
Many Thanks to "advix" for the fix.
Comment #6
fhdrupal commentedWhat is the path to this JavaScript file?
Comment #7
vaccinemedia commentedmodules/commerce_kickstart/commerce_kickstart_product_ui/commerce_kickstart_product_ui.js
Comment #8
realskorpion commentedHi
I'm having a similar issue when I create a new variation type in drupal commerce kickstart 2
http://www.drupalcommerce.org/discussions/7042/issue-styledisplay-new-va...
Is that related to missing wrappers for fields?
Thanks,
Oscar R
Comment #9
vaccinemedia commentedExactly! You can either disable the fences module or remove the "field-item" selector from the jquery file mentioned above
Comment #10
realskorpion commentedHi,
Oh my god this works.
If I remove the "field-item" from the jquery file then the issue with the read more/read less is solved.
But that didn't solve the issues in the shopping cart (color label and color name shown in different lines)
But if I disabled the fences module everything works fine.
Thanks a lot
Comment #11
jsacksick commentedIt has been fixed since, See #2002242: New attributes created do no show right; no "Bold" letters and not aligned "Inline"
Comment #13
macman911 commentedHi,
I've added a description field to a variation type, however I can't get the read more/less button to work. I've changed $('.field-name-body p'). to $('.field-name-NEW_FIELD_NAME p'). but that doesn't work. Any thoughts? Thanks