Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Options - Price Update


DamanC

Recommended Posts

Hi Guys,

 

Bit stumped with this one :(

 

Options - Price Update installed. Got it working, also got it to work with GBP. Excellent contribution.

 

Currently the price is displayed on one part of the page, I would also like to add the price to another part of the page, say the bottom. However for the life of me, I cant work it out.

 

This is the code responsible (I think) for out putting the price;

 

 

 

<div class="main"><div class="desc"><?php echo stripslashes($product_info['products_description']); ?></div><br>

<div align="center">

 

<!-- price update attributes begin -->

<?php

if(tep_has_product_attributes($product_info['products_id'])){

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

?>

<script type="text/javascript">document.write('<span class="productSpecialPriceb"><div id="productNEWprice"></div>\n</span>');</script>

<script type="text/javascript">document.write('<span class="productSpecialPriceb"><div id="productNEWprice"></div>\n</span>');</script>

 

<noscript><?php echo $products_price; ?></noscript>

 

<?php } else {?>

<script type="text/javascript">document.write('<span class="productSpecialPriceb"><div id="productNEWprice"></div>\n</span>');</script>

<noscript><?php echo $products_price; ?></noscript>

<?php }

} else {

echo $products_price; } ?>

 

 

<input type="hidden" name="nuPrice" value="<?php echo str_replace("£","",$nuPrice); ?>">

<input type="hidden" name="nuPrice1" value="<?php echo str_replace("£","",$nuPrice1); ?>">

<!-- price update attributes end -->

 

</div></div>

 

 

Any tips or pointers would be greatly appreciated :)

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