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 do i right align my product attributes & remove "starting at" price text?

how do i right align my product attributes & remove "starting at" price text?

Locked

Started by tarynhipp on 30 Jan 2007, 1:11 PM · Views: 7,527

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
1 Feb 2007, 1:38 PM
#2
tarynhipp avatar

tarynhipp

New Zenner

Join Date:
Jul 2005
Posts:
79
Plugin Contributions:
0

Post #2 by tarynhipp

any help is appreciated.

1 Feb 2007, 2:25 PM
#3
ajeh avatar

ajeh

Oba-san

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

Post #3 by ajeh

The Starting At text before the price is based on Attributes ...

There is a switch for this for each Product Type in the Catalog ... Product Types ...

Select a Product Type and click the EDIT LAYOUT button:

Show Starting At text on Price
Display Starting At text on products with attributes Product Info 0= off 1= on

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 Feb 2007, 6:16 PM
#4
tarynhipp avatar

tarynhipp

New Zenner

Join Date:
Jul 2005
Posts:
79
Plugin Contributions:
0

Post #4 by tarynhipp

thank you!

do you know how to right-align the drop-down menu for attributes so it's above the cart button?

13 Feb 2007, 3:58 AM
#5
ajeh avatar

ajeh

Oba-san

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

Post #5 by ajeh

Haven't a clue ... :eek:

I just write the nifty code so the designers can make everything look good ... never learned how to actually use the stuff it produces for the CSS ... :lamo:

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!

19 Feb 2007, 3:14 AM
#6
tarynhipp avatar

tarynhipp

New Zenner

Join Date:
Jul 2005
Posts:
79
Plugin Contributions:
0

Post #6 by tarynhipp

well thanks anyway... maybe someone else will know?

19 Feb 2007, 5:43 AM
#7
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #7 by jettrue

tarynhipp:

thank you!

do you know how to right-align the drop-down menu for attributes so it's above the cart button?

Hi There,

Unfortunately you can't do this with only css (well you could but it would require some crazy absolute positioning of divs, since the add to cart box is naturally above any product options). But the good news is you can do this in two easy steps. :smartass:

First, open up includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php. Find this section:

  <!--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'); ?>
  <?php
  }
?>
  <!--eof Attributes Module -->

and move it, placing it right before:

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

Then open up your stylesheet and add this:

#productAttributes {float:right}

Then replace the #cartAdd section with this (just adding the clear:both;):

#cartAdd {
	float: right;
	text-align: center;
	margin: 1em;
	border: 0px;
	padding: 1em;
       clear:both;
	}

Cute site, by the way!

2 May 2007, 2:12 PM
#9
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #9 by helpme

jettrue:

Hi There,

Unfortunately you can't do this with only css (well you could but it would require some crazy absolute positioning of divs, since the add to cart box is naturally above any product options). But the good news is you can do this in two easy steps. :smartass:

First, open up includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php. Find this section:

<!--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'); ?> <?php } ?> <!--eof Attributes Module -->
>  
> and move it, placing it right before:
> ```
<!--bof Add to Cart Box -->

Then open up your stylesheet and add this:

#productAttributes {float:right}

>  
> Then replace the #cartAdd section with this (just adding the clear:both;):
>  
> ```
#cartAdd {
    float: right;
    text-align: center;
    margin: 1em;
    border: 0px;
    padding: 1em;
       clear:both;
    }

Cute site, by the way!

I can not find #productattributes what file is this located in? Do I have to create it?
Also, when I moved my attributes up, my product description is now really low and there is a huge gap inbetween the cart and the image. I need more sleep, this is killing me!!
Thanks for your help
https://www.mommyandbabyessentials.com

2 May 2007, 8:27 PM
#10
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Post #10 by helpme

YEAH!!!:clap: :clap: I figured it out!!!

And to all those of you who want to move the add to cart box and attributes on top of each other change the % and it moves!!