Urgent bug (duplicated items)

Viewing 20 posts - 1 through 20 (of 24 total)
  • Author
    Posts
  • #5737
    foxpc
    Participant

      Hi,
      we are still in testing this great plugin but we have found some strange bug!
      after we have create the ten category and add items to this category the items been duplicated!!!
      you can see in the next pic:

      and here is in the back. you can see only 3 products in one category:
      link

      before we have created this category all works great without any duplicate items.
      i using shortcode to print all the items from all the categories

      <?php echo do_shortcode('[wppizza category="!all" ]'); ?>

      #5740
      Olly
      Admin & Mod

        Hi

        from the screenshot you posted i can’t see anything wrong there
        you have three different items, all of which are assigned to the same category

        where is the problem ? am i missing something ?

        #5741
        Olly
        Admin & Mod

          PS: don’t know why you are using “echo do_shortcode” instead of just the plain shortcode on a page…but that’s up to you. just wondered

          #5744
          foxpc
          Participant

            Hi Olly,
            yes some how not all my text with the second screenshot was posted. here is what printing in the front page from this category

            for your question about “echo do_shortcode”. as i told you before we are using one page template so i need to print all the menu items from specific section in the template.

            #5746
            foxpc
            Participant

              the link to the pic not posting from the “link button”. where is the direct link:
              [link redacted]

              [admin] that link had porn adverts on it [/admin]

              #5751
              foxpc
              Participant

                by the way, if i try to add item to exist category all works fine. if i try to create new category the problem become the same to every new category.

                its seems like from the 11 category it make this bug.

                #5752
                Olly
                Admin & Mod

                  sounds to me like you are putting a loop into a loop

                  i would suggest you first just put the shortcode on a page as opposed to using

                  
                  <?php echo do_shortcode('[wppizza category="!all" ]'); ?>
                  

                  in a template somewhere and see what happens

                  #5756
                  foxpc
                  Participant

                    Hi,
                    i don’t have any loop. my code is simple :

                    <div>
                    <?php echo do_shortcode("[wppizza category='!all' ]"); ?>
                    </div>

                    the strange thing is that after i have remove this php code and then paste it back, all start working normally.

                    #5762
                    Olly
                    Admin & Mod

                      have you tried just putting the plain shortcode on a page somewhere ?
                      (i.e create a page and put [wppizza category=’!all’ ] in the content area and save)

                      (ps: that shortcode is a loop in itself by the way – i .e it loops through items in category(ies))

                      #5927
                      foxpc
                      Participant

                        i put the shortcode in some page and the same bug!
                        i send you in private me website.
                        let me know what else you need to look at the problem.

                        Thanks

                        #5928
                        foxpc
                        Participant

                          from what i can see the loop add duplicate items in the last category the html looks

                          <div class=”cat-menu catID-13″>…</div>
                          <div class=”cat-menu catID-14″>…</div>
                          <div class=”cat-menu catID-15″>…</div>
                          and then:
                          <div class=”cat-menu catID”>…</div>
                          <div class=”cat-menu catID”>…</div>
                          <div class=”cat-menu catID”>…</div>
                          <div class=”cat-menu catID”>…</div>

                          without category id…

                          #5929
                          Olly
                          Admin & Mod
                            This reply has been marked as private.
                            #5930
                            Olly
                            Admin & Mod

                              I said a couple of things in private above.
                              in short though, i would need to know what the original theme is your customised version is derived from to see if this issue is there too or just in the customisation

                              #5931
                              foxpc
                              Participant
                                This reply has been marked as private.
                                #5932
                                Olly
                                Admin & Mod
                                  This reply has been marked as private.
                                  #5970
                                  foxpc
                                  Participant
                                    This reply has been marked as private.
                                    #5973
                                    Olly
                                    Admin & Mod

                                      how is your code js ?

                                      in any case, i used a non customised version of your theme and it works fine.
                                      if this really were the case / a problem, i am sure i would have heard from other about this by now…

                                      if someone else reports this too, I shall check again – nobody is perfect – but as it stands i can’t see anything that needs fixing my end

                                      #5974
                                      Olly
                                      Admin & Mod

                                        furthermore, looking at the link you sent me to your site a while back , i cannot see any duplicates in the source of the page, so I don’t know what your javascript you are referring to is actually supposed to be doing

                                        however, if it works for you than that’s fine by me

                                        #6417
                                        Chris Pinto
                                        Participant

                                          There is a bug when i use the !all function too
                                          I have to use the categories=’individual,categories,toprevent,theloop’

                                          #6422
                                          Olly
                                          Admin & Mod

                                            >There is a bug when i use the !all function too

                                            please – next time – start your own topic

                                            in the meantime, please send me a screenshot of your categories and which version of the plugin you are using or – preferably – a link to your site

                                          Viewing 20 posts - 1 through 20 (of 24 total)
                                          • The topic ‘Urgent bug (duplicated items)’ is closed to new replies.