Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have installed the Call For Price Mod with wonderful results, as well as the featured prodcuts option; however my reviews page still displays the price set in the configuration "$999,999.00". I have been back through my code and compared to the instructions multiple times now and everything seems to be as written.

 

This feature is working everywhere perfectly with the exception of two things...the reviews page still shows the price and a small inconvenience is that the 'button_product_info.gif' does not show up anywhere.

 

Thoughts anyone? This is not a major deal, but if I could get it resolved that would be great.

Posted

You must have missed this step (or it wasn't included in your install instructions):

 

***********************************************************************
Step 7.0
***********************************************************************
inside catalog/product_review_info.php file
about line 31

Orrigional code:

if ($new_price = tep_get_products_special_price($review['products_id'])) {
$products_price = '<s>' . $currencies->display_price($review['products_price'], tep_get_tax_rate($review['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($review['products_tax_class_id'])) . '</span>';
 } else {
$products_price = $currencies->display_price($review['products_price'], tep_get_tax_rate($review['products_tax_class_id']));
 }

Replace with:

if ($new_price = tep_get_products_special_price($review['products_id'])) {
$products_price = '<s>' . $currencies->display_price($review['products_price'], tep_get_tax_rate($review['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($review['products_tax_class_id'])) . '</span>';
 } elseif ($currencies->display_price($review['products_price'], tep_get_tax_rate($review['products_tax_class_id'])) == '$999,999.00'){
  $products_price = '<a href=contact_us.php>' . TEXT_CALL_FOR_PRICE . '</a>';
 } else {
$products_price = $currencies->display_price($review['products_price'], tep_get_tax_rate($review['products_tax_class_id']));
 }

about line 144

Orrigional code:

echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';

Replace with:

if ($currencies->display_price($review['products_price'], tep_get_tax_rate($review['products_tax_class_id'])) == '$999,999.00')
 {
  echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_product_info.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';
 }
 else
 {
  echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>';
 }

 

Be sure to make these changes to product_review_info.php, product_review_write.php, and product_reviews.php.

 

After doing this on my install, the $999,999.00 has been replaced by $0.00. For some reason, it is not calling up TEXT_CALL_FOR_PRICE. I have tried including it in includes/languages/english/product_review_info.php + product_review_write.php + product_reviews.php + reviews.php, but it makes no difference and only displays $0.00. It's better than displaying $999,999.00, though, IMO.

Posted

Update, I had to go back through all of the files listed above to clear the code mentioned above. It ended up changing ALL of the prices in those files to $0.00, not just those that fell under "Call for Price".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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