Apply custom discount rule on products before magento default catalog promotion rules The 2019 Stack Overflow Developer Survey Results Are InMagento catalog price rulesRan into case of catalog price rules only applying on Save and ApplyPromotions/Catalog Price Rules - Applying product's price rule only for 2 daysUsing Catalog Rules with Fixed Product TaxCatalog Price Rules applied to special_priceCart/Catalog Price rule for a set of products onlyProduct price calculation on order emails and pdfsGet Catalog Price Rules for ProductCatalog Price Rule - discount issue (possible rounding problem?)Magento 2.3 - event when catalog price rules are applied

For what reasons would an animal species NOT cross a *horizontal* land bridge?

When should I buy a clipper card after flying to OAK?

What do the Banks children have against barley water?

Did 3000BC Egyptians use meteoric iron weapons?

Have you ever entered Singapore using a different passport or name?

Time travel alters history but people keep saying nothing's changed

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

What is the meaning of the verb "bear" in this context?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

How to support a colleague who finds meetings extremely tiring?

How come people say “Would of”?

Is an up-to-date browser secure on an out-of-date OS?

Are there incongruent pythagorean triangles with the same perimeter and same area?

Why was M87 targetted for the Event Horizon Telescope instead of Sagittarius A*?

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Shouldn't "much" here be used instead of "more"?

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Can you compress metal and what would be the consequences?

Does coating your armor in silver add any effects?

slides for 30min~1hr skype tenure track application interview

Am I thawing this London Broil safely?



Apply custom discount rule on products before magento default catalog promotion rules



The 2019 Stack Overflow Developer Survey Results Are InMagento catalog price rulesRan into case of catalog price rules only applying on Save and ApplyPromotions/Catalog Price Rules - Applying product's price rule only for 2 daysUsing Catalog Rules with Fixed Product TaxCatalog Price Rules applied to special_priceCart/Catalog Price rule for a set of products onlyProduct price calculation on order emails and pdfsGet Catalog Price Rules for ProductCatalog Price Rule - discount issue (possible rounding problem?)Magento 2.3 - event when catalog price rules are applied



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








1















i have a situation where i need to apply a custom price (calculated based on cost price) on products before catalog promotion rules being applied. Currently i have successfully applied product price by overriding



getPrice() 


method from /app/code/core/Mage/Catalog/Model/Product/Type/Price.php and



catalog_product_collection_load_after


event. but it blocks catalog rule to be applied. i.e default catalog rules are now disabled.
In short i want to modify product price before catalog rule being applied. Is there a way i can achieve this? Thanks in advance for any kind of help.










share|improve this question






























    1















    i have a situation where i need to apply a custom price (calculated based on cost price) on products before catalog promotion rules being applied. Currently i have successfully applied product price by overriding



    getPrice() 


    method from /app/code/core/Mage/Catalog/Model/Product/Type/Price.php and



    catalog_product_collection_load_after


    event. but it blocks catalog rule to be applied. i.e default catalog rules are now disabled.
    In short i want to modify product price before catalog rule being applied. Is there a way i can achieve this? Thanks in advance for any kind of help.










    share|improve this question


























      1












      1








      1








      i have a situation where i need to apply a custom price (calculated based on cost price) on products before catalog promotion rules being applied. Currently i have successfully applied product price by overriding



      getPrice() 


      method from /app/code/core/Mage/Catalog/Model/Product/Type/Price.php and



      catalog_product_collection_load_after


      event. but it blocks catalog rule to be applied. i.e default catalog rules are now disabled.
      In short i want to modify product price before catalog rule being applied. Is there a way i can achieve this? Thanks in advance for any kind of help.










      share|improve this question
















      i have a situation where i need to apply a custom price (calculated based on cost price) on products before catalog promotion rules being applied. Currently i have successfully applied product price by overriding



      getPrice() 


      method from /app/code/core/Mage/Catalog/Model/Product/Type/Price.php and



      catalog_product_collection_load_after


      event. but it blocks catalog rule to be applied. i.e default catalog rules are now disabled.
      In short i want to modify product price before catalog rule being applied. Is there a way i can achieve this? Thanks in advance for any kind of help.







      module catalog-price-rules






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 19 '15 at 7:43







      Haris

















      asked Aug 19 '15 at 7:35









      HarisHaris

      55611024




      55611024




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can extend



          Mage_Catalog_Model_Product_Type_Configurable_Price


          and



          Mage_Catalog_Model_Product_Type_Price


          And modify the getFinalPrice method to change prices for configurable and simple products.



          This will modify the price before any other catalog price rules are applied.






          share|improve this answer























          • Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

            – Haris
            Aug 20 '15 at 9:09











          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%2f79156%2fapply-custom-discount-rule-on-products-before-magento-default-catalog-promotion%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














          You can extend



          Mage_Catalog_Model_Product_Type_Configurable_Price


          and



          Mage_Catalog_Model_Product_Type_Price


          And modify the getFinalPrice method to change prices for configurable and simple products.



          This will modify the price before any other catalog price rules are applied.






          share|improve this answer























          • Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

            – Haris
            Aug 20 '15 at 9:09















          0














          You can extend



          Mage_Catalog_Model_Product_Type_Configurable_Price


          and



          Mage_Catalog_Model_Product_Type_Price


          And modify the getFinalPrice method to change prices for configurable and simple products.



          This will modify the price before any other catalog price rules are applied.






          share|improve this answer























          • Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

            – Haris
            Aug 20 '15 at 9:09













          0












          0








          0







          You can extend



          Mage_Catalog_Model_Product_Type_Configurable_Price


          and



          Mage_Catalog_Model_Product_Type_Price


          And modify the getFinalPrice method to change prices for configurable and simple products.



          This will modify the price before any other catalog price rules are applied.






          share|improve this answer













          You can extend



          Mage_Catalog_Model_Product_Type_Configurable_Price


          and



          Mage_Catalog_Model_Product_Type_Price


          And modify the getFinalPrice method to change prices for configurable and simple products.



          This will modify the price before any other catalog price rules are applied.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 19 '15 at 7:52









          pajpaj

          2,62521026




          2,62521026












          • Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

            – Haris
            Aug 20 '15 at 9:09

















          • Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

            – Haris
            Aug 20 '15 at 9:09
















          Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

          – Haris
          Aug 20 '15 at 9:09





          Thankx for your suggestion, in order to modify product prices i already implemented this method. it works for products without catalog rules.

          – Haris
          Aug 20 '15 at 9:09

















          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%2f79156%2fapply-custom-discount-rule-on-products-before-magento-default-catalog-promotion%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

          Sum ergo cogito? 1 nng

          三茅街道4182Guuntc Dn precexpngmageondP