Results 1 to 10 of 19

Hybrid View

  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,975
    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
    69,402
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  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
    69,402
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  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

 

 

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. remove units from shopping cart
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Sep 2010, 10:08 AM
  4. '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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR