Hide add to cart button

Phoca Cart - complex e-commerce extension
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 121
Joined: 15 Sep 2023, 10:51

Hide add to cart button

Post by landed »

I wanted to create some affiliate offers which will just be a link through. The idea is a good one if I can control what is shown on a per product basis. Or that some items with a tag or in a category show differently- that could also work.

See here - https://bestantigua.com/shop/essentials ... -insurance

I only want the link to the affiliate page.

Thank you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide add to cart button

Post by Jan »

Hi, there are a lot of different features how to hide "add to cart" buttons.

e.g. you can hide it per options directly, you can set that the product will be e.g. "price on demand" product. Such products do not have "add to cart" buttons, etc. etc.

Image

Jan
If you find Phoca extensions useful, please support the project
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 121
Joined: 15 Sep 2023, 10:51

Re: Hide add to cart button

Post by landed »

Image
That works, can I also hide the price in this case again per product. Also can I make the image linkable?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide add to cart button

Post by Jan »

See following parameters for the price (even here there are more options):

Image

There is no option to set specific link for the image, so this needs to be customized directly in the code :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 121
Joined: 15 Sep 2023, 10:51

Re: Hide add to cart button

Post by landed »

Is this per product?
I will take a look thank you. I also realize that I am stripping away functionality that J itself does so a regular article you might say. But having the ability to have a 'shop' area means I might like products that you add to cart and others which may be just affiliate links.
It's a great product you have Jan. Start getting some help to port to other platforms as Joomla roadmap is of concern.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide add to cart button

Post by Jan »

Hi, there are general options, valid for each product, in this case, valid for each product which price is zero.

Jan
If you find Phoca extensions useful, please support the project
User avatar
landed
Phoca Professional
Phoca Professional
Posts: 121
Joined: 15 Sep 2023, 10:51

Re: Hide add to cart button

Post by landed »

I have hidden the price thank you. Is it possible to hide the ask a question for just this product? Also reviews and description are not useful.

I suppose an actual template file just for this product might be better way to strip the output. Can a product select a specific template file?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide add to cart button

Post by Jan »

Hi, there is no template file for product as Joomla uses template overrides, so the possible override for product view can be done with this file:
components/com_phocacart/views/item/tmpl/default.php

or if only some part of such file should be edited, then the layouts:
components/com_phocacart/layouts/ ...

There is no option to hide "ask a question" only for selected products :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply