jquery memDetail sideInfo adjusted
authorLaury GvR <laury@gaslightmedia.com>
Thu, 13 Apr 2017 20:18:00 +0000 (16:18 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 13 Apr 2017 20:18:00 +0000 (16:18 -0400)
The jquery for the member detail side-info panel has been adjusted
on account of the new wrapper around the element to which it must
now refer instead of the old container. Also removed the empty
msrp element after it's no longer needed.

functions.php
glm-member-db/views/front/members/detail.html

index 8e3fd4c..9ec5516 100644 (file)
@@ -21,8 +21,8 @@ if (!function_exists('glm_quicksite_widget_init')) {
 }
 add_filter('manufacturer_ids', function(){
 //    $ids = [3,11]; // Anthony's test ids - remove before go-live
-    $ids = [165,143,140,178,149,224]; // ids of manufacturer categories on dev55
-//    $ids = [16,11,19]; // Laury's test ids - remove before go-live
+//    $ids = [165,143,140,178,149,224]; // ids of manufacturer categories on dev55
+    $ids = [16,11,19]; // Laury's test ids - remove before go-live
    return $ids;
 });
 /**
index 5ed33f4..7b1baa0 100644 (file)
         jQuery(document).ready(function($) {
 
 
-            if( $('.glm-member-custom-fields-container').find('.slash-price').length != 0 ){
-                $('.glm-member-custom-fields-container').find('.detail-msrp-value').addClass('sale');
+            if( $('.glm-member-custom-fields-container-wrapper').find('.slash-price').length != 0 ){
+                $('.glm-member-custom-fields-container-wrapper').find('.detail-msrp-value').addClass('sale');
             }
             $('.detail-sale-price-value').appendTo($('.detail-msrp-value') ).css('display', 'block').css('float', 'right');
 
+            $('.glm-member-custom-fields-container-wrapper').find('.slash-price').remove();
 
 
             // change the member detail photos grid structure depending