Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Changing the price which shows up on attributes.

Changing the price which shows up on attributes.

Locked

Views: 3,109

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
19 Jun 2008, 8:42 PM
#1
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Changing the price which shows up on attributes.

Hello,

right now when an attribute has a price, it shows the amount like this (9.99) on the right hand side of the attribute and when you have a quantity discount set for the attribute it shows the highest price. Is it possible to show the lowest price?

for example (as low as .99) or something along these lines?

Or even if i could just put something static there

Thanks to anyone who can atleast lead me in the right direction, if i just can get the file where i could change this i would be gratful

Thanks

20 Jun 2008, 6:13 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

Currently, the discount gets the quantity 1 price, you can alter the function to use quantity 1000 or whatever, by default, to achieve a display of the lower price ...

24 Jun 2008, 4:03 PM
#3
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

Currently, the discount gets the quantity 1 price, you can alter the function to use quantity 1000 or whatever, by default, to achieve a display of the lower price ...

thanks for your response, would this be done within the admin or with in the code? if so where would it be done?

thanks again

26 Jun 2008, 3:35 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

You would need to alter the code to use the 10000 vs 1 on the qty to show the lowest price rather than the highest price ...

26 Jun 2008, 3:39 PM
#5
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

You would need to alter the code to use the 10000 vs 1 on the qty to show the lowest price rather than the highest price ...

Do you know what file would need to be edited? I am going to look, but if you know off hand it would be great.

Thanks

26 Jun 2008, 3:43 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

Not off the top of my head ... I have to look for the builder of the discount table ... might be a few, so if you find it first, do post your solution ... :smile:

26 Jun 2008, 4:05 PM
#7
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

Not off the top of my head ... I have to look for the builder of the discount table ... might be a few, so if you find it first, do post your solution ... :smile:

so it is in the database or the actual php files?

26 Jun 2008, 4:41 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

The code to produce the discount prices is in the php files and pulls the data for them from the database ...

26 Jun 2008, 4:46 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

If I am using the Attribute Discounts and the table produced is:

Color Red
QTY 1 2-3 4-6 7-9 10-12 13+
PRICE $11.00 $10.00 $9.00 $8.00 $7.00 $6.00

Why would I want to see the $6.00 vs the $11.00 on the Attribute for Color Red? Shouldn't I know the high price first and click the link to see the table of discounts on the quantities?

If I see $6.00 and only order 1, then I am going to be ticked that the charge is $11.00 ...

26 Jun 2008, 5:14 PM
#10
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

If I am using the Attribute Discounts and the table produced is:

Why would I want to see the $6.00 vs the $11.00 on the Attribute for Color Red? Shouldn't I know the high price first and click the link to see the table of discounts on the quantities?

If I see $6.00 and only order 1, then I am going to be ticked that the charge is $11.00 ...

Well i want to add something along the lines of (as low as $.99)

when the table looks like this

1 2 3 4 5 6 7 9+
$9 8 7 6 5 4 3 2 .99

or even if i could juts have something by the attribute saying there is an extra charge i would be happy..

thats for your time.

26 Jun 2008, 5:30 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

Currently, there is a green dot with the text link to the discount table that reads:
Quantity Discounts Available

Under the Attributes when there are quantity discounts added to the attributes ...

Have you thought about maybe making that text really jump out so people are more encouraged to look at it?

Do you have a Product using the attribute quantity discounts that we could perhaps peek at to get a better idea of what it looks like now vs what it could look like with a tweak here and there? :smile:

26 Jun 2008, 7:30 PM
#12
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

Currently, there is a green dot with the text link to the discount table that reads:
Quantity Discounts Available

Under the Attributes when there are quantity discounts added to the attributes ...

Have you thought about maybe making that text really jump out so people are more encouraged to look at it?

Do you have a Product using the attribute quantity discounts that we could perhaps peek at to get a better idea of what it looks like now vs what it could look like with a tweak here and there? :smile:

take a look at regalogratis.net most of the items have attributes.

26 Jun 2008, 7:55 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

I'd buy a lot more if I could easily skip from one product to the next on your site ... you might consider turning on your Previous Next on the product _info page ...

As your full discount table is already showing, where do you want to see the cheapest price? On the Prdouct Info or on the Listings? :unsure:

26 Jun 2008, 8:04 PM
#14
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

I'd buy a lot more if I could easily skip from one product to the next on your site ... you might consider turning on your Previous Next on the product _info page ...

As your full discount table is already showing, where do you want to see the cheapest price? On the Prdouct Info or on the Listings? :unsure:

for example:

on this item http://regalogratis.net/index.php?main_page=product_info&cPath=4&products_id=11

under the product options:

Magnetic ( +$1.10 )

I would like it to be something like this:

Magnetic ( as low as $.40 ea. ) or Magnetic (Extra charges apply)

27 Jun 2008, 7:56 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

You could use this function zen_get_products_discount_price_qty($product_id, $check_qty, $check_amount=0) to get the lowest rate with something like:

echo 'My Low Price ' . zen_get_products_discount_price_qty($products_id_current, 10000);

5 Jul 2008, 7:25 PM
#16
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

You could use this function zen_get_products_discount_price_qty($product_id, $check_qty, $check_amount=0) to get the lowest rate with something like:

echo 'My Low Price ' . zen_get_products_discount_price_qty($products_id_current, 10000);

So are these the actual functions that i would change? If they are i could search my files for this one.

7 Jul 2008, 3:39 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

You are not "changing" a function ... you are "using" a function ...

The syntax is:
echo 'My Low Price ' . zen_get_products_discount_price_qty($products_id_current, 10000);

Where ever you want to see that you need to identify what is the real variable for the products_id ...

7 Jul 2008, 4:22 AM
#18
mrcoolboy15 avatar

mrcoolboy15

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Re: Changing the price which shows up on attributes.

Ajeh:

You are not "changing" a function ... you are "using" a function ...

The syntax is:
echo 'My Low Price ' . zen_get_products_discount_price_qty($products_id_current, 10000);

Where ever you want to see that you need to identify what is the real variable for the products_id ...

sorry i am not the best with coding, and don't under stand exactly how zen cart interacts with the other files... which file would i have to add this too? i am trying to understand this..

thanks for taking your time. http://www.zen-cart.com/forum/images/smilies/clap.gif

were one step closer

7 Jul 2008, 4:34 AM
#19
ajeh avatar

ajeh

Oba-san

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

Re: Changing the price which shows up on attributes.

I see ... you are using the Attribute Qty Discounts and the link to pop up the table is not good enough, eh?

You can change the text on that to encourage people to click the link to view those charges ... as pulling the charges out separately could be quite a bit of coding to list them out under each attribute ...