Osclass Support Forums

Osclass theme support => Stela Osclass Theme => Topic started by: Dawid on March 04, 2019, 09:59:59 PM

Title: Steps in item-post.
Post by: Dawid on March 04, 2019, 09:59:59 PM
welcome

Im added to stella steps when users whants post item exaclly this same in veronika :(fade-right, butTons)

but i have problem . in stella when user selected catogory its auto  open windows " details"  i need hide this windows in first steps , same like in vernika ( its visible only in 3 steps ) HOW I CAN DOING THATS ??



Title: Re: Steps in item-post.
Post by: MB Themes on March 04, 2019, 11:31:09 PM
It is not complicated to devide page into steps, problem is to make it working properly. You may check veronika's global.js to get idea how it works
Title: Re: Steps in item-post.
Post by: Dawid on March 05, 2019, 03:54:12 PM
Thanks for answer . But im check this in global.js

In Stella and Veronika looks exaclly this same :"(


   // If there are only 2 steps, hide next button on 2nd step
          if(total < 3) {
            $('fieldset.photos .post-next').hide(0);
          } else {
            $('fieldset.photos .post-next').show(0);
          }
        });
      }
    } else if ( $(this).hasClass('post-prev') ) {
      $('fieldset[data-step-id="' + current + '"]').animate({marginLeft: "1000px", opacity:0}, 300, function(){
        $('fieldset[data-step-id="' + current + '"]').hide(0);
        $('fieldset[data-step-id="' + prev + '"]').css('display', 'inline-block').css('margin-left', '-1000px').css('opacity', '0');
        $('fieldset[data-step-id="' + prev + '"]').animate({marginLeft: "0px", opacity:1}, 300);
      });

      // Hide submit button
      $('.buttons-block').animate({marginLeft: "1000px", opacity:1}, 300, function() {
        $('.buttons-block').hide(0);
      });
    }
Title: Re: Steps in item-post.
Post by: Dawid on March 05, 2019, 03:57:07 PM
Mayby problem its in this line ?

  // Check for required fields
      $('fieldset[data-step-id="' + current + '"] input, fieldset[data-step-id="' + current + '"] select').each(function(){
        $("form[name=item]").validate().element($(this));
      });


      if($("form[name=item]").valid()) {
        $('fieldset[data-step-id="' + current + '"]').animate({marginLeft: "-1000px", opacity:0}, 300, function(){
          $('fieldset[data-step-id="' + current + '"]').hide(0);
          $('fieldset[data-step-id="' + next + '"]').css('display', 'inline-block').css('margin-left', '1000px').css('opacity', '0');
          $('fieldset[data-step-id="' + next + '"]').animate({marginLeft: "0px", opacity:1}, 300);
Title: Re: Steps in item-post.
Post by: Dawid on March 09, 2019, 01:48:33 PM
Any sugestion ?
Title: Re: Steps in item-post.
Post by: MB Themes on March 09, 2019, 08:45:42 PM
Not at all, complexity of such request is not something that could be solved on forums by asking questions
Title: Re: Steps in item-post.
Post by: leuname07 on April 19, 2019, 12:52:02 AM
I'm interested with this !

Have you found the solution ?