Price Tier Classes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10808
    takkuntiki
    Participant

      is there any way to get specific classes for different price tiers?

      for example: i do not want “reg” to display under prices, but i do want “per dozen” to show (both are the single prices), so i dont want to select the option to only show the price tiers on items with more than one price..

      Thank you

      #10820
      Olly
      Admin & Mod

        hmm, you lost me here.

        just rename “reg” to “per dozen” , no ?

        #10826
        takkuntiki
        Participant

          Some items are “per dozen” while some items just have a price (not by the dozen). i dont want “reg” to show, and if i leave the label for “reg” (regular) blank the HTML is still there, leaving a space where it would have been.

          this is the example: http://whitestreetcafe.fusedigitalmarketing.com/menu/catering/

          i was just wondering if there was a way to add a CSS class to each different price tier so that i could target “reg” to display:none;

          🙂 thank you

          also i apologize i sent a contact message before posting in the board because i couldnt figure out how to post. please ignore the message i sent 😀

          #10829
          Olly
          Admin & Mod

            >i was just wondering if there was a way to add a CSS class to each different price tier ….

            not for you unless

            a) you wanted to use js/jQuery to add the missing classes for example (i.e an item will have an id of wppizza-38-4-2 , where 4 is the price tier id and 2 the size that goes with the sizes set – zero indexed)

            or

            b) you could just edit the template you are using and add the classes (should be reasonably obvious how the loop is set up)

            however, it’s also easy enough for me to add in the next update for all templates. in fact, consider it done, but that update is a couple of weeks or so yet until it’ll be available

            #10830
            takkuntiki
            Participant

              OH i see now that the IDs are different between price tiers. I might try and target via jquery, thank you!

              and it will be awesome to see this feature in the future!

              #10837
              takkuntiki
              Participant

                this is what i ended up using

                <script type="text/javascript" charset="utf-8">
                $(window).load(function() {
                if ($(".wppizza-article-price:only-child .wppizza-article-price-lbl:contains('Reg')").length) {
                $(".wppizza-article-price:only-child .wppizza-article-price-lbl:contains('Reg')").hide();
                }
                });
                </script>
              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Price Tier Classes’ is closed to new replies.