16 replies [Last post]
Manne's picture
Offline
Joined: 10/21/2008
Juice: 37
Was this information Helpful?

My add to cart button is on the bottom of the product page, under alot of product information, so it can be hard to find. I would like to move the product information to the bottom. Is this possible?

Right now it looks like this:
1. Product information
2. Price
3. Quantity field
4. Add to cart button

Can it be changed to this?:
1. Price
2. Quantity field
3. Add to cart button
4. Product information

Thanks in advance
/Manne

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15450
Re: Change position of the add to cart button

Check out the product field settings at /admin/store/settings/products/edit/fields.

tekad's picture
Offline
Joined: 10/21/2008
Juice: 160
Re: Re: Change position of the add to cart button

Why isn't the quantity field listed there too?

It's strange how there is one place to order any additional CCK fields on the product edit & display pages, there is another place to order additional attributes for each class & product, then there is a third settings page that controls where/what default product fields display. Yet no place to arrange the quantity field, description...

I want the quantity field to show up right after price. This is before all the attributes are listed. I'm assuming my only option is to write code to do this.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Re: Change position of the add to cart button

Quantity field is part of the add to cart form, I believe, and the description is part of the $node object. Any modification of the actual $node you should do through a template file. If you don't know how to theme nodes, then you should read up on that first.

--
Help directly fund development: Donate via PayPal!

tekad's picture
Offline
Joined: 10/21/2008
Juice: 160
Re: Re: Re: Re: Change position of the add to cart button

I do realize that the description & CCK fields are part of the product $node. I guess what I was trying to point out is that where Ryan pointed OP to does not have all the options needed to reorder display on the node the way OP wanted.

That settings pages is quite obviously missing the ability to weight the product description (seemingly randomly outputted in a paragraph) and CCK fields (all of which are wrapped in div id="field-items.")

And since OP wanted to move the qty text input too, no one mentioned that this qty input is part of the add_to_cart form and not positionable by itself. The whole add to cart form is weighted together. So, if you have any attributes, these will always be listed first in the form, then qty input, and finally add to cart button.

How does one move the qty field above all the attributes in the form? I don't think that's a custom $node theme, but a hook_form_alter. I'm still investigating this.

Half my products have a quantity attribute which comes first in the form, directly following the last product field Sell Price and before all other attributes. This worked great till I entered the other half of my products which don't have a quantity attribute but have the quantity field.

Edit: I just now saw that Ryan's suggestion will most likely work for OP cuz they just want the add to cart form to be moved up above the description, but it's not perfect as you still have to guess, trial & error, at what weight the description is outputted.

tekad's picture
Offline
Joined: 10/21/2008
Juice: 160
Re: Re: Re: Re: Re: Change position of the add to cart button

Also have noticed that the CCK fields on the product node are not wrapped together in div class="field-items," but they are actually wrapped individually one div higher and are organized on the node by the weights assigned to under manage fields for that content type. So there are two settings areas to change the display of content of the node.

As far as I can tell though, the quantity and add button on the form will alway follow all other attributes in the form and you still have to guess around the description field of the node.

EDIT: changed "product class" to "content type"

web_designer's picture
Offline
Joined: 04/06/2011
Juice: 12
shopping cart

Hi everyone,

Just this message to ask for help from you.
Indeed, I configured Ubercart without major problems but
one problem arises, I can not change "Shopping cart".
I want to change the title.
I did a "print screen" of the problem.
Here's the link: http://www.cijoint.fr/cj201104/cijAq9wVhE.png.

Thank you in advance.

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 299
Re: Change position of the add to cart button

I just found this thread. It is what I needed (the settings page) but my thoughts are:

It would be nice to have a link to that page from the content type page for re-ordering the fields. Is there a hook or something that can add some info to that content type cck field re-ordering page? (I dont even know if hook is the right word!)

And, it seems the weights are -10 to 10, and now with the drag and drop stuff for re-ordering fields, the numbers can be quite strange and large liek 400 - -5, so I wonder if some people might run into problems because of that.

I also thought it was odd that the "description" (body?) was not listed.

I wanted to move the add to cart above the body, but without body listed in the product settings I didnt know what to set for what weight.

Thanks.

ktf
ktf's picture
Offline
Joined: 06/22/2009
Juice: 83
Re: Re: Change position of the add to cart button

I'm having a related issue, posted about it here:

http://www.ubercart.org/forum/support/11875/add_cart_button_randomly_mov...

Basically, the weights seem to be competing with each other, and "Add to Cart" is displaying randomly in the product page. As of now, it's somewhere in the middle of the fields, depending on how I order them in "Manage fields".

jahmika's picture
Offline
Joined: 01/20/2009
Juice: 20
Acquila Prosper

Having a similar issue (attributes being on top of add to cart button), as I'm not yet tied to a custom template, I resolved the issue using Acquila Prosper theme.
Default settings sets a nice product info block on top of everything.
Was planning to use Prosper as a base theme for my shop, so it's all good.

mika

web_designer's picture
Offline
Joined: 04/06/2011
Juice: 12
shopping cart

Hi everyone,

Just this message to ask for help from you.
Indeed, I configured Ubercart without major problems but
one problem arises, I can not change "Shopping cart".
I want to change the title.
I did a "print screen" of the problem.
Here's the link: http://www.cijoint.fr/cj201104/cijAq9wVhE.png.

Thank you in advance.

devdoneright's picture
Offline
Joined: 06/30/2010
Juice: 10
Random question...

Bit of a random one...

First of all, I need to say I really like Ubercart and Drupal as a whole. Keep it up guys.

Second - I've got a client who (sods law) wants the price/add-to-cart form both at the top and bottom of the product page. Help!

James

Summit_drupal's picture
Offline
Joined: 12/11/2010
Juice: 137
Re: Random question...

Hi, I can put the "add to cart" more above, but then my node - description comes somehow on the bottom? I didn;t alter anything else then the order in: /admin/store/settings/products/edit/fields
Any easy way to theme the page?
And how can I alter that the atytributes are under the art to cart button instead of above?

greetings, Martijn

akolahi's picture
Offline
Joined: 02/28/2008
Juice: 68
"Add to cart" on both top and bottom of products

You can easily do this with views. Create a view such that the argument is the node ID from the URL. You only need one field: "add to cart form". Now you have a block with an "add to cart" button. You can place this block anywhere you want using the block admin page or using panels.

make-online-shop's picture
Offline
Joined: 01/01/2011
Juice: 356
How to make a BUY IT NOW view

Hello,

I failed to create this view, can you help me more ?

I would like ot have a ADD TO CART button on top of each product also.

Thanks.

web_designer's picture
Offline
Joined: 04/06/2011
Juice: 12
delete shopping cart

Hi devdoneright

Just this message to ask for help from you.
Indeed, I configured Ubercart without major problems but
one problem arises, I can not change "Shopping cart".
I want to change the title.
I did a "print screen" of the problem.
Here's the link: http://www.cijoint.fr/cj201104/cijAq9wVhE.png.

Thank you in advance.

akolahi's picture
Offline
Joined: 02/28/2008
Juice: 68
String Overrides

Try Drupal String Overrides. It lets you change most text and 'translate' that text to whatever you want.

http://drupal.org/project/stringoverrides