Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

JcM Call for Price Phoenix V1.0


JcMagpie

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

 

Link to comment
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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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
Link to comment
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

Link to comment
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.

 

 

Link to comment
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 :(

Link to comment
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.

 

Link to comment
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

 

Link to comment
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

 

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...