Announcement

Collapse
No announcement yet.

Need to show Price Group pricing... OUI Token?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need to show Price Group pricing... OUI Token?

    First, I have to say that my Boss won't let me upgrade to Miva5.
    So please do not suggest that I just upgrade.

    Here is the issue:
    I have my current price coded in the product page as %prodprice%.
    Apparently, this doesn't update when logged into a Price Group.

    I realized that I can code the following, which will show the contents when a Price Group customer is logged in, but I don't know the token or code to actually fetch and show the adjusted price.

    %begin_pricegroup%
    Unpublished Discounted Price: $ ??????
    %end_pricegroup%

    Any help is greatly appreciated.
    Thanks!

    #2
    Re: Need to show Price Group pricing... OUI Token?

    Hi there,

    You might try this token:

    %prodpriceF%

    If you want to get more fancy, then you can try something like this:

    %begin_pricegroup%
    Regular Price: <strike>%prodprice%</strike>
    <br>
    %end_pricegroup%
    <b>Your Price:</b> <font color="red"><b>%prodpriceF%</b></font>

    Hope this helps
    Last edited by Siamese-Dream.Com; 05-31-09, 10:19 AM.
    Mark Romero
    ~~~~~~~~

    Comment


      #3
      Re: Need to show Price Group pricing... OUI Token?

      Thanks, but I already tried that from an internet search.
      I think that token is specifically for a Viking Coders module.

      Comment


        #4
        Re: Need to show Price Group pricing... OUI Token?

        Make sure you're using the latest of any modules - the product price token should be reflecting the price the customer will pay - even if in a price group.
        Best,
        Pamela

        Consultant / Developer / Trainer
        Contributing Editor to Practical Ecommerce
        Author of the Official Guides for Miva Merchant
        pamelahazelton.com

        Comment


          #5
          Re: Need to show Price Group pricing... OUI Token?

          If you are using a third-party template, then you will probably have to contact them directly to find out what the appropriate token might be.

          Hope this helps.
          Mark Romero
          ~~~~~~~~

          Comment


            #6
            Re: Need to show Price Group pricing... OUI Token?

            I think the question is more simple than understood. Let's say I have a product that has a price of $100. I have a Price Group that gives a 15% discount. I want to display the adjusted price - $85 - in the product header (the OpenUI Product Header in the Edit Store area, not a specific product's header). If I put the tokens %prodprice% or %VAR(Product.d.price)%, it shows the retail, nonadjusted price. I can't figure out a token to simply display the adjusted price.

            There's a special OUI token to show what the discount off retail is %VAR(PRODUCT_DISCOUNT)%. But this doesn't seem to be available for calculation, such as

            %ASSIGN(g.OUIX_price|Products.d.price)%
            %ASSIGN(g.OUIX_disc|PRODUCT_DISCOUNT)%
            %FUNC(Products.d.price - g.OUIX_disc)%
            Price Group Price: %VAR(g.OUIX_FuncReturn|PF)%

            It's kind of fun flexing the OpenUI muscles again...

            Comment


              #7
              Re: Need to show Price Group pricing... OUI Token?

              It's kind of fun flexing the OpenUI muscles again...
              You are a sick man, Chuck! ;)
              Mark Romero
              ~~~~~~~~

              Comment


                #8
                Re: Need to show Price Group pricing... OUI Token?

                Chuck-
                The code you and Darren sent me worked:

                %ASSIGN(g.OUIX_product_id|Products.d.id)%
                %ASSIGN(g.OUIX_pgrpcount|Products.d.pgrpcount)%
                %IF(g.OUIX_pgrpcount GT 0)%
                %ASSIGN(g.OUIX_price|Products.d.price)%
                %ASSIGN(g.OUIX_cost|Products.d.cost)%
                %DOFUNC(g.OUIX_text|OPENUI|OUI_Display_Price(g.OUI X_product_id,g.OUIX_pgrpcount,g.OUIX_price,g.OUIX_cost))%
                %VAR(g.OUIX_text)%
                %IFEND%

                You are both awesome!


                Now if I could only get %begin_inpricegroup|GROUPNAME|% to work, my language would be a lot cleaner...

                ;)

                Comment


                  #9
                  Re: Need to show Price Group pricing... OUI Token?

                  Hopefull someone is still reading this!

                  I am still in Miva 4 (on Pair.com, kind of want to upgrade but will have to do it myself!)

                  To make a strikethrough discount pricing - do I need a module or can I do it for everyone through a Price Group?

                  I've gotten most of the above to work, although sometimes the code shows through.

                  Thanks,

                  Andree

                  Comment

                  Working...
                  X