If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / How to showing total sales price instead of showing incremental for attributes

How to showing total sales price instead of showing incremental for attributes

Locked

Started by psuskeels on 8 Nov 2006, 8:37 PM · Views: 2,468

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
8 Nov 2006, 8:37 PM
#1
psuskeels avatar

psuskeels

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

Post #1 by psuskeels

in includes/modules/attributes.php - I changed to (getting rid of prefix):

                    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . TEXT_ATTRIBUTE_IS_FREE;
                  } else {
                    // normal price
                      $products_options_display_price= ' (' .
                      $currencies->display_price(**zen_get_products_base_price((int)$_GET['products_id']) +**$new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                  }

Enjoy,

-Mario

9 Nov 2006, 3:14 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

If you don't input a prefix ... then it will not show but still work like +

What are you trying to do with the attributes and price?

Have you an URL with an example?

It almost sounds like you are trying to do a Priced by Attribute but not use the built in logic for it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Nov 2006, 7:01 AM
#3
psuskeels avatar

psuskeels

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

Post #3 by psuskeels

Only localhost url :) .. I am trying to price by attributes, but what i'm trying to do is show in a drop down (was i supposed to make the product $0.00 and the first attr $10?). It seemed odd to not be able to show a price in the list view, so i thought this worked better:

My hacked code
Starts at $10.00

Unframed 8x10 Photo ($10.00)
Framed Photo 8x10 ($15.00)
Framed Photo 12x18 ($30.00)

Out of Box
Starts at $10.00

Unframed 8x10 Photo
Framed Photo 8x10 (+$5.00)
Framed Photo 12x18 (+$20.00)

It was easier to not make the customer do the math (and wonder what's going on in the cart if they didn't see the Starting at $10.00

9 Nov 2006, 3:24 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #4 by ajeh

Product Price 0
Priced by Attribute YES

Now just enter the price without prefix and the display value will calculate from the combination of the lowest prices of the Attribute Option Name groups to make the price ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Nov 2006, 3:05 AM
#5
kkentert avatar

kkentert

New Zenner

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

Post #5 by kkentert

Buit if you set the price as 0 and price by attributes, you can't put the product on sale. When you do, things get Oh so crazy...

28 Nov 2006, 3:21 AM
#6
kkentert avatar

kkentert

New Zenner

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

Post #6 by kkentert

OK-here's why that won't work for me- Any ideas anyone?

If you list the product as $0
Attribute 1 $499
Attribute 2 $599
Attribute 3 $699

Now, the product is in a top level category so Crystal vases>10" Crystal Vase

This means that in your SaleMaker, you can not apply a sale to JUST the 10" crystal vase.

In the SPEACIALS, you can't make it work either. I though I could trick the specials module by puutting -100, but the module though I meant the base price was $100.

Any ideas?

28 Nov 2006, 3:27 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #7 by ajeh

What settings are you using for the Sale in SaleMaker?

Deduction: 10.0000 Percent
Pricerange: $0.00 to $0.00
Specials Condition: Apply SaleDeduction to Specials Price - Otherwise Apply to Price

Are the Products set to use that Category as the master_categories_id

Are the attributes set to use:

Apply Discounts Used
by Product Special/Sale: YES

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Nov 2006, 4:52 AM
#8
kkentert avatar

kkentert

New Zenner

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

Post #8 by kkentert

SALEMAKER can not be used. Sale maker only allows sales to be placed on CATEGORIES. I need to place a sale on a product.

Specials would work, but not with the base price set at $0.

I don't know what you mean by "Are the Products set to use that Category as the master_categories_id"

and Yes, the Apply Discounts Used
by Product Special/Sale: is set to YES

28 Nov 2006, 5:11 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #9 by ajeh

Yes you would need to use a Special if just for one Product and not the Category ...

If you enter the Special as a percentage, it should be able to calculate the discount on a Price by Attribute ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Nov 2006, 5:21 AM
#10
kkentert avatar

kkentert

New Zenner

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

Post #10 by kkentert

A percentage won't work.
Item 1 needs to be $100 off -including all attributes
Item 2 needs to be $150 off all attributes, etc.
asnd the attributes are not set by percentage.