Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    May 2012
    Posts
    9
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,984
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,817
    Plugin Contributions
    6

    Default 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);
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    May 2012
    Posts
    9
    Plugin Contributions
    0

    Default 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);

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,817
    Plugin Contributions
    6

    Default 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
    }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #6
    Join Date
    May 2012
    Posts
    9
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,817
    Plugin Contributions
    6

    Default 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?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  8. #8
    Join Date
    May 2012
    Posts
    9
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,817
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  10. #10
    Join Date
    May 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Remove price, add to cart text and units

    Just this product Ajeh

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. remove price and add to cart from listing page
    By Ivanna in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Aug 2011, 08:10 PM
  2. remove price for some products, add text
    By kaylee_girl in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 8 Mar 2011, 09:26 AM
  3. '0 units in stock', and No Add to Cart
    By WhitePhantom in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Feb 2010, 08:10 PM
  4. Remove Search Button and add text to input field
    By sjk1000 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 10 Oct 2008, 12:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •