Post by JBuck » Thu Mar 31, 2022 7:38 pm

OC Version 3.0.3.8
Default Theme
No Extensions

Hello,

I'm trying to figure out how to switch off:
-Price
-Qty (including the input field)
-Cart button
For individual products when viewed on the products page.

As well as the:
-Price
-Cart button
When viewing products in product-grids.

To clarify; I'm searching for the method to apply this to individual products and not sitewide.

I've searched the market place but I can only find options to hide the cart or hide the price, but I can't find anything that will hide the quantity.

I've tried searching through the forum and I can find similar queries relating to pricing the product at $0, but the answers don't seem to remove all items I'm seeking to get rid of.

Does anyone know of an extension that can achieve this?

Does this need to be done as a custom layout?

I thank you all in advance for any support offered.
Last edited by JBuck on Thu Mar 31, 2022 9:34 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu Mar 31, 2022 6:59 pm

Post by straightlight » Thu Mar 31, 2022 9:34 pm

JBuck wrote:
Thu Mar 31, 2022 7:38 pm
OC Version 3.0.3.8
Default Theme
No Extensions

Hello,

I'm trying to figure out how to switch off:
    Price
      Qty (including the input field)
        Cart button
        For individual products when viewed on the products page, and also the:
          Price
            Cart button
            When viewing products in product grids.

            To clarify; I'm searching for the method to apply this to individual products and not sitewide.

            I've searched the market place but I can only find options to hide the cart or hide the price, but I can't find anything that will hide the quantity.

            I've tried searching through the forum and I can find similar queries relating to pricing the product at $0, but the answers don't seem to remove all items I'm seeking to get rid of.

            Does anyone know of an extension that can achieve this?

            Does this need to be done as a custom layout?

            I thank you all in advance for any support offered.
            https://www.opencart.com/index.php?rout ... n_id=25478

            Dedication and passion goes to those who are able to push and merge a project.

            Regards,
            Straightlight
            Programmer / Opencart Tester


            Legendary Member

            Posts

            Joined
            Mon Nov 14, 2011 11:38 pm
            Location - Canada, ON

            Post by mikeinterserv » Thu Mar 31, 2022 10:33 pm

            JBuck wrote:
            Thu Mar 31, 2022 7:38 pm
            I'm trying to figure out how to switch off:
            -Price
            -Qty (including the input field)
            -Cart button
            For individual products when viewed on the products page.

            As well as the:
            -Price
            -Cart button
            When viewing products in product-grids.

            To clarify; I'm searching for the method to apply this to individual products and not sitewide.

            Does anyone know of an extension that can achieve this?

            I thank you all in advance for any support offered.
            I have an extension in development that does three quarters already of what you need.
            I could adapt it to your requirements.
            PM me if you don't find anything else or you can't do it yourself.

            Active Member

            Posts

            Joined
            Thu May 28, 2020 6:55 am
            Location - Wales

            Post by halfhope » Thu Mar 31, 2022 10:57 pm

            Hi!

            Also you can use my extension "Custom Templates Pro". Works without ocmod. But you need a bit of programming skills:
            • Create copy of file catalog/view/theme/default/product/product.twig e.g. product_showcase.twig
            • Open product_showcase.twig and remove price/quantity/etc from code.
            • Go to CT extension and create a new replacement from product/product to product/product_showcase. Select products from autocomplete list.
            • Save and go to product page.
            Some ocmod modifications can change product.twig file. You need to fix them to work with product_showcase.twig too. If there exists, they will be shown in a hint (modification name and line number). To change modification, use any "Modification editor".

            The module is very light but powerful and is designed more for programmers against users.

            My FREE extensions in marketplace. [ security | flexibility | speedup ]


            User avatar
            Active Member

            Posts

            Joined
            Tue Dec 10, 2013 9:44 pm
            Location - San Diego

            Post by mikeinterserv » Sat Apr 02, 2022 9:33 am

            Here is a simple OCMod that manipulates many of the items you mention.
            Its made as a get quotes extension but will show you how the cart button, price, qty, tax etc are manipulated and or removed.

            This works off of price at 0.00 so you will not see anything at all unless a product price is set to 0.00 but that can be changed as well as many other things. Works how you want on product page also covering related products and category pages.
            Let me know if it gets close to what your thinking. I will make an extension/module based on events of the same shortly.
            .

            Active Member

            Posts

            Joined
            Thu May 28, 2020 6:55 am
            Location - Wales

            Post by JBuck » Tue Apr 05, 2022 4:32 pm

            This extension looks like it will do exactly what I want for removing the "Qty". I wish it had the same options for price and cart, but I could use this alongside another extension. Thank you for the recommendation.
            Thank you for sending this over. I tried installing this on a test site and can see it enabled in Modifications, but can't see it in any of the extension lists. (It also crashed any page with a product so I had to remove it). Do you have any screenshots of it in action? Does it work similar to Straightlights suggestion, as in: global option, and individual options in the 'Edit Product' view?
            halfhope wrote:
            I'm going to bookmark this as it may be useful further down the line. Thank you for suggesting it.

            Newbie

            Posts

            Joined
            Thu Mar 31, 2022 6:59 pm

            Post by straightlight » Tue Apr 05, 2022 8:25 pm

            JBuck wrote:
            Tue Apr 05, 2022 4:32 pm
            This extension looks like it will do exactly what I want for removing the "Qty". I wish it had the same options for price and cart, but I could use this alongside another extension. Thank you for the recommendation.
            Thank you for sending this over. I tried installing this on a test site and can see it enabled in Modifications, but can't see it in any of the extension lists. (It also crashed any page with a product so I had to remove it). Do you have any screenshots of it in action? Does it work similar to Straightlights suggestion, as in: global option, and individual options in the 'Edit Product' view?
            halfhope wrote:
            I'm going to bookmark this as it may be useful further down the line. Thank you for suggesting it.
            You can also enable notification to this topic rather than bookmark.

            Dedication and passion goes to those who are able to push and merge a project.

            Regards,
            Straightlight
            Programmer / Opencart Tester


            Legendary Member

            Posts

            Joined
            Mon Nov 14, 2011 11:38 pm
            Location - Canada, ON
            Who is online

            Users browsing this forum: No registered users and 49 guests