Forums / Templates, Stylesheets, Page Layout / Call for Price that works like Ask Us module?

Call for Price that works like Ask Us module?

Views: 1,345

Results 1 to 10 of 10
21 Feb 2012, 5:48 AM
#2
lala_rock avatar

lala_rock

New Zenner

Join Date:
Dec 2011
Posts:
41
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

Hello.Hope I land on the right forum. Is there a module for call for price that functions like this one http://www.zen-cart.com/index.php?ma...roducts_id=206

Instead of just a plain text saying "contact for price", i want it to be a link.

I think there is a link for call for price. As far as I could remember, before, when I mark a product as call for price, there are two call for price showing. The blue "call for price" text is a hyperlink. I leads me to a Contact Us page(cant remember that much).Here is the screenshot
Attachment #10170

Unfortunately I cant remember which file I modified and worse is dont know if I commented out the code for that or I deleted it. :no:

Kindly help me out on this please.
Thanks

21 Feb 2012, 6:43 AM
#3
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

admin Tools Developers Toolkit and search for the words you want to find


Play with it long enough and you will break it.
21 Feb 2012, 7:38 AM
#4
newbie456 avatar

newbie456

New Zenner

Join Date:
Aug 2011
Posts:
74
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

usernamenone:

admin Tools Developers Toolkit and search for the words you want to find

Thanks for that quick reply. I already did that, found the defines in includes/languages/english.php. It only shows the text. I want it to be a link and direct it to a contact page(just like the ask us about this product, when you go to product info, click the ask us about this item button, it leads you to a contact page). I remember having that before, I just dont remember which file i modified it and HOW did I modify it, wondering if I commented it out or deleted it. My bad I didnt provide documentations before.

21 Feb 2012, 8:01 AM
#6
newbie456 avatar

newbie456

New Zenner

Join Date:
Aug 2011
Posts:
74
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

I tried this on english.php

define('PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT','<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">Contact for Price</a>');

but it leads me to a blank page. Is it possible to create a module similar to ask us module?

21 Feb 2012, 8:21 AM
#7
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

Try

define('PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT','<a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL') ?>">Call for Price</a>');


Play with it long enough and you will break it.
21 Feb 2012, 11:43 PM
#8
lala_rock avatar

lala_rock

New Zenner

Join Date:
Dec 2011
Posts:
41
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

usernamenone:

Try

define('PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT','<a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL') ?>">Call for Price</a>');

this only turns a blank page.

I remember the call for price with a link works like a button with hyperlink in product listing page. As you can see in the screenshot, there are 2 call for price showing, one is just a plain red text (it came from includes/functions/extra_functions/in_ex_functions.php) and the blue one has a hyperlink.Big problem is dont know which file to modify. Is it in include/modules/my_template/product_listing.php? I badly needed to bring back that text with hyperlink. :shocking:

21 Feb 2012, 11:51 PM
#9
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

this link placed anywhere on your site will link to the contact us page

<a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL') ?>">Call for Price</a>

If you can't remember what you modified you are stuck with doing a backup


Play with it long enough and you will break it.
22 Feb 2012, 2:55 AM
#10
lala_rock avatar

lala_rock

New Zenner

Join Date:
Dec 2011
Posts:
41
Plugin Contributions:
0

Re: Call for Price that works like Ask Us module?

apologies for being such a dumb, this code works for me now

  define('PRODUCTS_PRICE_IS_CALL_FOR_PRICE_TEXT','<br/><a style="color:red" href="' . zen_href_link(FILENAME_CONTACT_US) . '">Contact for price</a>');

Thank you so much for your help! :smile: