Page 1 of 1

Switch off "Price" "Quantity" "Add to Cart" per product

Posted: Thu Mar 31, 2022 7:38 pm
by JBuck
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.

Re: Switch off "Price" "Quantity" "Add to Cart" per product

Posted: Thu Mar 31, 2022 9:34 pm
by straightlight
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

            Re: Switch off "Price" "Quantity" "Add to Cart" per product

            Posted: Thu Mar 31, 2022 10:33 pm
            by mikeinterserv
            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.

            Re: Switch off "Price" "Quantity" "Add to Cart" per product

            Posted: Thu Mar 31, 2022 10:57 pm
            by halfhope
            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.

            Re: Switch off "Price" "Quantity" "Add to Cart" per product

            Posted: Sat Apr 02, 2022 9:33 am
            by mikeinterserv
            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.
            .

            Re: Switch off "Price" "Quantity" "Add to Cart" per product

            Posted: Tue Apr 05, 2022 4:32 pm
            by JBuck
            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.

            Re: Switch off "Price" "Quantity" "Add to Cart" per product

            Posted: Tue Apr 05, 2022 8:25 pm
            by straightlight
            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.