Forums / Templates, Stylesheets, Page Layout / Help Changing the call for price option

Help Changing the call for price option

Views: 1,915

Results 21 to 25 of 25
21 May 2013, 7:13 PM
#21
boydbreen avatar

boydbreen

New Zenner

Join Date:
Oct 2012
Posts:
48
Plugin Contributions:
0

Help Changing the call for price option

Hi Ajeh

Thanks for your time

Here is my 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_PRICE, PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
  }
  // bof: custom Call for Price image override
    switch (true) {
        case ($products_id == '2' && $product_check->fields['product_is_call']):
      $call_tag = '<br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'call_for_price_2.jpg', PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
          break;
        case ($products_id == '3' && $product_check->fields['product_is_call']):
      $priceinfo['call_tag'] . zen_image(DIR_WS_TEMPLATE_IMAGES . 'call_for_price_3.jpg', PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT);
          break;
  }
  echo 'CALL FOR PRICE products_id: ' . $products_id . ' call_tag: ' . $call_tag . '<br>'; 

// eof: custom Call for Price image override
}
}

return $final_display_price . $free_tag . $call_tag;

////
// Is the product free?

21 May 2013, 7:35 PM
#22
boydbreen avatar

boydbreen

New Zenner

Join Date:
Oct 2012
Posts:
48
Plugin Contributions:
0

Re: Help Changing the call for price option

I have it working now with the correct images but only on that echo call it is not appearing in the price info area

nearly there

21 May 2013, 7:44 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help Changing the call for price option

Can you lok at the code in post #20 ... and carefully add that code rather than the code you are using and then change the products_id numbers to mach your products and the filenames to match your filenames?

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!]
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!

21 May 2013, 8:15 PM
#24
boydbreen avatar

boydbreen

New Zenner

Join Date:
Oct 2012
Posts:
48
Plugin Contributions:
0

Re: Help Changing the call for price option

sorry for being hard work

its working perfectly thankyou very much

your a star

:)

21 May 2013, 8:20 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help Changing the call for price option

Thanks for the update that this is now working for you ... :smile:

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!]
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!