Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity Price Breaks Per Product


maria071

Recommended Posts

  • 4 weeks later...
  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

I have installed the Quantity price breaks per product contribution. It works great, but I need to figure out if there is some way to use the lowest price tier pricing as the price that shows on the product listings. I want to list it as something like "As low as $2.00". That way people are not turned away by seeing the highest of the 3 prices that we set up for very small quantities (most of my customers buy in bulk anyways).

 

Does anyone know how to do this? I would also possibly like the capability for the lowest price to register when the customer is searching for a product by price. For example when they want to find items that are less than $1.00, it will pull up items that are $.99 in my tier 3 of pricing.

 

If anyone could help point me in the right direction, I'm not aware of other contributions that do this, I think I would need to modify some of the coding from Quantity Price Breaks.

 

Thanks so much!!!

Ashley

Link to comment
Share on other sites

Irin,

 

This should work for you.

 

Find

	
if($this->hasQuantityPrice == true) {
$lc_text = ' '
  . $currencies->display_price($this->lowPrice,
				   tep_get_tax_rate($this->taxClass))
 . ' - '
  . $currencies->display_price($this->hiPrice,
			   tep_get_tax_rate($this->taxClass))
  . ' ';

 

And replace with

if($this->hasQuantityPrice == true) {
//begin mod
if($this->quantity[1] > 0 && ($this->quantity[2] > 0)) {$lc_text .= ' '. $this->quantity[1] . ' - ' . $this->quantity[2] . ' ' . ' ' . $currencies->display_price($this->price[1], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[1] > 0 && ($this->quantity[2] < 1)) {$lc_text .= ' '. $this->quantity[1] . ' + ' . ' ' . $currencies->display_price($this->price[1], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[2] > 0 && ($this->quantity[3] > 0)) {$lc_text .= ' '. $this->quantity[2] . ' - ' . $this->quantity[3] . ' ' . ' ' . $currencies->display_price($this->price[2], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[2] > 0 && ($this->quantity[3] < 1 )) {$lc_text .= ' '. $this->quantity[2] . ' + ' . ' ' . $currencies->display_price($this->price[2], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[3] > 0 && ($this->quantity[4] > 0)) {$lc_text .= ' '. $this->quantity[3] . ' - ' . $this->quantity[4] . ' ' . ' ' . $currencies->display_price($this->price[3], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[3] > 0 && ($this->quantity[4] < 1)) {$lc_text .= ' '. $this->quantity[3] . ' + ' . ' ' . $currencies->display_price($this->price[3], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[4] > 0 && ($this->quantity[5] > 0)) {$lc_text .= ' '. $this->quantity[4] . ' - ' . $this->quantity[5] . ' ' . ' ' . $currencies->display_price($this->price[4], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[4] > 0 && ($this->quantity[5] < 1)) {$lc_text .= ' '. $this->quantity[4] . ' + ' . ' ' . $currencies->display_price($this->price[4], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[5] > 0 && ($this->quantity[6] > 0)) {$lc_text .= ' '. $this->quantity[5] . ' - ' . $this->quantity[6] . ' ' . ' ' . $currencies->display_price($this->price[5], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[5] > 0 && ($this->quantity[6] < 1)) {$lc_text .= ' '. $this->quantity[5] . ' + ' . ' ' . $currencies->display_price($this->price[5], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[6] > 0 && ($this->quantity[7] > 0)) {$lc_text .= ' '. $this->quantity[6] . ' - ' . $this->quantity[7] . ' ' . ' ' . $currencies->display_price($this->price[6], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[6] > 0 && ($this->quantity[7] < 1)) {$lc_text .= ' '. $this->quantity[6] . ' + ' . ' ' . $currencies->display_price($this->price[6], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[7] > 0 && ($this->quantity[8] > 0 )) {$lc_text .= ' '. $this->quantity[7] . ' - ' . $this->quantity[8] . ' ' . ' ' . $currencies->display_price($this->price[7], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[7] > 0 && ($this->quantity[8] < 1)) {$lc_text .= ' '. $this->quantity[7] . ' + ' . ' ' . $currencies->display_price($this->price[7], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[8] > 0) {$lc_text .= ' '. $this->$this->quantity[8] . ' + </td><td class='.$style.'>' . ' ' . $currencies->display_price($this->price[8], tep_get_tax_rate($this->taxClass)) .'
';}
//end mod

Link to comment
Share on other sites

Ashleylr,

 

This should display as As low as (lowest price)

	  if($this->hasQuantityPrice == true) {
$lc_text = 'As low as '  . 
			$currencies->display_price($this->lowPrice, tep_get_tax_rate(
			$this->taxClass)); }

Link to comment
Share on other sites

Michael,

 

I would like to do the same thing as Ashley.... but when I try to edit the file i'm getting errors.. I'm using the PriceFormatter.php for SPPC.

 

Here is the part of my code...

 

  if($this->hasQuantityPrice == true) {
$lc_text = ' '
  . $currencies->display_price($this->lowPrice,
				   tep_get_tax_rate($this->taxClass))
  . ' - '
  . $currencies->display_price($this->hiPrice,
				   tep_get_tax_rate($this->taxClass))
  . ' ';
  }
  else {
$lc_text = ' '
  . $currencies->display_price($this->thePrice,
				   tep_get_tax_rate($this->taxClass))
  . ' ';
  }
}

Link to comment
Share on other sites

I spoke too soon I guess :blush:

 

Whie the As low as ______ is not working... if the price does not have a quanity price break, and instead just has a flat price the price seems to not show up.

 

Here is the part that I edited...

 

   if ($this->hasSpecialPrice == true) {
  $lc_text = ' <s>'
. $currencies->display_price($this->thePrice,
				 tep_get_tax_rate($this->taxClass))
. '</s><br/>  <span class="productSpecialPrice">'
. $currencies->display_price($this->specialPrice,
				 tep_get_tax_rate($this->taxClass))
. '</span> ';
}
else {
  if($this->hasQuantityPrice == true) {
$lc_text = '<font size="1">As low as</font><br>' .
  $currencies->display_price($this->lowPrice, tep_get_tax_rate($this->taxClass));
}
 }

Link to comment
Share on other sites

Irin,

 

This should work for you.

 

Find

	
if($this->hasQuantityPrice == true) {
$lc_text = ' '
  . $currencies->display_price($this->lowPrice,
				   tep_get_tax_rate($this->taxClass))
 . ' - '
  . $currencies->display_price($this->hiPrice,
			   tep_get_tax_rate($this->taxClass))
  . ' ';

 

And replace with

if($this->hasQuantityPrice == true) {
//begin mod
if($this->quantity[1] > 0 && ($this->quantity[2] > 0)) {$lc_text .= ' '. $this->quantity[1] . ' - ' . $this->quantity[2] . ' ' . ' ' . $currencies->display_price($this->price[1], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[1] > 0 && ($this->quantity[2] < 1)) {$lc_text .= ' '. $this->quantity[1] . ' + ' . ' ' . $currencies->display_price($this->price[1], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[2] > 0 && ($this->quantity[3] > 0)) {$lc_text .= ' '. $this->quantity[2] . ' - ' . $this->quantity[3] . ' ' . ' ' . $currencies->display_price($this->price[2], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[2] > 0 && ($this->quantity[3] < 1 )) {$lc_text .= ' '. $this->quantity[2] . ' + ' . ' ' . $currencies->display_price($this->price[2], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[3] > 0 && ($this->quantity[4] > 0)) {$lc_text .= ' '. $this->quantity[3] . ' - ' . $this->quantity[4] . ' ' . ' ' . $currencies->display_price($this->price[3], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[3] > 0 && ($this->quantity[4] < 1)) {$lc_text .= ' '. $this->quantity[3] . ' + ' . ' ' . $currencies->display_price($this->price[3], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[4] > 0 && ($this->quantity[5] > 0)) {$lc_text .= ' '. $this->quantity[4] . ' - ' . $this->quantity[5] . ' ' . ' ' . $currencies->display_price($this->price[4], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[4] > 0 && ($this->quantity[5] < 1)) {$lc_text .= ' '. $this->quantity[4] . ' + ' . ' ' . $currencies->display_price($this->price[4], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[5] > 0 && ($this->quantity[6] > 0)) {$lc_text .= ' '. $this->quantity[5] . ' - ' . $this->quantity[6] . ' ' . ' ' . $currencies->display_price($this->price[5], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[5] > 0 && ($this->quantity[6] < 1)) {$lc_text .= ' '. $this->quantity[5] . ' + ' . ' ' . $currencies->display_price($this->price[5], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[6] > 0 && ($this->quantity[7] > 0)) {$lc_text .= ' '. $this->quantity[6] . ' - ' . $this->quantity[7] . ' ' . ' ' . $currencies->display_price($this->price[6], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[6] > 0 && ($this->quantity[7] < 1)) {$lc_text .= ' '. $this->quantity[6] . ' + ' . ' ' . $currencies->display_price($this->price[6], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[7] > 0 && ($this->quantity[8] > 0 )) {$lc_text .= ' '. $this->quantity[7] . ' - ' . $this->quantity[8] . ' ' . ' ' . $currencies->display_price($this->price[7], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[7] > 0 && ($this->quantity[8] < 1)) {$lc_text .= ' '. $this->quantity[7] . ' + ' . ' ' . $currencies->display_price($this->price[7], tep_get_tax_rate($this->taxClass)) .' ';}
if($this->quantity[8] > 0) {$lc_text .= ' '. $this->$this->quantity[8] . ' + </td><td class='.$style.'>' . ' ' . $currencies->display_price($this->price[8], tep_get_tax_rate($this->taxClass)) .'
';}
//end mod

Thanks for your reply, Michael. Now in the Price column on my categories index.php page I have: 1 - 5 $140.00 5 - 10 $118.00 10 - 25 $103.00 25 + $95.00 but not on my product_info.php. I don't want this long price break on my categories page, just $95.00 - $140.00 is fine, but in the price break table on product_info.php page. How can I do that? And at the admin side these values are not saved, it's still 1 5 10 25. Any thought?

 

Thanks.

Edited by Irin
Link to comment
Share on other sites

My apologies.... anyone using SPPC w/ Price Breaks here is teh code used to have it display 'As low as _(low_price)_' instead of '_(low_price)_ - _(high_price)_'

 

Good Luck:

 

	if ($this->hasSpecialPrice == true) {
  $lc_text = ' <s>'
. $currencies->display_price($this->thePrice,
				 tep_get_tax_rate($this->taxClass))
. '</s><br/>  <span class="productSpecialPrice">'
. $currencies->display_price($this->specialPrice,
				 tep_get_tax_rate($this->taxClass))
. '</span> ';
}
else {
  if($this->hasQuantityPrice == true) {
$lc_text = '<font size="1">As low as</font><br>' .
  $currencies->display_price($this->lowPrice, tep_get_tax_rate($this->taxClass));
  }
  else {
$lc_text = ' '
  . $currencies->display_price($this->thePrice,
				   tep_get_tax_rate($this->taxClass))
  . ' ';
}
 }

Link to comment
Share on other sites

My apologies.... anyone using SPPC w/ Price Breaks here is teh code used to have it display 'As low as _(low_price)_' instead of '_(low_price)_ - _(high_price)_'

 

Good Luck:

 

	if ($this->hasSpecialPrice == true) {
  $lc_text = '?<s>'
. $currencies->display_price($this->thePrice,
				 tep_get_tax_rate($this->taxClass))
. '</s><br/>??<span class="productSpecialPrice">'
. $currencies->display_price($this->specialPrice,
				 tep_get_tax_rate($this->taxClass))
. '</span>?';
}
else {
  if($this->hasQuantityPrice == true) {
$lc_text = '<font size="1">As low as</font><br>' .
  $currencies->display_price($this->lowPrice, tep_get_tax_rate($this->taxClass));
  }
  else {
$lc_text = '?'
  . $currencies->display_price($this->thePrice,
				   tep_get_tax_rate($this->taxClass))
  . '?';
}
 }

That works great. Thanks. Now, how can I organize the quantity price break table on product_info.php to display:

1-4

5-9

10-24

25+

I think the code that must be modified is:

// If you want to change the format of the price/quantity table

// displayed on the product information page, here is where you do it.

 

if($this->hasQuantityPrice == true) {

$lc_text = '<table border="0" cellspacing="0" cellpadding="0" class="infoBox" align="center">

<tr valign="top">

<td>

<table border="0" cellspacing="1" cellpadding="5" class="infobox">';

$lc_text .= '<tr valign="top"><td width="100" class="infoBoxHeading">Qty. Discount</td>'

// . $currencies->display_price($this->thePrice,

// tep_get_tax_rate($this->taxClass))

. '</td>';

 

for($i=1; $i<=8; $i++) {

if($this->quantity[$i] > 0) {

$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'

. $this->quantity[$i]

.'+?</td>';

}

}

// <tr valign="top"><td width="150" class="infoBoxContents">M1P102</td><td align="center" width="50" class="infoBoxContents">'

// . $currencies->display_price($this->price[$i],

// tep_get_tax_rate($this->taxClass))

 

$lc_text .= '<tr valign="top"><td width="100" class="infoBoxContents">Price each</td>';

 

for($i=1; $i<=8; $i++) {

if($this->quantity[$i] > 0) {

$lc_text .= '<td align="center" width="50" class="infoBoxContents">'

. $currencies->display_price($this->price[$i],

tep_get_tax_rate($this->taxClass))

.'</td>';

}

}

$lc_text .= '</tr>';

Any ideas?

 

Thanks a lot,

Irina.

Link to comment
Share on other sites

I changed my code and now on the product_info.php my quantity breaks are displayed like this:

1-5

5-10

10-25

25+

 

I want them to be like this:

1-4

5-9

10-24

25+

 

In my understanding when it says in the code: $this->quantity[1] . ' - ' . $this->quantity[2] where quantity[1] : 1 and quantity[2] : 5. Next, $this->quantity[2] . ' - ' . $this->quantity[3] where quantity[2] : again 5 and quantity[3] : 10, etc. May be I'm wrong. Here is how my PriceFormater looks like:

// If you want to change the format of the price/quantity table

// displayed on the product information page, here is where you do it.

 

if($this->hasQuantityPrice == true) {

$lc_text = '<table border="0" cellspacing="0" cellpadding="0" class="infoBox" align="center">

<tr valign="top">

<td>

<table border="0" cellspacing="1" cellpadding="5" class="infobox">';

$lc_text .= '<tr valign="top"><td width="100" class="infoBoxHeading">Qty. Discount</td>'

// . $currencies->display_price($this->thePrice,

// tep_get_tax_rate($this->taxClass))

. '</td>';

 

//begin mod

if($this->quantity[1] > 0 && ($this->quantity[2] > 0)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[1] . ' - ' . $this->quantity[2] . ' ' . '</td>';}

if($this->quantity[1] > 0 && ($this->quantity[2] < 1)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[1] . ' + ' . '</td>';}

if($this->quantity[2] > 0 && ($this->quantity[3] > 0)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[2] . ' - ' . $this->quantity[3] . ' ' . '</td>';}

if($this->quantity[2] > 0 && ($this->quantity[3] < 1 )) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[2] . ' + ' . '</td>';}

if($this->quantity[3] > 0 && ($this->quantity[4] > 0)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[3] . ' - ' . $this->quantity[4] . ' ' . '</td>';}

if($this->quantity[3] > 0 && ($this->quantity[4] < 1)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[3] . ' + ' . '</td>';}

if($this->quantity[4] > 0 && ($this->quantity[5] > 0)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[4] . ' - ' . $this->quantity[5] . ' ' . '</td>';}

if($this->quantity[4] > 0 && ($this->quantity[5] < 1)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[4] . ' + ' . '</td>';}

if($this->quantity[5] > 0 && ($this->quantity[6] > 0)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[5] . ' - ' . $this->quantity[6] . ' ' . '</td>';}

if($this->quantity[5] > 0 && ($this->quantity[6] < 1)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[5] . ' + ' . '</td>';}

if($this->quantity[6] > 0 && ($this->quantity[7] > 0)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[6] . ' - ' . $this->quantity[7] . ' ' . '</td>';}

if($this->quantity[6] > 0 && ($this->quantity[7] < 1)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[6] . ' + ' . '</td>';}

if($this->quantity[7] > 0 && ($this->quantity[8] > 0 )) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[7] . ' - ' . $this->quantity[8] . ' ' . '</td>';}

if($this->quantity[7] > 0 && ($this->quantity[8] < 1)) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->quantity[7] . ' + ' . '</td>';}

if($this->quantity[8] > 0) {$lc_text .= '<td align="center" width="50" class="infoBoxHeading">'. $this->$this->quantity[8] . ' + </td>';

}

//end mod

// <tr valign="top"><td width="150" class="infoBoxContents">M1P102</td><td align="center" width="50" class="infoBoxContents">'

// . $currencies->display_price($this->price[$i],

// tep_get_tax_rate($this->taxClass))

 

$lc_text .= '<tr valign="top"><td width="100" class="infoBoxContents">Price each</td>';

 

for($i=1; $i<=8; $i++) {

if($this->quantity[$i] > 0) {

$lc_text .= '<td align="center" width="50" class="infoBoxContents">'

. $currencies->display_price($this->price[$i],

tep_get_tax_rate($this->taxClass))

.'</td>';

}

}

$lc_text .= '</tr>';

 

// Begin saving calculation

$lc_text .= '<tr valign="top"><td width="100" class="infoBoxContents">Saving %</td>';

 

for($i=1; $i<=8; $i++) {

if($this->quantity[$i] > 0) {

$lc_text .= '<td align="center" width="50" class="infoBoxContents">'

. $this->getDiscountSaving($this->price[1], $this->price[$i])

.'</td>';

}

}

$lc_text .= '</tr></table></td></tr></table>';

}

else {

$lc_text = '?'

. $currencies->display_price($this->thePrice,

tep_get_tax_rate($this->taxClass))

. '?';

}

}

return $lc_text;

}

 

function getPriceStringShort() {

global $currencies;

 

if ($this->hasSpecialPrice == true) {

$lc_text = '?<s>'

. $currencies->display_price($this->thePrice,

tep_get_tax_rate($this->taxClass))

. '</s><br/>??<span class="productSpecialPrice">'

. $currencies->display_price($this->specialPrice,

tep_get_tax_rate($this->taxClass))

. '</span>?';

}

else {

if($this->hasQuantityPrice == true) {

$lc_text = '<font size="1">As low as</font><br>' .

$currencies->display_price($this->lowPrice, tep_get_tax_rate($this->taxClass));

}

else {

$lc_text = '?'

. $currencies->display_price($this->thePrice,

tep_get_tax_rate($this->taxClass))

. '?';

}

}

return $lc_text;

}

}

 

?>

Any ideas would be appreciated.

 

Thanks,

Irina.

Link to comment
Share on other sites

Also, it seems as though that "as low as" code was written for display in the product info page, I still want the grid with all the different prices to show up there. I need the "as low as...." pricing to show up in the product listing (where it lists all the products for a particular category). will it work there? If so, where exactly should I paste that code?

 

Also, I'm assuming I'll have to do other modifications elsewhere if I want a product to show up in the search by price function (if one of the price tiers is less than the searched for price)?

 

Thanks so much for helping me figure this out!!!

Ashley

Link to comment
Share on other sites

Also, it seems as though that "as low as" code was written for display in the product info page, I still want the grid with all the different prices to show up there. I need the "as low as...." pricing to show up in the product listing (where it lists all the products for a particular category). will it work there? If so, where exactly should I paste that code?

 

Also, I'm assuming I'll have to do other modifications elsewhere if I want a product to show up in the search by price function (if one of the price tiers is less than the searched for price)?

 

Thanks so much for helping me figure this out!!!

Ashley

Replace the part of the code with the code provided above in your catalog/includes/classes/PriceFormatter.php. It gonna display 'As low as _(low_price)_' instead of '_(low_price)_ - _(high_price)_' in your category listing. Thanks to JEWbacca for that modification.

 

Regards.

Link to comment
Share on other sites

Replace the part of the code with the code provided above in your catalog/includes/classes/PriceFormatter.php. It gonna display 'As low as _(low_price)_' instead of '_(low_price)_ - _(high_price)_' in your category listing. Thanks to JEWbacca for that modification.

 

Regards.

 

 

 

Irina,

As it stands, the priceformatter class is not called up on the product_listing page (catalog/product_listing.php), so I don't see how that modification within just the price formatter itself would change how the price was displayed in the category listing. It appears that it would only change how the table was displayed when looking at the actual product.

 

Am I wrong there?

Link to comment
Share on other sites

Irina,

As it stands, the priceformatter class is not called up on the product_listing page (catalog/product_listing.php), so I don't see how that modification within just the price formatter itself would change how the price was displayed in the category listing. It appears that it would only change how the table was displayed when looking at the actual product.

 

Am I wrong there?

I modified just my PriceFormatter and I got my prices displayed 'As low as _(low_price)_' in category listing. Try and see if it works.

 

Regards.

Link to comment
Share on other sites

I modified just my PriceFormatter and I got my prices displayed 'As low as _(low_price)_' in category listing. Try and see if it works.

 

Regards.

 

What part of the priceformatter page are you replacing with that code that JEWbacca wrote? I don't see which part in the priceformatter file would control the category listing, it all looks to me like it controls the product listing. The way my category prices are displayed is controlled by my catalog/includes/modules/product_listing.php page so I guess I don't see how modifying the priceformatter will override that hard coding.

 

What part did you remove from the priceformatter?

Link to comment
Share on other sites

Nevermind, I figured it out!!! I was using a modified version of product_listing (a different version to display the products in columns) and it had its own pricing display rules. I deleted those and called out the standard getpricestringshort function and it worked.

 

Thanks so much for your help!!

Link to comment
Share on other sites

  • 4 weeks later...

I feel like I have been over every inch of the forums and contributions pages looking for the answer to my question. I am at a dead end.

 

I am trying to get the price breaks to show up in the product listing pages. I would like for it to look like it does here. (sorry, my print screen does not work at the moment).

 

I don't like the look of the table on my listing pages so I would somehow like to break it down like the site about does, yet still have the ability to enter a quantity to purchase and the right price be passed on to the cart.

 

I hope someone can point me in the right direction.

 

Thanks in advance.

Link to comment
Share on other sites

  • 4 weeks later...
Nevermind, I figured it out!!! I was using a modified version of product_listing (a different version to display the products in columns) and it had its own pricing display rules. I deleted those and called out the standard getpricestringshort function and it worked.

 

Thanks so much for your help!!

Hi there - I am using the 'display product listing in columns' contrib, and am going CRAZY!!!! I am trying to display the price as 'from xx' on the product listing page and just can't get it to work. I've got it working on the product_info page. Can someone help me out? I've tried the suggestions here, I don't think I'm understanding them fully, though.

 

Thanks, ~Barbara~

Link to comment
Share on other sites

Hi all,

 

I have been using this mod for some time and it was working properly after installation. Now I find the one feature is broken. Some items I require to be purchased in lots of 2. This was working at one time, but now you can change the amount in your cart to 1 and it will let you checkout. I have no idea how long this has been like this, so i have no idea where I may have meesed up the code.

 

Can someone point me in the right direction? Where is this feature controlled?

 

I am using version 1.11.2_1

here Most of the cutlery items are set up for multiple lots. I added the MySQL5 Compatibility fix, but it did not change the problem. Any help is greatly appreciated,

 

Tim

Link to comment
Share on other sites

I found it. When I installed the OScommerce update in classes/shopping_cart.php, I removed a couple lines that should have stayed. They were in the middle of some code that is replaced in the security fix. Everything is well.

 

Tim

Link to comment
Share on other sites

My apologies.... anyone using SPPC w/ Price Breaks here is teh code used to have it display 'As low as _(low_price)_' instead of '_(low_price)_ - _(high_price)_'

 

Good Luck:

 

	if ($this->hasSpecialPrice == true) {
  $lc_text = ' <s>'
. $currencies->display_price($this->thePrice,
				 tep_get_tax_rate($this->taxClass))
. '</s><br/>  <span class="productSpecialPrice">'
. $currencies->display_price($this->specialPrice,
				 tep_get_tax_rate($this->taxClass))
. '</span> ';
}
else {
  if($this->hasQuantityPrice == true) {
$lc_text = '<font size="1">As low as</font><br>' .
  $currencies->display_price($this->lowPrice, tep_get_tax_rate($this->taxClass));
  }
  else {
$lc_text = ' '
  . $currencies->display_price($this->thePrice,
				   tep_get_tax_rate($this->taxClass))
  . ' ';
}
 }

 

I've been thrown an oscommerce site for a client of ours, I never developed it initially, and regretably I do not know enough about either OSC or php to really be able to much other than follow very simple instructions!

 

No, a quick resume of what our client is looking for:

 

1. http://www.bangorfuels.com sells heating oil, the price breaks/quantity breaks contrib is installed to enable customers to purchase cheaper fuel the more they buy - easy enough, it works.

2. Our client does not want the price break to be displayed (http://www.bangorfuels.com/index.php?cPath=22) as ?0.10 - ?0.90 but instead to display "As low as ?0.10 per ltr" is this possible? If so could someone please post some nice simple Find / Replace / Insert type instructions! If it is not possible whats the best thing I can do?

 

I have checked the code on the priceformatter.php page (as I believe that this is the page I need to change?) and can confirm that "Change support special prices" is installed. I therefore thought I needed JEWbacca's code as given above, but what do I do with it!

 

Help and assistance (and buckets of patience) appreciated.

Allan Young

Link to comment
Share on other sites

Hello all,

 

Is there a way to move the price table from above the product description to below the product description on the product_info page?

 

I tried moving the two code lines below to right above my review and add to cart buttons, but nothing shows.

 

$pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id);

$products_price=$pf->getPriceString();

 

If anyone could shed some light on this it would be much appreciated.

Sonia,

Link to comment
Share on other sites

Hello all,

 

Is there a way to move the price table from above the product description to below the product description on the product_info page?

 

I tried moving the two code lines below to right above my review and add to cart buttons, but nothing shows.

 

$pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id);

$products_price=$pf->getPriceString();

 

If anyone could shed some light on this it would be much appreciated.

 

 

Ah I figured it out looking at the wrong line of code!! :blush:

Sonia,

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.

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