Call for Price with the 0$ priceHiding Price if 0Magento doesn't displays group pricehow to call the category dynamically?hide price when price = 0Call custom product list instead of baseShow custom product price in listing pageReplace the product price ($0.00) with text (for free) if it match a certain pricePrice removal from Product Page with .xml or .php OR stop GOOGLE indexing itMagento 2 base price with currencySpecial price time dependent on frontendMagento 2 How to hide price from front end with custom module?

Required to check-in in person at international layover airport

How to generate random points without duplication?

Turing patterns

Payment instructions from HomeAway look fishy to me

What's the right way to purge recursively with apt?

Java guess the number

Where does this pattern of naming products come from?

Cause of continuous spectral lines

Bent spoke design wheels — feasible?

Movie about a boy who was born old and grew young

When conversion from Integer to Single may lose precision

Translating 'Liber'

Why does the Schrödinger equation work so well for the Hydrogen atom despite the relativistic boundary at the nucleus?

Select items in a list that contain criteria

Did the first version of Linux developed by Linus Torvalds have a GUI?

`cosf`, `sinf`, etc. are not in `std`

How bad would a partial hash leak be, realistically?

siunitx error: Invalid numerical input

How hard would it be to convert a glider into an powered electric aircraft?

Why don't B747s start takeoffs with full throttle?

Does there exist a word to express a male who behaves as a female?

What can plausibly explain many of my very long and low-tech bridges?

How were concentration and extermination camp guards recruited?

Is it possible to (7 day) schedule sleep time of a hard drive?



Call for Price with the 0$ price


Hiding Price if 0Magento doesn't displays group pricehow to call the category dynamically?hide price when price = 0Call custom product list instead of baseShow custom product price in listing pageReplace the product price ($0.00) with text (for free) if it match a certain pricePrice removal from Product Page with .xml or .php OR stop GOOGLE indexing itMagento 2 base price with currencySpecial price time dependent on frontendMagento 2 How to hide price from front end with custom module?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















We have use this for our Call for Price:



Hiding Price if 0



or



 <?php if ($_product->getFinalPrice() == 0) : ?>
<?php echo $this->__('Call for Price') ?>
<?php else: ?>
<?php echo $this->getPriceHtml($_product); ?>
<?php endif; ?>


For list.phtml and view.phtml. It work fine, the only problem is the text call for price used to replace the price are not at the same place where the price is. Can anyone help us with this?



Here is a picture
First with price, second without price and with text



Thanks for any help!










share|improve this question






























    0















    We have use this for our Call for Price:



    Hiding Price if 0



    or



     <?php if ($_product->getFinalPrice() == 0) : ?>
    <?php echo $this->__('Call for Price') ?>
    <?php else: ?>
    <?php echo $this->getPriceHtml($_product); ?>
    <?php endif; ?>


    For list.phtml and view.phtml. It work fine, the only problem is the text call for price used to replace the price are not at the same place where the price is. Can anyone help us with this?



    Here is a picture
    First with price, second without price and with text



    Thanks for any help!










    share|improve this question


























      0












      0








      0








      We have use this for our Call for Price:



      Hiding Price if 0



      or



       <?php if ($_product->getFinalPrice() == 0) : ?>
      <?php echo $this->__('Call for Price') ?>
      <?php else: ?>
      <?php echo $this->getPriceHtml($_product); ?>
      <?php endif; ?>


      For list.phtml and view.phtml. It work fine, the only problem is the text call for price used to replace the price are not at the same place where the price is. Can anyone help us with this?



      Here is a picture
      First with price, second without price and with text



      Thanks for any help!










      share|improve this question
















      We have use this for our Call for Price:



      Hiding Price if 0



      or



       <?php if ($_product->getFinalPrice() == 0) : ?>
      <?php echo $this->__('Call for Price') ?>
      <?php else: ?>
      <?php echo $this->getPriceHtml($_product); ?>
      <?php endif; ?>


      For list.phtml and view.phtml. It work fine, the only problem is the text call for price used to replace the price are not at the same place where the price is. Can anyone help us with this?



      Here is a picture
      First with price, second without price and with text



      Thanks for any help!







      product price product-list






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:55









      Community

      1




      1










      asked Feb 22 '16 at 20:49









      westhwesth

      439




      439




















          1 Answer
          1






          active

          oldest

          votes


















          0














          First of all this is css question, should be asked in stack overflow.



          But I will try to help you here:



          You will need to add some html tags to your Call for best price text in order to apply your css.



          Just wrap it with <div> or <span> exactly same as your price is wrapped and then give a class name as same as your "price" is given.



          Remember, we are just trying to utilize the already written css.



          This will do the trick for you.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f102878%2fcall-for-price-with-the-0-price%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            First of all this is css question, should be asked in stack overflow.



            But I will try to help you here:



            You will need to add some html tags to your Call for best price text in order to apply your css.



            Just wrap it with <div> or <span> exactly same as your price is wrapped and then give a class name as same as your "price" is given.



            Remember, we are just trying to utilize the already written css.



            This will do the trick for you.






            share|improve this answer



























              0














              First of all this is css question, should be asked in stack overflow.



              But I will try to help you here:



              You will need to add some html tags to your Call for best price text in order to apply your css.



              Just wrap it with <div> or <span> exactly same as your price is wrapped and then give a class name as same as your "price" is given.



              Remember, we are just trying to utilize the already written css.



              This will do the trick for you.






              share|improve this answer

























                0












                0








                0







                First of all this is css question, should be asked in stack overflow.



                But I will try to help you here:



                You will need to add some html tags to your Call for best price text in order to apply your css.



                Just wrap it with <div> or <span> exactly same as your price is wrapped and then give a class name as same as your "price" is given.



                Remember, we are just trying to utilize the already written css.



                This will do the trick for you.






                share|improve this answer













                First of all this is css question, should be asked in stack overflow.



                But I will try to help you here:



                You will need to add some html tags to your Call for best price text in order to apply your css.



                Just wrap it with <div> or <span> exactly same as your price is wrapped and then give a class name as same as your "price" is given.



                Remember, we are just trying to utilize the already written css.



                This will do the trick for you.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 23 '16 at 14:51









                Adarsh KhatriAdarsh Khatri

                6,75511644




                6,75511644



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f102878%2fcall-for-price-with-the-0-price%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form