Remove price, add to cart text and units
HELP !
Tried to find a post with an answer to my problem and no success.
I'm trying to remove the price next to this item, change the add to cart text to something else and remove the units: 0.01
What im trying to to is to have my customers pay their invoice on this site i created. I priced the Item for 1$ and I would like them to put the any amount and make a payment.
Everything on the product general option page is set to 0.
https://baradinc.com/payment/index.p...&products_id=3
Help will be very much appreciated.
Thanks
Re: Remove price, add to cart text and units
You are trying to get zencart to perform a function for which it is not designed to do. Why don't you just use proper accounting software? I am sure there must be OpenSource programs out there that will generate invoices, allow online payment, and write the result to a database that is configured to manage accounts.
Zencart MIGHT be made to work this way, but it would require quite a bit of custom coding.
Re: Remove price, add to cart text and units
You could customize the function:
/includes/functions/functions_prices.php
around line 394 with the code in RED:
Code:
////
// Return a products quantity minimum and units display
function zen_get_products_quantity_min_units_display($product_id, $include_break = true, $shopping_cart_msg = false) {
// bof: do not show for products_id 3
if ($product_id == 3) {
return '';
}
// eof: do not show for products_id 3
$check_min = zen_get_products_quantity_order_min($product_id);
Re: Remove price, add to cart text and units
Tried that, no change.
////
// Return a products quantity minimum and units display
function zen_get_products_quantity_min_units_display($product_id, $include_break = true, $shopping_cart_msg = false) {
// bof: do not show for products_id 3
if ($product_id == 3) {
return '';
}
// eof: do not show for products_id 3
$check_min = zen_get_products_quantity_order_min($product_id);
$check_units = zen_get_products_quantity_order_units($product_id);
Re: Remove price, add to cart text and units
Sorry, thought you meant remove the minimum/units from this product ...
You would need to customize your templates and overrides file for:
/includes/templates/your_template_dir/templates/tpl_product_info_display.php
and customize it to not show the price by surrounding this code:
Code:
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->
with a similar IF ... something like:
Code:
if ((int)$_GET['products_id'] !== 3) {
// do not show code here
} else {
// code here
}
Re: Remove price, add to cart text and units
Ajeh,
I owe you 2 cups of coffee. Unit is not shown and also got rid of the price next to the item on the info page.
I can still see the price on this page https://baradinc.com/payment/ any way I can get rid of it there ? and 1 more question, how can I change the add to cart text next to the check out button ?
where do I change the default amount to not display in the add to cart window (now showing 0.01).
Im so zanned
You Zenned me big time with your codes.
Thanks AGAIN
Re: Remove price, add to cart text and units
I do not know what that page is or how it is generating the price on there ...
That looks like the New Product centerbox ...
Do you not have other Products on your site?
Re: Remove price, add to cart text and units
You got it right, it came from centerbox which I got rid of - that makes it 3 cups of coffee now that I owe you.
Almost done and if you don't mind have 2 more little questions.
1. Is it possible to get rid of the add to cart text and box on this page : https://baradinc.com/payment/index.p...&products_id=3
2. Is it possible to get rid of the total items text on this page and also change the table headers - qty. and get rid of the word unit. https://baradinc.com/payment/index.p...=shopping_cart
Thanks again,
Zanning is fun
Re: Remove price, add to cart text and units
Is this the only Product you will ever have or is this something you need done just for this products_id 3 ... :unsure:
Re: Remove price, add to cart text and units