Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • An LeFevre Friend
    #761851

    Hello.

    On the products details page that I’m using in the Uber Business template, I need to do the following two things:

    1. Add another tab to this product page that will show a custom form that will be in a module display.
    2. Remove the entire rating/stars/vote area. This does not apply to my client’s site.

    Please see attached mockup to explain visually what I am trying to achieve.

    Thank you!

    Ninja Lead Moderator
    #778899

    Hi An,

    You can find my answer with your requestion below

    1) You can give me the screenshot of what are you trying to do, it will help to understand your request.

    2) This is custom work and you can find them from templates/uber/html/com_content/article/product.php file and remove this code

    
          Price
    
          Rating
    
             item->rating_sum) && $this->item->rating_count > 0) {
          $this->item->rating = round($this->item->rating_sum / $this->item->rating_count, 1);
          $this->item->rating_percentage = $this->item->rating_sum / $this->item->rating_count * 20;
        } else {
          if (!isset($this->item->rating)) $this->item->rating = 0;
          if (!isset($this->item->rating_count)) $this->item->rating_count = 0;
          $this->item->rating_percentage = $this->item->rating * 20;
        }
        $uri = JUri::getInstance();
    
        ?>
    
              1
              2
              3
              4
              5
    
            (item->rating ?> / item->rating_count; ?> votes)
    
          !function($){
            $('.rating-form').each(function(){
              var form = this;
              $(this).find('.rating-list li a').click(function(event){
                event.preventDefault();
                form.user_rating.value = this.innerHTML;
                form.submit();
              });
            });
          }(window.jQuery);
        </script>
          </dd>
    </dl>

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 8 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum