Hiển thị giá: liên hệ cho opencart

Posted by admin 07/11/2015 19 Comment(s) Thủ thuật,

Khi mình làm web thì thấy một điều bất cập đó là không phải khách hàng nào họ cũng điền giá cho sản phẩm của họ, mà khi đó họ lại muốn hiển thị giá: liên hệ hoặc là miễn phí. Vậy để Hiển thị giá: liên hệ cho opencart ta làm như nào? Bài viết này sẽ hướng dẫn cho các bạn cách làm điều đó.

 

 

Bạn vào file:  system/library/currency.php

Tìm đến dòng 74, bạn sẽ thấy đoạn:

$string = '';

Bạn chèn vào đằng trước nó đoạn code như sau:

if ($format && (float)$value == 0) {
            return 'Liên hệ';
          }

Sau đó lưu lại là ok.

19 Comment(s)

AbWBLmMq:
18/10/2024, 04:02:32 AM, www.example.com
Reply

1

Terri Martinez:
03/10/2025, 09:50:28 PM, levited.com
Reply

Ahaa, its pleasant dialogue about this article at this place at this website, I have read all that, so now me also commenting here.

Craig Garcia:
07/10/2025, 12:33:07 AM, antibact.sbs
Reply

you're in reality a excellent webmaster. The site loading velocity is amazing. It sort of feels that you're doing any unique trick. Furthermore, The contents are masterwork. you've done a great job in this subject!

Craig Garcia:
07/10/2025, 03:51:46 AM, antibact.sbs
Reply

you're in reality a excellent webmaster. The site loading velocity is amazing. It sort of feels that you're doing any unique trick. Furthermore, The contents are masterwork. you've done a great job in this subject!

James Morris:
10/10/2025, 03:36:13 AM, dapoxetined.org
Reply

There's definately a great deal to find out about this topic. I like all of the points you've made.

Rebekah Gomez:
10/10/2025, 03:25:06 PM, amoxibest.top
Reply

I need to to thank you for this great read!! I definitely loved every little bit of it. I've got you book marked to check out new stuff you

Bryan Moore:
11/10/2025, 12:41:13 AM, medshop24h.top
Reply

I enjoy what you guys tend to be up too. This kind of clever work and exposure! Keep up the excellent works guys I've included you guys to my own blogroll.

Heather Hutchinson MD:
11/10/2025, 08:56:58 PM, tadalah.com
Reply

I like it when folks come together and share opinions. Great blog, keep it up!

Robert Baker:
12/10/2025, 04:53:49 AM, sildenafiil.cc
Reply

I am sure this piece of writing has touched all the internet people, its really really fastidious post on building up new weblog.

William Bass:
12/10/2025, 04:05:20 PM, propeciaa.sbs
Reply

We examined stumpleaudio and found some new great rings, but I am going to keep with Grooveshark for now. Individually I do believe it can better than any of the various other on the list.

Robin Dunn:
12/10/2025, 10:33:20 PM, sildenaguide.com
Reply

If you are going for best contents like me, simply pay a quick visit this website daily for the reason that it provides quality contents, thanks

Molly Stephens DDS:
28/10/2025, 02:14:48 AM, zithromax24h.sbs
Reply

Wow! This blog looks exactly like my old one! It's on a totally different subject but it has pretty much the same page layout and design. Great choice of colors!

Antonio Fitzgerald:
29/10/2025, 07:34:21 AM, kamagras.shop
Reply

I will right away take hold of your rss as I can not find your email subscription hyperlink or e-newsletter service. Do you’ve any? Kindly let me recognize in order that I may subscribe. Thanks.

Donald Knox:
07/11/2025, 02:57:52 AM, sildenawin.shop
Reply

whoah this blog is excellent i love reading your articles. Stay up the good work! You already know, many people are searching around for this info, you can aid them greatly.

Michelle Mahoney:
07/11/2025, 06:16:31 PM, kamagradirect.shop
Reply

I needed to thank you for this fantastic read!! I definitely loved every little bit of it. I have you saved as a favorite to look at new stuff you

Alicia Butler:
09/11/2025, 05:20:02 PM, tadalix.shop
Reply

Amazing! This blog looks just like my old one! It's on a totally different topic but it has pretty much the same page layout and design. Outstanding choice of colors!

Marie Rodgers:
13/11/2025, 11:12:20 PM, ivermactin.sbs
Reply

Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and aid others like you aided me.

Rhonda Garrett:
28/11/2025, 07:13:13 AM, avanafil.online
Reply

Ahaa, its good conversation about this paragraph here at this weblog, I have read all that, so at this time me also commenting here.

Nicholas Lynch:
28/11/2025, 08:24:09 PM, bupropion150mg.shop
Reply

These are truly wonderful ideas in on the topic of blogging. You have touched some good points here. Any way keep up wrinting.

Write a Comment