Hide price if zero. Zero stock. Contact button.

disclaimer: i am not a professional coder. 

this is a very simple mod. 
how to install:

edit:
public_html/cart/includes/templates/default.catalog/views/box_product.inc.php

find:
see download for code

add after it:
see download for code

find:
see download for code

add after it:
see download for code

save and finish.


other simple options: (zero stock mod)
further options\info can be manipulated by using the standard litecart function.
in the admin > catalog > Sold Out Statuses (Create New Sold Out Status)
and Translations > Search Translations (change text to suit)

button prefill data example: (takes product name as subject)
['subject' => $name]


thank you to those who helped with this, forum ref linked below:

https://www.litecart.net/en/forums/2/general-discussions/18912/hide-price-when-0-and-replace-with-contact-form

https://www.litecart.net/en/forums/5/feature-requests-and-new-ideas/19836/link-to-contact-page-with-subject-of-product-name-or-id


Tags: zero stock, zero price, $0, contact us, button

Downloads

[+] Version 2023-10-25 | Uploaded 25 Oct 2023 by mmwfrank

This update features a vMod installation (Special thanks to @jackmaessen for his help: https://www.litecart.net/en/addons/594/hide-price-if-zero-0-mod-zero-0-stock-contact-button/topics/20232/i-could-use-some-help-with-a-vmod-problem#20283

Compatible Versions: 2.5.4
The package may be compatible with more versions than listed. Contact the author for more information.

[+] Version 2023-10-18 | Uploaded 18 Oct 2023 by mmwfrank

This is a remix of zara's project, adding removal of the zero price on the category thumbnails page, and converting the text file into modified files to upload.

I wanted to make this a vMod add-on, but haven't figured out what I'm doing wrong with that yet, so I'm just putting up this version up with the modified files. I hope to soon have the vMod version working, and I'll post it at that time.

Compatible Versions: 2.5.4
The package may be compatible with more versions than listed. Contact the author for more information.

[+] Version 2023-09-05 | Uploaded 5 Sep 2023 by zara

text file. install info.

Compatible Versions: 2.5.2
The package may be compatible with more versions than listed. Contact the author for more information.

Public Domain

This add-on is courtesy of Public Domain.

This add-on is being offered without any support or conditions of use. Anyone can publish new updates to it.

You are allowed to remix and redistribute this add-on without attributing the original author.

Published by zara

View code on GitHub