Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
midiman2525

Does anyone know how to setup Easy Call for Price 2.3.1

Recommended Posts

Hi I am having trouble setting up easy call for price.

 

It's not the easiest module to install.

 

I can't find some of the lines of code to replace in my original files.

 

Is it just me?

 

Please help.

 

I need a solution where I can show "Please call for price" on items where I don't want to display a normal price.

 

Thanks

Share this post


Link to post
Share on other sites

can be done very easy way, example: if price for the product is set to 0.00 than the add to cart button is disabled and the "call for proce" instead of 0.00 will appear - very easy to setup.


Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Share this post


Link to post
Share on other sites

I suspect he installed the contribution/add-on sucessfully.

 

Which bit do you not understsand/can't find the code?

 

What version of osc is your shop?

 

What version is the add-on you are trying to install compatible wit?

 

Cheers

 

G


Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Share this post


Link to post
Share on other sites

I suspect he installed the contribution/add-on sucessfully.

 

Which bit do you not understsand/can't find the code?

 

What version of osc is your shop?

 

What version is the add-on you are trying to install compatible wit?

 

Cheers

 

G

 

Hi I was tryin to install this one

 

Easy Call for Price 2.3.1-ver1.1.1

 

I,m using OSC 2.3.1

 

It says its for 2.3.1 and that it should take 5 mins to install.

 

I cant get it to work becuase I cant find some of the code i,m supposed to replace.

 

Thanks

Share this post


Link to post
Share on other sites

If you have not done a step or part of a step because you can't find some code it obviously will not work.

 

Most of us on this forum are psychic and know what code you can't find and so will be able to tell you what to do.

 

:-)

 

Have you though of posting what you can't find and the code you do have?

 

Cheers

 

G


Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Share this post


Link to post
Share on other sites

Hi see this post here.

 

You also made a post in this thread.

 

The user is having the same problem as me. Where he can't find the code to change.

 

http://www.oscommerce.com/forums/topic/97743-previous-posting-regarding-price-000/page__view__findpost__p__1596346

 

Some people have said they have managed to get it working, I would like to know how?

 

I'm using OSCv2.3.1

 

Thanks

Share this post


Link to post
Share on other sites

I got error message even though I follow every install steps provided

 

Parse error: syntax error, unexpected T_STRING in \catalog\includes\classes\currencies.php on line 78

 

can any one help? Many thanks in advance

 

ce7

Share this post


Link to post
Share on other sites

what id did to get it to work is use this:

on a new install 2.3

currencies.php

 

below is a paste of the code at the end of the file i changed to get it to work.

compare to what you have and what the install says. the rest of the install seems ok.

 

 

------

 

 

function get_decimal_places($code) {

return $this->currencies[$code]['decimal_places'];

}

function display_price($products_price, $products_tax, $quantity = 1) {

// BOF: MOD - EASY CALL FOR PRICE 2.3.1v1.0

// return $this->format($this->calculate_price($products_price, $products_tax, $quantity));

 

define ('CALL_FOR_PRICE_VALUE', 0);

 

// If you sell products for $0.00 and want to display "Call for Price!" for other products, set their price and the CALL_FOR_PRICE_VALUE to -1.

if ($products_price > CALL_FOR_PRICE_VALUE){

return $this->format($this->calculate_price($products_price, $products_tax, $quantity));

} else {

define ('TEXT_CALL_FOR_PRICE', 'TEXT_CALL_FOR_PRICE');

 

// You can set CALL_FOR_PRICE_TEXT to anything you want. Its style is determined by the page it is displayed on. Changes made here will be visible throughout your site.

 

return TEXT_CALL_FOR_PRICE;

 

// BOF: MOD - EASY CALL FOR PRICE 2.3.1v1.0

}

}

}

?>

Share this post


Link to post
Share on other sites

and also need to mod to add ASK A QUESTION. to be a complete fix

Edited by mafiouso

Share this post


Link to post
Share on other sites

Hi.

I have some problems with installation of this add on, too. The installation instructions say:

______________________________________________________

In catalog/product_info.php

FIND:

<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

REPLACE WITH:

<?php

// BOF: MOD - EASY CALL FOR PRICE 2.3.1v1.0

/*

 

<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

*/

if ($product_info['products_price'] == CALL_FOR_PRICE_VALUE){

?>

<span class="buttonAction">

<a href="javascript:history.go(-1)"><?php echo tep_draw_button(IMAGE_BUTTON_BACK,'Back',null,'primary'); ?></a></span>

<?php

} else {

?>

<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

<?php

}

// EOF: MOD - EASY CALL FOR PRICE 2.3.1v1.0

?>

* SAVE AND CLOSE FILE

________________________________________________________________

 

But the code in my OSC v.2.3.1 is different (see below).

________________________________________________________________

<div class="buttonSet">

<span class="buttonAction"><?php echo tep_draw_button2_top();?><?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?><?php echo tep_draw_button2_bottom();?></span>

 

<div class="fl_right" align="right"><?php echo tep_draw_button_top();?><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?><?php echo tep_draw_button_bottom();?></div>

</div>

 

</div>

</li>

</ol>

</div>

</div>

 

</div>

_________________________________________________________________

 

Where should I put the replace code?

Thanks

Share this post


Link to post
Share on other sites

Anybody? I would like to fix catalog/product_info.php in Easy call for price addon (topic above)! Have anybody fixed that file before?

Share this post


Link to post
Share on other sites

same problem here, the currency file is causing error when changed as per the instructions.

i remember i install it succefully on 2.3.1 but now on 2.3.3 most of the lines does not exist.

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
Sign in to follow this  

×