Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Remove "optionName" and edit "Add to Cart" frame on product page

Remove "optionName" and edit "Add to Cart" frame on product page

Locked

Started by clever_trevor on 28 Apr 2009, 4:14 PM · Views: 2,602

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Apr 2009, 4:14 PM
#1
clever_trevor avatar

clever_trevor

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Post #1 by clever_trevor

I am having trouble figuring out how to remove the text from the product pages saying "Media Format" (optionName) which appears on the left side of the radio buttons where customers can select file size to download. The text only contributes to squeeze the attributes towards the middle, while I would like them to be aligned left.

I am also having trouble figuring out how to edit the area inside the "add to cart" frame. I would like the button to be on the same line as the "Add to Cart" text, not beneath.

28 Apr 2009, 4:28 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Post #2 by bunyip

Two possible solutions for your options name issue:

  1. add to your styelsheet :
h4.optionName {
display: none;
}
  1. Edit an override copy of includes/templates/template_default/templates/tpl_modules_attributes.php - delete this line:
<h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>

for your add to cart box - you'll need to edit an override copy of includes/template/template_default/templates/tpl_product_info_display.php - specifically this line of code:

    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);

Neville
An assumption is what you arrive at when you get tired of thinking...

28 Apr 2009, 4:39 PM
#3
clever_trevor avatar

clever_trevor

New Zenner

Join Date:
Mar 2009
Posts:
26
Plugin Contributions:
0

Post #3 by clever_trevor

Thanks, I'll have a go at that :smile: