Zen Cart Logo
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 can I move my attribute selections *above* the add-to-cart button?

How can I move my attribute selections *above* the add-to-cart button?

Locked

Started by jannym on 21 Jul 2008, 6:01 AM · Views: 4,232

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
21 Jul 2008, 6:01 AM
#1
jannym avatar

jannym

New Zenner

Join Date:
Jul 2008
Location:
Southern California
Posts:
12
Plugin Contributions:
0

Post #1 by jannym

Is this how Zen Cart does or is there away to get the dropdown menu to at least be either above or to the side to the add to cart button? This is kind of strange to me to have it like that and I've had people comment on it as well because of it being moreless below the add to cart button, you may not even be looking for it, if it's not mentioned. I've looked and looked on here for an answer and not sure if it can be changed or that's the way it is. I have just the regular default template that Zen Cart has "Classic Contemporary Green".

Here is a screen shot of what I am seeing.

Thanks!

Jan

21 Jul 2008, 6:48 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Edit a copy of tpl_product_info_display.php

Most things are in blocks denoted with "bof ???" and "eof" respectively.

You can judiciously re-order these "full" blocks

Zen-Venom Get Bitten

21 Jul 2008, 7:01 AM
#3
jannym avatar

jannym

New Zenner

Join Date:
Jul 2008
Location:
Southern California
Posts:
12
Plugin Contributions:
0

Post #3 by jannym

Oh, well considering I scare myself in thinking of messing with some of the files... I'd need more help precisely ... can you give me any further help? Like which file exactly?

Thank you!

Jan

21 Jul 2008, 7:33 AM
#5
jannym avatar

jannym

New Zenner

Join Date:
Jul 2008
Location:
Southern California
Posts:
12
Plugin Contributions:
0

Post #5 by jannym

Ok, I finally found that file but yikes, it looks pretty involved. I have NO idea on what to edit and I'd be afraid to do it without not know what all to do. :shocking:

I need like "find this and replace with this" sort of thing! I would like the dropdown menu to actually just be right above the add to cart. If my add to cart could be more like towards the center of the page rather than to the right hand side I would like that too. Is that possible to have that happen by editing it? I am one who does not really know much of anything at all when it comes to this sort of thing.

Thanks again!

Jan

21 Jul 2008, 7:47 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

One rearrangement might be:

move this(cut - paste) & add the code in red

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<br class="clearBoth" />
<?php
  }
?>
<!--eof Attributes Module -->

to above where this is

<!--bof Add to Cart Box -->

Zen-Venom Get Bitten

24 Jul 2008, 4:03 AM
#7
girdy74 avatar

girdy74

New Zenner

Join Date:
Jul 2008
Posts:
26
Plugin Contributions:
0

Post #7 by girdy74

KOBRA -
You are a champ!!

THANK GOODNESS FOR THIS FORUM!!!!:clap::clap:

25 Jul 2008, 7:18 PM
#8
jannym avatar

jannym

New Zenner

Join Date:
Jul 2008
Location:
Southern California
Posts:
12
Plugin Contributions:
0

Post #8 by jannym

OH MY GOSH!! YOU are a PRO! YAH!

It worked! I tried it out on my test cart first! It places it above the add to cart button and to the left which is okay enough, it's just that when it's below the "add to cart" button, people seem to not look below that point for options.

Thank you so much!

:clap:

Jan

25 Jul 2008, 7:33 PM
#9
jannym avatar

jannym

New Zenner

Join Date:
Jul 2008
Location:
Southern California
Posts:
12
Plugin Contributions:
0

Post #9 by jannym

Oh yah and here is a screenshot of how it is now placed! Again, Thanks Kobra!

Jan

14 Aug 2008, 8:29 AM
#10
jenn8five avatar

jenn8five

New Zenner

Join Date:
Aug 2008
Posts:
54
Plugin Contributions:
0

Post #10 by jenn8five

exactly what i needed.. thanks!!!!:clap:

6 Nov 2008, 1:10 PM
#11
furuide avatar

furuide

New Zenner

Join Date:
Oct 2008
Posts:
4
Plugin Contributions:
0

Post #11 by furuide

Yay oh Yay! Just what I needed, I knew it would be as simple as rearranging a block of code but sometimes it's a pain in the ######## where to find the right file.

the file is found in..
\includes\templates\template_default\templates\tpl_product_info_display.php

Copy it to your override directory...

\includes\templates\your_template\templates\tpl_product_info_display.php

Then if you mes it up beyond repair you can just delete the override!

Because the site I'm working on has a long list of extras per product I found it useful to move the add to cart button next to the price and also duplicate the code to create another add to cart button at the bottom of the product extra options/attributes.
:P

Webthisway.co.uk | flowersbysuzyliu.co.uk
Give a man a fish and he'll eat for a day. Teach a man to fish and he'll sit in a boat and drink rum all day...