Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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

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

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

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

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

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

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

  • 1 month later...

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

}

}

}

?>

Link to comment
Share on other sites

  • 4 months later...

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

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...

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...