Forums / Templates, Stylesheets, Page Layout / How to change 'Contact Us' into plain text (not a link) in showcase mode?

How to change 'Contact Us' into plain text (not a link) in showcase mode?

Views: 1,538

Results 1 to 6 of 6
26 Jun 2012, 3:49 AM
#1
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

How to change 'Contact Us' into plain text (not a link) in showcase mode?

From
includes/languages/english.php
Line #511 : define('TEXT_SHOWCASE_ONLY','Contact Us');
I changed 'Contact Us' into '+ 运杂税费' (http://angelcorp.net/zencart/index.php?main_page=index&cPath=1_4). I further want to make it plain text (disable link).
Please help me. Thanks.

26 Jun 2012, 5:45 PM
#2
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: How to change 'Contact Us' into plain text (not a link) in showcase mode?

I can only make 'contact us' form blank by inserting whatever symbol (I use %) in 'tpl_contact_us_default.php' 2nd line

<?php echo zen_draw_form('contact_us', %zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>

but cannot stop the link function.
Please help. Thanks.

1 Jul 2012, 3:11 AM
#3
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: How to change 'Contact Us' into plain text (not a link) in showcase mode?

The format portion of my website is almost done, but this problem remain unsolved.
Many thanks to zen cart, plugin contributors (I installed Tabbed Product Pro & CKEditor), and this forum.
Again, please help me stop this link function (originally it's 'contact us' under showcase with price) while keep the text there.
http://angelcorp.net/zencart/index.php?main_page=product_info&cPath=1_4&products_id=1

1 Jul 2012, 12:24 PM
#4
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: How to change 'Contact Us' into plain text (not a link) in showcase mode?

I had seen this, but it's not very clear to me what you need.
Do you want to remove the link from "contac us"? Like displaying "contact us" but without it linking anywhere? Or like removing the "contact us" altogether?

p.s. I had replied to your request by pm, had you checked it?

1 Jul 2012, 4:49 PM
#5
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: How to change 'Contact Us' into plain text (not a link) in showcase mode?

Thank you, Keneso. I had not checked the message until a moment ago.
I'd like to display "contact us" but without it linking anywhere. I searched the forum and found a couple of similiar questions posted long time ago but without answer.
Thank you for your time.

1 Jul 2012, 9:15 PM
#6
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: How to change 'Contact Us' into plain text (not a link) in showcase mode?

Eventually I figured out with hints from other posts.
Go to 'includes/functions/functions_general.php' and find (around 2/3 down to bottom)
// show case only superceeds all other settings
if (STORE_STATUS != '0') {
return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_SHOWCASE_ONLY . '</a>';
}
change to
if (STORE_STATUS != '0') {
return 'whatever text you want to show here';
}
beatiful zen cart and this forum.