jonjj

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Random order of products on each page load? #48676
    jonjj
    Participant

      Hi Olly

      Thanks for your suggestions of turning off all of my plugins to see if that changes the sort order.

      I tried it, but it does not change anything.

      Items are still coming in randomly everytime I reload the page.

      Any other ideas to try and solve the problem?

      in reply to: Random order of products on each page load? #48493
      jonjj
      Participant

        Hi Olly

        Thanks for the quick reply.

        Here is a screenshot of my sorting order setting.

        I tried playing with the sorting order. Basically if I change it to sort by Title, ID, Date – the items are consistent and always comes in the same order.

        If I change it to my prefered choice, the default “As set by Order” attribute”, then items start coming out randomly.

        I then checked which order no each product had, and all of them have 0 as default.
        As soon as I change one of them to say -1, then that one will always show as the first one.

        So as far as I could test out, is that there is a sort problem when all the product items have order “0”.

        How does the sort order work if all of them are 0 – does it then sort by title to determine the order?

        jonjj
        Participant

          Hi Olly

          Thanks so much for the quick response.
          Yes you are right, it’s a 7.x PHP site.

          Thanks for the quick new update and debug advice. That was impressive. It fixed the issue on the second site where I upgraded to the latest pizza 3.x.
          Ill do the same on the other site too next week and the errors should be fixed.

          Much appreciated

          in reply to: Adding SKU to product? #15503
          jonjj
          Participant

            Hi Olly

            I just saw that when doing an order, the SKU does not appear in the Email template or Print order template.

            So when a customer or admin get’s a copy of it, he does not know which SKU the item has.

            The following are printed already:

            – quantity
            – name
            – size
            – single item price
            – subtotal item
            – additional info

            sku missing

            Can you do an update of the pizza plugin where you include SKU? 🙂

            All the best
            Jon

            in reply to: Template for Product #15502
            jonjj
            Participant

              Thanks very much for your reply 🙂

              in reply to: Template for Product #15426
              jonjj
              Participant

                Hi Olly

                Thanks for your reply.

                I think I might have not been good enough to explain my idea.

                I know that you’re probably using a template already that I could edit – however if you make an update at some point, there is the risk that it could be overridden or things have changed.
                I’d much rather prefer that you control everything in the source code than me, because you’re the author and I respect your work 🙂

                It’s not the drag/drop functionality that I would like for product rendering but more a shortcode expansion of what you already have started.

                Here is an example:

                [wppizza category='!all' title='1' featuredimage='1' sku='1' price='1' content='0']

                This would allow you to control what is rendered on specific pages.

                ————-

                A more flexible way which would allow to control the markup and any styling adjustments:

                [wppizza category='!all']
                <div class="product-item">
                <h3>[field title]<h3>
                <label class="sku">[field sku]</label>
                <label class="price">[field price]</label>
                <img src="[field featuredimage]" />
                </div>
                [/wppizza]
                

                ————

                The last solution which would be awesome, would be to not place the markup directly in the page, but under “templates” and simply refer to the name of the template on the page.

                So on the page you would simply use:

                [wppizza category='!all' template='My Template']

                Now in the pizza plugin, for example under Templates, you could click “Add template” and have a simple rich text editor where you insert the markup.

                You give it a name “My Template” and insert the markup in the rich text editor:

                <div class="product-item">
                <h3>[field title]<h3>
                <label class="sku">[field sku]</label>
                <label class="price">[field price]</label>
                <img src="[field featuredimage]" />
                </div>
                

                What do you think of this. Would it be a daunting task or is it possible for you to create?

                All the best
                Jon

                in reply to: Adding SKU to product? #14087
                jonjj
                Participant

                  Thanks Olly. You’re a star! 🙂

                  I’ve already implemented on the site and added some custom styling to the element.

                  in reply to: Adding SKU to product? #12712
                  jonjj
                  Participant

                    Alright. Thanks Olly.
                    I understand that you get a lot of requests.

                    in reply to: Adding SKU to product? #12702
                    jonjj
                    Participant

                      It’s true we could put it into the title.

                      But then we can’t put a specific css style on it since it’s not in it’s own html tag. My customer is unfortunately not a html expert so a field where she can enter the SKU would be the optimal solution.

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