If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Attributes price to be actual price

Attributes price to be actual price

Locked

Started by mattallam on 20 Mar 2007, 1:09 PM · Views: 8,135

Results 21 to 40 of 43
This thread is locked. New replies are disabled.
9 Apr 2007, 3:16 AM
#21
brisbanetimeout avatar

brisbanetimeout

Zen Follower

Join Date:
Jul 2006
Posts:
108
Plugin Contributions:
0

Attributes price to be actual price

gjh42:

From the looks of it, you have just set up the attributes incorrectly for your purpose.
#1- You have a radiobutton for the optional mouse, selected by default. This can never be deselected. A checkbox with attribute price of $5, prefix +, would allow you to buy the computer with or without mouse, for $1005/$1000.

#2- Again you have radiobuttons, with nothing as default. Try two different option names, one with a radiobutton for the computer, default, priced at $1000 with no prefix; and one with a checkbox for the mouse, priced at $5 with prefix +.

I like your option... now I am trying to get my head around your #1 option... so I need to make it a checkbox instead of a radiobutton...??.. Is this correct..?? So... I make the price for the computer $1000 and have the mouse and other extras below with no + or - showing and it should add the purchases up...? yeah ???
Also you mentioned you can set that up at Admin>Products>Products Types> Products Attributes... or somewhere... can you confirm that as I did not have that selection in my admin... (1.3.0.7)
Ta
Dave

Ajeh... thanks for your option but this was a test and the extras I have on some items are 6 items long so listing each one with the computer (example) would be very long winded....

9 Apr 2007, 3:25 AM
#22
brisbanetimeout avatar

brisbanetimeout

Zen Follower

Join Date:
Jul 2006
Posts:
108
Plugin Contributions:
0

Re: Attributes price to be actual price

:laugh:
:clap:
:smartalec:
I did it !!!!!!!!!!! ...

I listed it as computer for $1000 and put two extra items in attributes and then just left out the + or - in the price field..that way when it was displayed it just showed the price for the mouse and IF you did not click on any extra items it just charged you for the computer of $1000 BUT if you clicked ont he mouse for $5 and then clicked add to cart it would charge you for the computer $1000 + mouse for $5.

Oh hell now I can sleep....
:clap:

9 Apr 2007, 3:37 AM
#23
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Attributes price to be actual price

Checkbox, yes. Give the mouse a price of $5 with prefix +, since it is an addition to the base price. Whether it says + or blank, it will add the options to the base price. If you use a - prefix, it will be subtracted from the base price.

For the default setting, I recall now that the ability was added last year and your version might not be new enough to have it.

9 Apr 2007, 3:49 AM
#24
brisbanetimeout avatar

brisbanetimeout

Zen Follower

Join Date:
Jul 2006
Posts:
108
Plugin Contributions:
0

Re: Attributes price to be actual price

Ah.. sorry I have the lastest version 1.3.7 ... slip of the finger.... cannot find it in there...

Thanks...
Dave

9 Apr 2007, 6:11 AM
#26
brisbanetimeout avatar

brisbanetimeout

Zen Follower

Join Date:
Jul 2006
Posts:
108
Plugin Contributions:
0

Re: Attributes price to be actual price

Yeah... I found it..
Its in Catalog>Product Types> Products General and then its down the bottom...

Ta
Dave

11 Apr 2007, 9:41 PM
#27
shards avatar

shards

New Zenner

Join Date:
Mar 2007
Posts:
15
Plugin Contributions:
0

Re: Attributes price to be actual price

So the essence of this topic boiled down to using check boxes instead of radio buttons. :smile:

Now, can anyone tell me how to get rid of the brackets around the prices displayed? I've searched the code for hours using the developer's tool kit to try and track them down, but I can't find where they are generated. :frusty:

Steve

11 Apr 2007, 9:51 PM
#28
ajeh avatar

ajeh

Oba-san

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

Re: Attributes price to be actual price

Checkboxes work the same way as radio buttons on calculations ...

The parens are in the attributes.php module ...

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!

11 Apr 2007, 10:43 PM
#29
shards avatar

shards

New Zenner

Join Date:
Mar 2007
Posts:
15
Plugin Contributions:
0

Re: Attributes price to be actual price

Thanks. I see you wrote it! There's a lot of code in there... could you give me a clue as to what I'm looking for? Please.

Steve

12 Apr 2007, 3:19 AM
#30
ajeh avatar

ajeh

Oba-san

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

Re: Attributes price to be actual price

Peek in the file I said to look in earlier:
/includes/modules/attributes.php

Copy to your templates and overrides directory:
/includes/modules/your_templates_dir/attributes.php

You want to get rid of the parens around the price ...

You can try to search for either:
(
-- or --
)

Hint: since there is a space before that left paren and after that right paren you might try a search for:
' (
-- or --
) '

Bet that you will probably find a least 3 of each ... :cool:

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!

12 Apr 2007, 8:33 AM
#31
shards avatar

shards

New Zenner

Join Date:
Mar 2007
Posts:
15
Plugin Contributions:
0

Re: Attributes price to be actual price

Ajeh:

Hint: since there is a space before that left paren and after that right paren you might try a search for:
' (
-- or --
) '

Bet that you will probably find a least 3 of each ... :cool:

Thank you! Thank you! You have saved my sanity and the site looks a lot less cluttered now!

I'm almost there with my site customization. The only info I'm missing now is how to put the Add to Cart button somewhere into the left column. I posted the question a few days ago at 'Put Add to Cart Button in left column?', but have had no responses. If you have any hints for that, I'll be your friend for life ... well, make a further donation at least!

Steve

12 Apr 2007, 3:03 PM
#32
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Attributes price to be actual price

I don't think it's possible (at least not without highly advanced coding) to put the Add to Cart in the left column directly. It is part of the form that is displayed in the center column and has to be connected to it.

I think you could relocate it using absolute positioning in your stylesheet. Recode (possibly) column_left.php to leave a space near the top of the left column on product info pages, above any dynamic elements so that the space will always stay put, and give the add to cart div
position: absolute;
top: yyypx;
left:xxpx;

Then you need to give #mainWrapper
position: relative;

so the absolute has a container to reference.

This will happily drop the add to cart on top of something else if you get the positioning wrong. Tweak until it works.

Of course the bigger question is, is it going to work well having the add button visually separated from the product like that...

12 Apr 2007, 7:37 PM
#33
shards avatar

shards

New Zenner

Join Date:
Mar 2007
Posts:
15
Plugin Contributions:
0

Re: Attributes price to be actual price

Hi Glenn, it's another sanity-saver to know it 'can't be done', and thanks for the workaround idea, but I probably won't try it. :smile:

To answer your question, I wanted to move the button because it's on a product page that has a long list of attributes. The most popular ones are at the top, but the list pushes the Add to Cart button down out of view. I've put some text like 'Make your selection then scroll down and click the 'Add to Cart' button', but it isn't very elegant.

The center column is using the Tabbed Lite addition, and I think it should be possible to rearrange the code so that the button appears at the top of the center column so that it is in view at the beginning, but when I tried copying and pasting the code up there I must have got something wrong and it threw up an error.

Cheers, Steve

25 Apr 2007, 10:20 AM
#34
eliseintaipei avatar

eliseintaipei

New Zenner

Join Date:
Apr 2007
Location:
in Taipei, of course
Posts:
29
Plugin Contributions:
0

Re: Attributes price to be actual price

Yet another attribute question.

OK, got the attributes to show like I wanted and all (thanks to this forum)!

Except one thing: I can't figure out how to make the
"Starting at: 1$" price thing (the price of a sample, so always cheap) on the product page to show the
default attribute price (the price for 75g, somewhere between 6-15$, tea if you are wondering).
I don't want to have a website where all the product prices are 1$, 2$ or 3$ because it looks cheap and the dear customer will feel cheated when he finds out it's the price for a sample.
Help!!!

26 Apr 2007, 1:38 AM
#35
ajeh avatar

ajeh

Oba-san

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

Re: Attributes price to be actual price

The Starting at Price was designed to let the customer know that the "lowest" price that you can get a product is ...

You could customize the Product display price to either just on the product _info or all throughout the site by altering the display price function and change how it builds the price that is shown everywhere ...

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!

26 Apr 2007, 6:03 AM
#36
eliseintaipei avatar

eliseintaipei

New Zenner

Join Date:
Apr 2007
Location:
in Taipei, of course
Posts:
29
Plugin Contributions:
0

Re: Attributes price to be actual price

Thanks Ajeh.
If I were to change the code by myself, what should it look like???
Is it the 'ATTRIBUTES_QTY_PRICE_SYMBOL' that would have to be tweaked into something like 'ATTRIBUTES_QTY_PRICE_DEFAULT' ?
:huh:
I already spent loads of time customizing my shop, so one more day is not an issue at this point (no mental sanity left either!)

THanks a lot. I'm impressed by the community support.

27 Apr 2007, 5:59 AM
#37
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Attributes price to be actual price

ATTRIBUTES_QTY_PRICE_SYMBOL is just a constant that accompanies a price display, not a variable that has anything to do with the price itself. Without looking at that part of the code, I can say that it is probably complex enough that you shouldn't mess with it unless you already know something about PHP.

I have at times wished for a display of the default option rather than an uncommon cheaper option... I just went with not displaying the price in that spot and letting the attribute prices be the price display.

7 May 2007, 3:49 PM
#38
cigarp avatar

cigarp

New Zenner

Join Date:
May 2007
Posts:
13
Plugin Contributions:
0

Re: Attributes price to be actual price

Hello All
This is my first post here in the forum and I would like to say that I'm sorry for my very poor english, I'm Portuguese but i'll try to do my best. ;)

I read this thread to find a solution for the same problem that the OP have.
I want to sell a product that comes in boxes of diferent quantities. The unit price is the same eg. box with 5 units costs 50, box with 25 units costs 250. I dont like the aproach of having the 25 box with (+200)

The solution of having the price of the product set to 0 works almost fine, but in my case the problem is that the client can had the product with 0 price to the cart if he doesn't chose none of the attributes that I create.

Thanks in advance for the help that you can give

Guilherme

7 May 2007, 5:12 PM
#39
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Attributes price to be actual price

You need to make an option value called "Select" or something like that, add it to your product in Attributes Controller, and in the big colorful boxes make it "Default" and "Display Only". This will force the customer to make a real choice.

7 May 2007, 5:34 PM
#40
cigarp avatar

cigarp

New Zenner

Join Date:
May 2007
Posts:
13
Plugin Contributions:
0

Re: Attributes price to be actual price

Hello Glenn

Thank you for your help. That's it, problem solved! :clap:

The trick is that in this case we have to use the dropdown option, not the radio or checkbox:blush:

G