Zen Cart Logo

Price Not Displaying

Locked

Views: 986

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Jun 2009, 02:01
#1
thezombified avatar

thezombified

New Zenner

Join Date:
Mar 2006
Posts:
6
Plugin Contributions:
0

Price Not Displaying

I just noticed that while prices are displayed on the product list pages, the prices aren't showing up on the individual product info pages.

Also I'm getting a bit too much space between the description and the 'Add to Cart' button.

https://www.thezombified.com

21 Jun 2009, 09:58
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Price Not Displaying

thezombified:

I just noticed that while prices are displayed on the product list pages, the prices aren't showing up on the individual product info pages.

Also I'm getting a bit too much space between the description and the 'Add to Cart' button.

https://www.thezombified.com

Find the file tpl_product_info_display.php it is in:

includes - templates - YOURTEMPLATE - templates -

Look for a section that reads:

<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
  if ($show_onetime_charges_description == 'true') {
    $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
  } else {
    $one_time = '';
  }
  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->

This should be between the product name block and the free ship icon block. I don't think it is in your version of the file. The source code of your page reads:

<!--bof Product Name--> <h1 id="productName" class="productGeneral">Hallowhaus - Issue #1</h1> <!--eof Product Name--> <!--bof free ship icon --> <!--eof free ship icon -->

You can see there is not much between product name and free ship! If it isn't then you need to reinstate it. First option would be to paste the entire code block above to wherever you want it to appear on the page.

21 Jun 2009, 10:10
#3
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Price Not Displaying

In the same file there is something amiss with the product description.

Your source code reads:

<!--bof Product description --> <div id="productDescription" class="productGeneral biggerText"><i>Hallowhaus</i> is the tale of a newly undead girl, risen from the grave one Halloween night. She soon finds her way to the castle Hallowhaus, where she realizes she's not <i>quite</i> as alone as she'd thought.<p>

Issue #1 contains 18 black and white pages of spooky goodness. Preview several pages from this issue in the <i>Hallowhaus</i> section of The Zombified's image <a href="http://www.thezombified.com/fig/">gallery</a>.</div><p>

<!--eof Product description -->

There are some extra <p> tags in there. This is generated in the same file. You are looking for the product description block. It's default version looks like:

<!--bof Product description --> <?php if ($products_description != '') { ?> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <?php } ?> <!--eof Product description --> <br class="clearBoth" />

Personally, I think you need to sort out the page source before adjusting the spacing otherwise the display among different browsers is alway going to be unpredictable.

The first of the extra <p> tags seems to come from the text that you have entered in the product description. The second one however I believe must come from the php file above.

22 Jun 2009, 18:35
#4
thezombified avatar

thezombified

New Zenner

Join Date:
Mar 2006
Posts:
6
Plugin Contributions:
0

Re: Price Not Displaying

Thanks! :)