Page 1 of 6 123 ... LastLast
Results 1 to 10 of 55
  1. #1
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    putting attributes in the add to cart box on product info page

    hello!
    I was wondering if anyone knew how i can make my attribute radio options be displayed in the same box as the add to cart button on the product info page. see the attachment to for a picture of this to see what im talking about.
    thanks
    Attached Images Attached Images  

  2. #2
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: putting attributes in the add to cart box on product info page

    anyone have any clue?????????

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: putting attributes in the add to cart box on product info page

    Good News, Yes it can be done.

    You'll need to move things around in the tpl_info_display.php and add/change some new IDs in the stylesheet.

  4. #4
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: putting attributes in the add to cart box on product info page

    hi thanks for replying. Do you have any idea what code i need to add to the css ( i have no clue)?
    and for the template info display would i just move the attributes section into the same section as the add to cart???

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: putting attributes in the add to cart box on product info page

    Let me play around with a couple of ideas (may take a day or two) and see what I can come up with.

    When I have something I'll post it for you.

  6. #6
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: putting attributes in the add to cart box on product info page

    ok your awesome because i don't know what to do and i would love to have my attributes and add to cart look like that :)

  7. #7
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: putting attributes in the add to cart box on product info page

    hey thought you might want to see this in order to figure out what they did because they have there attributes in the add to cart box.
    look here:
    [url]http://www.soapcafe.com/index.php?main_page=product_info&cPath=2&products_id=1

  8. #8
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: putting attributes in the add to cart box on product info page

    Angela,

    OK, here's what I came up with.

    CSS (make sure these IDs are unique and not duplicated anywhere in your stylesheet) You can change colors as needed.
    Code:
    #buybox {margin: 0; padding: 3px; width: 281px; text-align: center; background: #fdeaec; border: 1px solid #b08694;}
    #productAttributes {background-color: #fdeaec;}
    .wrapperAttribsOptions {margin: 0.3em 0em;	text-align: left; background-color: #fdeaec;}
    #attribsOptionsText {margin: 0; padding: 0.5em 5px; border: 1px solid #b08694; background-color: #d6477d;	color: #FFF; text-align: center; }
    .optionName {color: #580c84; margin: 0; font-weight: bold; padding-left: 3px; text-align: left; background: #fdeaec; width: 8em;}
    #cartAdd {margin: 1em; padding: 3px; font-size: 1em; /*width: 100px; height: 75px;*/ text-align: center;	/*border: 2px dotted blue;	background-color:  #fdeaec;*/}
    #cartImage {margin: 0.5em 1em;}
    Have you made any changes to your tpl_product_info_display.php? If you have, can you attach it here so I can take a look where You'll need to make the additional changes.

  9. #9
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: putting attributes in the add to cart box on product info page

    hi! thanks for that! i will give it a try momentarily.
    i have not really made too many changes to template_info_display. i tried to attatch it in a word doc. but it wont let me because the file is too big. so should i email it to you or what do you think i should do?

  10. #10
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: putting attributes in the add to cart box on product info page

    Not a problem. Here are the changes you'll need.

    Code:
    <br class="clearboth" />
    <div id="buybox" class="forward">
    <!--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
      }
    ?>
    <br class="clearboth" />
    <!--eof Attributes Module -->
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      // do nothing
    } else {
    ?>
                <?php
        $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
                if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
                  // hide the quantity box and default to 1
                  $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
                } else {
                  // show the quantity box
        $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);
                }
        $display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
      ?>
      <?php if ($display_qty != '' or $display_button != '') { ?>
        <div id="cartAdd">
        <?php
          echo $display_qty;
          echo $display_button;
                ?>
              </div>
      <?php } // display qty and button ?>
    <?php } // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->
    </div>
    
    <!--bof Product details list  -->
    <?php if ( (($flag_show_product_info_model == 1 and $products_model !=”) or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
    <ul id="productDetailsList" class="floatingBox back">
      <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
    </ul>
    <br class="clearBoth" />
    <?php
      }
    ?>
    <!--eof Product details list -->
    Try it and let me know if it works.

 

 
Page 1 of 6 123 ... LastLast

Similar Threads

  1. Missing quantity box in product info page when I add attributes
    By ronswayoflife in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 May 2013, 04:03 PM
  2. Add to Cart-button outside the product info-page?
    By kazie in forum General Questions
    Replies: 1
    Last Post: 23 Mar 2010, 10:20 AM
  3. Add to Cart button not showing on product info page with attributes
    By Harvard in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Nov 2009, 10:04 PM
  4. Add Atributes Inside The Add To Cart Box on The Product Info Page
    By CoolCarPartsOnline in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jul 2008, 09:29 AM
  5. Add to cart in the product list takes me to the product info page
    By misspot in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 May 2007, 12:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR