Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
TB Megamenu dosen,t work on product page, but works on any other page. The reason for this situation is the conflict between libraries TB megamenu and commerce_kickstart_product_ui.js.
To fix this problem you have to remove this fragment from commerce_kickstart_product_ui.js (profiles/commerce_kickstart/modules/commerce_kickstart/)
// Add 'read more' link on description.
Drupal.behaviors.bodyReadMore = {
attach: function ( context, settings ) {
var readmore = Drupal.t('read more');
var readless = Drupal.t('read less');
$('.node-product-type .field-name-body .field-item').expander({
slicePoint: 200,
expandPrefix: '...<br />',
expandText: readmore,
userCollapseText: readless,
expandEffect: 'fadeIn',
expandSpeed: 250,
collapseEffect: 'fadeOut',
collapseSpeed: 200
});
}
}
Comments
Comment #2
mglamanThat's not a solution. That'd be remove a feature of the profile and the body field.
Comment #3
jaesperanza CreditAttribution: jaesperanza commentedPerhaps try this - https://www.drupal.org/node/2148085
Comment #4
apaderno