Jump to content

Recommended Posts

This requires core changes so dont use if that's not your thing.

******NOTE THIS WILL OVERWRITE STOCK FILES******** DO NOT USE IF YOU DO NOT WISH TO DO THAT.*********

Updated to get "Call for Price" working on Phoenix.

Specials must never be £0.00.!

INSTALLATION:

No requirement to edit files. Simply backup and install files as provided. Some are new others overwrite old files! So BACKUP

Once files have been copied over go to admin/Modules/content

remove product_info module -- Price  ( ******must remove not just turn to false!*****)

Install product_info module- Call for Price (arrange sort order to suite your page layout)

That's it. Any product with £0.00 will have price replaced with "Call for Price" text. Buy now button removed from product listing on index and add to cart button removed from product info page.

Has been tested on Phoenix V1.0.1.1 only.

Can be seen working on my custom test site

NOTE: This is NOT the official test site

image.thumb.png.c6e48a8f5b42266a61d173d9216bc245.png

image.png.bdd6270ebf41e284d70f7e7cdda356f6.png

image.png.428853bbedf07e2451f0b575c4a59d29.png


 

Share this post


Link to post
Share on other sites

Ok, got a error that i fixed pretty quick.

1146 - Table 'dev_tropicalwatersports_com_au.TABLE_CURRENCIES' doesn't exist

select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from TABLE_CURRENCIES

in the currencies.php you had $currencies_query = tep_db_query("select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from " . TABLE_CURRENCIES);

I fixed  buy changing to

$currencies_query = tep_db_query("select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies");

Steve

Share this post


Link to post
Share on other sites
Posted (edited)

Sorry for bugging you, I wanted add the phone number at well in the display, but not updated to what I change it too. eg:

define('TEXT_CALL_FOR_PRICE', '<a href="' . tep_href_link('contact_us.php') . '">Call for Price! <br>Phone xxx xxx xxx </a>');

 

Steve

Edited by stefan1959

Share this post


Link to post
Share on other sites
Posted (edited)

Works fine just check your code. This is just a quick example not a recomendation

define('TEXT_CALL_FOR_PRICE', '<a href="' . tep_href_link('contact_us.php') . '">Call for Price!<br><i class="fas fa-phone">&nbsp;0101222222</i></a>');


You could if you wanted make the phone number active and clickable so it will auto call, again check the code before tring to use on like site it's just a example.

define('TEXT_CALL_FOR_PRICE', '<a href="' . tep_href_link('contact_us.php') . '">Call for Price!<br></a><a href="tel:+0101222222" class="fas fa-phone">&nbsp;0101222222</a>');

 

image.thumb.png.d7e4b932e45868b0d1808acb37f4c8d5.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites
Posted (edited)

Weird, I just copied and pasted what you did and still shows the same, I even changed "Call" to "Contact" and "Call" still displays. Something is blocking the update.

I will restore the old files and start again, I might have missed something. BTW I removed the +VAT in other code as I'm in Australia.

Steve

image.thumb.png.c25d68d1ef94337f2cbb4107cfc6e325.png

image.thumb.png.13fc50506407c254b54aaa7a649ff123.png

Edited by stefan1959
update

Share this post


Link to post
Share on other sites

Not happening for some reason, would it be we working with different versions  or another addon is interfering, as your site I presume works with

23 hours ago, stefan1959 said:

$currencies_query = tep_db_query("select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from " . TABLE_CURRENCIES);

Restores and added files again and just changed "Call" to "Contact".  Removed price module and add call for price. Cleared cache on site and browser.

image.thumb.png.690c08c5ca17e01fefa7df8d6d26c4f5.png

image.thumb.png.ff910ef353f3165c385e38e49d3deccc.png

Share this post


Link to post
Share on other sites

The add-on needs to be installed carefully,

remove product_info module -- Price  ( ******must remove not just turn to false!*****)

Do this first and remove all files do not just turn it of, Then and only then copy over and install the new files and turn on the new add-on. If you did not do this then you could have messed up your config table.

 


 

Share this post


Link to post
Share on other sites

If your changing the file and the changes are not beeing seen on your site then it can only be a cache issue with the server, it's the only place it can get the old text.


 

Share this post


Link to post
Share on other sites
3 minutes ago, JcMagpie said:

The add-on needs to be installed carefully,

remove product_info module -- Price  ( ******must remove not just turn to false!*****)

Do this first and remove all files do not just turn it of, Then and only then copy over and install the new files and turn on the new add-on. If you did not do this then you could have messed up your config table.

 

ok. I might do a clean install of CE and try again, off to my real job now :(

Share this post


Link to post
Share on other sites

Well looking at your last post I don't thnk you need to as the add-on installed fine, it's your editing of the language file thats not working and that is all to do with your serve cache.

But yes you need to uninstall the osC stock price moduel before you install this one.


 

Share this post


Link to post
Share on other sites

Just a update, I did a clean install added the module and works fine.

http://osc.tropicalwatersports.com.au/product_info.php?products_id=4

Only thing I can think its in the database. I imported the products in from a old version originally and it had the old call for price module.

The config table you mentioned that might be messed up, is it that stored in the database?

Steve

 

Share this post


Link to post
Share on other sites
8 hours ago, stefan1959 said:

The config table you mentioned that might be messed up, is it that stored in the database?

Yes it is, this can get messed up if you don't unistall add-on's or modules before removing files. Basicly the old add-on data will still be in the table and it can mess up the site.

You can also mess it up if you edit  files and add or change keys while the add-on is still active and installed.

image.thumb.png.a6b03acaa44f0b35d94c7be2739193b1.png


 

Share this post


Link to post
Share on other sites
Posted (edited)

Worked out what was going on, I must of brought in the /includes/languages/english.php file from old site with define('TEXT_CALL_FOR_PRICE' in it

all working now  :)

image.thumb.png.9add40201bb1e9abfbdb0e5a4ab85ec9.png

Edited by stefan1959

Share this post


Link to post
Share on other sites

I just updated to v1.0.2.1 , I saw the product_listing.php has been updated. I tried to fix myself, first part I could edit ok, but the bottom edit has changed alot and I haven't a clue :)

But what happen I put back v1.0.2.1 version back with no changes and call for quote seems works ok. So I'm happy.

image.thumb.png.35287806dfaea05c4ff87c98b5390874.png

Share this post


Link to post
Share on other sites

I'm freezing all my add-on's at 1.0.2.0 as it's not posiable to keep updating them for every small update done to phoenix.

 


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×