Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Hiding Price when Call For Price is On?

    Hi Gang!

    I'd like to preserve the price of a product when I have its price set to Call For Price - just for my administrative reference.
    How can I hide the price on the Product main page as well as on the listings once I have the Call For Price set to on?

    thanks!
    Gabstero

  2. #2
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Hiding Price when Call For Price is On?

    I sure would like to know as well - there are some functions of Zen-Cart that just do not make sense - like this one, what is the point of displaying a "Call for Price" if it's going to display it anyways? Especially when you have to display call for price per manufacturer requirements...

  3. #3
    Join Date
    Jun 2006
    Posts
    157
    Plugin Contributions
    0

    Default Re: Hiding Price when Call For Price is On?

    Call for Price lets you set a price but read Call for Price to get the customer to see a stated price but know there is a better price if they call.

    To mask the price totally, you could use the function zen_products_lookup and identify if the product is a product_is_call = 1 and if so, mask out the price.

    There is a display price function zen_get_products_display_price that can be customized to not show the price for certain products.

    This section of code:
    PHP Code:
        // If Call for Price, Show it
        
    if ($product_check->fields['product_is_call']) {
          if (
    PRODUCTS_PRICE_IS_CALL_IMAGE_ON=='0') {
            
    $call_tag '<br />' PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT;
          } else {
            
    $call_tag '<br />' zen_image(DIR_WS_TEMPLATE_IMAGES OTHER_IMAGE_CALL_FOR_PRICEPRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
          }
        } 
    tests to see if the product is Call for Price to add the image. You could change that to remove the return value below it:
    PHP Code:
        return $final_display_price $free_tag $call_tag
    to have the $final_display_price and $free_tag be blank so that all that is returned is the $call_tag when $product_check->fields['product_is_call'] = 1

  4. #4
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Hiding Price when Call For Price is On?

    Thanks so much!!!

    do you know the name of the file to be modified?

    thanks,
    gabstero

  5. #5
    Join Date
    Jun 2006
    Posts
    157
    Plugin Contributions
    0

    Default Re: Hiding Price when Call For Price is On?

    To find code or text or anything else in any of the php files, look in your Zen Cart Admin under the Tools menu for the Developers Tool Kit.

    In the bottom box, type in what you are looking for, such as:
    If Call for Price

    that happens to be in that code I posted. Next select either Catalog or Catalog/Admin in the dropdown and click the search button.

    This will list for you any of the files and the line numbers that contain what you are trying to find.

  6. #6
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Hiding Price when Call For Price is On?

    thanks a ton!!!

    got it workin!

    Gabstero

  7. #7
    Join Date
    Sep 2006
    Posts
    122
    Plugin Contributions
    0

    Default Re: Hiding Price when Call For Price is On?

    Hi,

    I dont get the instructions. I spent a lot of time testing but couldnt get it working.

    Can you please describe it a bit clearly?
    This is my Signature: w00t

 

 

Similar Threads

  1. v154 call for price showing with price £0.00 - no price set
    By peanut77 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 25 Jan 2016, 09:42 PM
  2. hide price when CALL FOT PRICE
    By satello in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 May 2014, 09:25 PM
  3. Replies: 2
    Last Post: 16 Jul 2009, 02:34 PM
  4. Disable Call for price url below Call for price image?
    By IllusionGuy in forum General Questions
    Replies: 0
    Last Post: 6 Jan 2009, 10:36 PM
  5. When a specific Attribute is used - change price to "call for price"?
    By PaulRiedel in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 4 Nov 2007, 02:34 PM

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