Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Customizing Info Display for a specific Sale Category

Customizing Info Display for a specific Sale Category

Locked

Views: 2,396

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Jan 2008, 10:31 PM
#1
knc_john avatar

knc_john

New Zenner

Join Date:
Jan 2008
Posts:
3
Plugin Contributions:
0

Customizing Info Display for a specific Sale Category

Hi All,

Not new to Zen Cart but first time posting on the forums. I've done well customizing our site simply by reading through the posts and using the replies. But I've got a specific problem I've not been able to find a clue on. So here goes:

Our site has created several permanent & ongoing Sales: "In-Stock" & "Pre-Orders". So all of the products that we sell will fall into one of these Sale category.

Here is what we need help with. Is there a way to customize the Sale Information Displayed on the product's description page for one particular sale, PRE-ORDER, but leave the other Sale alone?

More specifically, this is what we want when a customer is looking at a product description page.
**
For a product in the "PRE-ORDER" Sale:**

**$45.99 **(Strike Through)
PRE-ORDER Sale: $36.79
**Save: **20% Off

**When the above product then gets moved to the "In-Stock" Sale:

$45.99 **(Strike Through)
Sale: $40.01
**Save: **13% Off

Essentially, we only want to customize the Pre-Order sale display in the product's page but leave the In-Stock sale alone. Is this possible?

This on the surface may seem simple to do, but I'm thinking it might require some database altering? Not sure.

Any help or suggestions will be very much appreciated.

Thanks in advance.

19 Jan 2008, 12:29 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Customizing Info Display for a specific Sale Category

/includes/functions/functions_prices.php contains this block of code:```
if ($display_special_price) {
$show_normal_price = '<span class="normalprice">' . $currencies->display_price($display_normal_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . ' </span>';
if ($display_sale_price && $display_sale_price != $display_special_price) {
$show_special_price = ' ' . '<span class="productSpecialPriceSale">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';
if ($product_check->fields['product_is_free'] == '1') {
$show_sale_price = '<br />' . '<span class="productSalePrice">' . [B]PRODUCT_PRICE_SALE[/B] . '<s>' . $currencies->display_price($display_sale_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</s>' . '</span>';
} else {
$show_sale_price = '<br />' . '<span class="productSalePrice">' . [B]PRODUCT_PRICE_SALE[/B] . $currencies->display_price($display_sale_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';
}
} else {
if ($product_check->fields['product_is_free'] == '1') {
$show_special_price = ' ' . '<span class="productSpecialPrice">' . '<s>' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</s>' . '</span>';
} else {
$show_special_price = ' ' . '<span class="productSpecialPrice">' . $currencies->display_price($display_special_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';
}
$show_sale_price = '';
}
} else {
if ($display_sale_price) {
$show_normal_price = '<span class="normalprice">' . $currencies->display_price($display_normal_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . ' </span>';
$show_special_price = '';
$show_sale_price = '<br />' . '<span class="productSalePrice">' . [B]PRODUCT_PRICE_SALE[/B] . $currencies->display_price($display_sale_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</span>';
} else {
if ($product_check->fields['product_is_free'] == '1') {
$show_normal_price = '<s>' . $currencies->display_price($display_normal_price, zen_get_tax_rate($product_check->fields['products_tax_class_id'])) . '</s>';
} else {
$show_normal_price = $currencies->display_price($display_normal_price, zen_get_tax_rate($product_check->fields['products_tax_class_id']));
}
$show_special_price = '';
$show_sale_price = '';
}
}

If you were to alter it so that it used added another prefix (before PRODUCT_PRICE_SALE in each of the 3 spots) in the case of your PreOrder sale, you'd have it.

You'll have to come up with what determines whether it's a PreOrder item or not.
19 Jan 2008, 1:10 AM
#3
knc_john avatar

knc_john

New Zenner

Join Date:
Jan 2008
Posts:
3
Plugin Contributions:
0

Re: Customizing Info Display for a specific Sale Category

Thanks for the input Doc.

The way we are determining an item is PO is by putting them all in the SaleMaker category we created - "PRE-ORDER".

Since there is really no way in the Product input to make this distinction, we've found that making two SaleMaker category and having it automatically change the price depending on where the product is relocated works the best. This is the only feasible distinction we've been able to come up with, it's location.

Not sure how or what kind of Pre-Fix we can add to make the distinction for the two folders.

Any possibility for customizing the lay out specifically for the PRE-ORDER category we've created in SaleMaker?

Thanks again.

19 Jan 2008, 1:30 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Customizing Info Display for a specific Sale Category

SaleMaker only affects price. Nothing else.
Doing things with layout based on SaleMaker settings is going to be very challenging.

19 Jan 2008, 4:46 AM
#5
knc_john avatar

knc_john

New Zenner

Join Date:
Jan 2008
Posts:
3
Plugin Contributions:
0

Re: Customizing Info Display for a specific Sale Category

Thanks for the input Doc, very much appreciate it. :smile:

Do you have any other suggestions on a way we can show the products as Pre-Order vs. In-Stock?