Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to put the entire store on sale?


MontanaMan

Recommended Posts

Posted

Hello:

 

We'd like to run a storewide sale ... 10% off everything. We have thousands of items, so we can't really put them on sale one-by-one.

 

Is there a way to put all items on sale?

 

I know PHP, and I'd be willing to go in and jigger the script a little, if necessary.

 

Thanks!!

 

-Robert Dyke

kashuen Collectibles

http://www.kashuen.com

Posted

SaleMaker has some 15 PHP documents to edit. It was a pain in the ass, and as expected, I didn't work at all. I went back through, and rechecked everything, it looked fine. I'm sure I missed something. Overall, I wouldn't recommend this one, too many changes.

Posted
SaleMaker has some 15 PHP documents to edit. It was a pain in the ass, and as expected, I didn't work at all. I went back through, and rechecked everything, it looked fine. I'm sure I missed something. Overall, I wouldn't recommend this one, too many changes.

 

Yeah, then I installed "easy advanced specials admin" in under 2 minutes and it worked like a charm. Nice.

  • 2 years later...
Posted

I have instaled on RC1 and lot of problems.

 

this archive:

product_listing.php

FIND

            if (tep_not_null($listing['specials_new_products_price'])) {
             $lc_text = ' <s>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';

replace with:

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

 

My original code:

				case 'PRODUCT_LIST_PRICE':
			$lc_align = 'right';
			if (tep_not_null($listing[$x]['specials_new_products_price'])) {
				$lc_text['products_price'] = '<s>' .  $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice"><blink>' . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</blink></span>';
			} else {
				$lc_text['products_price'] = ' ' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . ' ';
			}
			break;

 

changed various forms:

//   if (tep_get_products_special_price($listing['products_id'])) {
//   if (tep_get_products_special_price($listing[$x]['products_id'])) {
//   if (tep_not_null($products['specials_new_products_price'])) {
//   $special_price = tep_get_products_special_price($currencies->display_price($listing[$x]['specials_new_products_price']); 

 

and then with:

//    $special_price = tep_get_products_special_price($new_products['products_id']);
//   if ($special_price) {
//      $lc_text = '<s>' .  $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($special_price, tep_get_tax_rate($new_products['products_tax_class_id'])) . '</span>';
//    $lc_text = '<s>' .  $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice"><blink>' . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</blink></span>';
//    $lc_text = ' <s>' .                  $currencies->display_price($listing    ['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>                      <span class="productSpecialPrice">' .                            $currencies->display_price($listing    ['specials_new_products_price'], tep_get_tax_rate($listing    ['products_tax_class_id'])) . '</span> ';
//     $lc_text['products_price'] = '<s>' .  $currencies->display_price($listing [$x] ['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice"><blink>' . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</blink></span>';
 //   $lc_text ['products_price'] = ' <s>' .                  $currencies->display_price($listing [$x]   ['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</s>                      <span class="productSpecialPrice">' .                            $currencies->display_price($listing [$x]   ['specials_new_products_price'], tep_get_tax_rate($listing [$x]   ['products_tax_class_id'])) . '</span> ';

 //      $price = '<s>' . $currencies->display_price($products['products_price'], tep_get_tax_rate($products['products_tax_class_id'])) . '</s><br>';
  //     $price .= '<span class="productSpecialPrice">' . $currencies->display_price($products['specials_new_products_price'], tep_get_tax_rate($products['products_tax_class_id'])) . '</span>';





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



			} else {
				$lc_text['products_price'] = ' ' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . ' ';
			}

 

NO ONE OF COMBINATIONS WORKED.!

 

In product listing appears the original price/withount discount) or nothing on white. With other combination both prices to 0.00-.0.00

 

In product_info.php the prices are correct.!

In new_products.php correct!

In product listing bad.-

In shoping_cart.php bad- (but the subtotal right)

In checkout_confirmation.php bad.-

 

Please need help.

  • 1 month later...
Posted

I also was looking for contrib for full scale discount and found "easy advanced specials admin"

Easy to install and easy to manage, but small problem I have:

 

Everytime I apply, filter or activate anything, I get disconnected from admin and I need to log in again. Then I get to see the changes.

Why can that be?

Posted

Never mind previous post, seems to work just fine in live site, but not in my test server.

Great contrib, easy to use, thumbs up! (Only need to find out if there is any way to get it to round up to closest 10 cent)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...