Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-17-2012 11:25:51

jensme
Member
Registered: 04-29-2010
Posts: 392

Sale Price Not Displaying

I've got a sale price set for this product, but the sale price isn't showing.  It's possible I removed this ability somewhere else, but I see it there in the display price include.

http://www.shopflytrap.com/ecom-prodshow/TEST001.html

Offline

 

#2 02-19-2012 10:39:31

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Sale Price Not Displaying

If you have edited the product price display then you may have introduced a syntax error causing the pricing include to fail as I am not seeing any ccp generated pricing display.

John

Offline

 

#3 02-27-2012 11:04:45

jensme
Member
Registered: 04-29-2010
Posts: 392

Re: Sale Price Not Displaying

Here's what I've got.  Sorry I can never remember how to show it in the code window.

<?php

$eol       = $this->globals('core.eol');
$priceinfo = $this->globals('ecom.prod_priceinfo');
$proddisp  = $this->globals('ecom.prod_proddisp');

// +--
// | Only display valid prices.
// +--

if (!(empty($priceinfo['type']))) {

     // +--
     // | Display wholesale prices.
     // +--

     if ($priceinfo['type'] == 'W') {

          print '<div class="pricediv"><p class="inline">Retail: </p>';
          print '<p class="pricex">' . $this->xhtml_encode($priceinfo['displaybx']);
          print '</p></div>' . $eol . $eol;

          print '<div class="pricediv"><p class="inline">Wholesale: </p>';
          print '<p class="price">' . $this->xhtml_encode($priceinfo['displayb']);
          print '</p></div>' . $eol . $eol;

     // +--
     // | Display sale prices.
     // +--

     } elseif ($priceinfo['type'] == 'S') {

          print '<div class="pricediv"><p class="inline">Regularly: </p>';
          print '<p class="pricex">' . $this->xhtml_encode($priceinfo['displaybx']);
          print '</p></div>' . $eol . $eol;

          print '<div class="pricediv"><p class="inline">On Sale: </p>';
          print '<p class="price">' . $this->xhtml_encode($priceinfo['displayb']);
          print '</p></div>' . $eol . $eol;

     // +--
     // | Display regular prices.
     // +--

     } elseif ($priceinfo['type'] == 'R') {

//  print '<div class="pricediv"><p class="inline"></p>';

//  print '<span class="price">' . $this->xhtml_encode($priceinfo['displayb']);

//  print '</span></div>' . $eol . $eol;

    print '<span class="price">' . $this->xhtml_encode($priceinfo['displayb']);
   
    print '</span>' . $eol . $eol;



     } elseif ($priceinfo['type'] == 'V') {

          $priceinfo['displayb'] = preg_replace('/\$/','\$',$priceinfo['displayb']);

          print '<div class="pricediv">';
          print $priceinfo['displayb'];
          print '</div>' . $eol . $eol;

     } // End of if statement.

     // +--
     // | Display recurring prices.
     // +--

     if ($priceinfo['displayr']) {

          print '<div class="pricediv"><p class="inline">Recurring Charge: </p>';
          print '<p class="price">' . $this->xhtml_encode($priceinfo['displayr']);
          print '</p></div>' . $eol . $eol;

     } // End of if statement.

} // End of if statement.

// +--
// | Display out of stock message if this item is out of stock.
// +--

if (($proddisp['useinv']) && (!($proddisp['invlevel'] > 0))) {

     print '<div class="pricediv"><p class="outstock">This item is currently out of stock.</p>';
     print '</div>' . $eol . $eol;

} // End of if statement.

?>

Offline

 

Board footer