Page 1 of 1
Hide add to cart button
Posted: 06 Dec 2023, 15:27
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.
Re: Hide add to cart button
Posted: 07 Dec 2023, 18:40
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.
Jan
Re: Hide add to cart button
Posted: 07 Dec 2023, 18:51
by landed
That works, can I also hide the price in this case again per product. Also can I make the image linkable?
Re: Hide add to cart button
Posted: 07 Dec 2023, 19:32
by Jan
See following parameters for the price (even here there are more options):
There is no option to set specific link for the image, so this needs to be customized directly in the code
Jan
Re: Hide add to cart button
Posted: 07 Dec 2023, 23:21
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.
Re: Hide add to cart button
Posted: 10 Dec 2023, 00:50
by Jan
Hi, there are general options, valid for each product, in this case, valid for each product which price is zero.
Jan
Re: Hide add to cart button
Posted: 11 Dec 2023, 16:12
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?
Re: Hide add to cart button
Posted: 14 Dec 2023, 18:57
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
Jan