Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default How do I add a background image (custom box) for the product attributes section?

    I am using ZenCart 1.3.9h and I want to have a custom box (image) as the background to where the product options are displayed. I would also like the Add To Cart box inside the attributes image box. Any suggestions on how best to implement this?

    Thanks!

    Michelle

  2. #2
    Join Date
    Jun 2010
    Location
    Denmark
    Posts
    62
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by mleahy View Post
    I am using ZenCart 1.3.9h and I want to have a custom box (image) as the background to where the product options are displayed. I would also like the Add To Cart box inside the attributes image box. Any suggestions on how best to implement this?

    Thanks!

    Michelle
    This might hlep with change tha background. in you styleseet.css you find :

    #productAttributes {
    padding: 10px 14px;
    margin: 10px 0;
    border: 1px #f3ecd9 solid;
    background: #fcfcea; (change this to the image you like)
    like this : background-image:url(www.test.com/images/test.jpg)
    }

  3. #3
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by Petlife View Post
    This might hlep with change tha background. in you styleseet.css you find :

    #productAttributes {
    padding: 10px 14px;
    margin: 10px 0;
    border: 1px #f3ecd9 solid;
    background: #fcfcea; (change this to the image you like)
    like this : background-image:url(www.test.com/images/test.jpg)
    }
    Thanks for the quick response. My template, my default template and classic stylesheet.css don't have the productsAttributes definition. Which makes me wonder because it is called in the file tpl_modules_attributes.php in the includes/templates/default_template directory. I'm wondering if that file isn't being used in my version.

    Any thoughts?

  4. #4
    Join Date
    Jun 2010
    Location
    Denmark
    Posts
    62
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    what is the link to a product with attributes on your site. Then i can see a bit more an maybe help a bit more..

  5. #5
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by Petlife View Post
    what is the link to a product with attributes on your site. Then i can see a bit more an maybe help a bit more..

    Here is one:

    http://www.naughticorner.com/StoreNe...roducts_id=115

    Thanks!

    Michelle 8-)

  6. #6
    Join Date
    Jun 2010
    Location
    Denmark
    Posts
    62
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by mleahy View Post
    I it possible that you can attach the styleseet, ??

  7. #7
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by Petlife View Post
    I it possible that you can attach the styleseet, ??
    I think so...

    I had to make it a .doc file because the upload tool here doesn't allow .css file extensions. Hopefully you will be able to open it.
    Attached Files Attached Files

  8. #8
    Join Date
    Jun 2010
    Location
    Denmark
    Posts
    62
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by mleahy View Post
    I think so...

    I had to make it a .doc file because the upload tool here doesn't allow .css file extensions. Hopefully you will be able to open it.
    im not shure but try adding this in the buttom of you stylesheet.

    #productAttributes {
    padding: 10px 14px;
    margin: 10px 0;
    border: 1px #333333 solid;
    background-color:#333333}

    What happens.. it shuld make the background af the attributes gray. does it do that???

    if it do let me know så i can se it.

  9. #9
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by Petlife View Post
    im not shure but try adding this in the buttom of you stylesheet.

    #productAttributes {
    padding: 10px 14px;
    margin: 10px 0;
    border: 1px #333333 solid;
    background-color:#333333}

    What happens.. it shuld make the background af the attributes gray. does it do that???

    if it do let me know så i can se it.
    It didn't have any effect. I think that it is because it productAttributes isn't being used anywhere.

  10. #10
    Join Date
    Nov 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: How do I add a background image (custom box) for the product attributes section?

    Quote Originally Posted by mleahy View Post
    It didn't have any effect. I think that it is because it productAttributes isn't being used anywhere.
    Actually, I take that back, it does seem to be used in the following:


    includes/templates/theme334/templates/tpl_product_info_display.php calls tpl_modules_attributes.php as follows:

    <!--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

    /includes/templates/template_default/tpl_modules_attributes.php uses productAttributes as follow:

    */
    ?>
    <div id="productAttributes">
    <?php if ($zv_display_select_option > 0) { ?>
    <h3 id="attribsOptionsText"><?php echo TEXT_PRODUCT_OPTIONS; ?></h3>
    <?php } // show please select unless all are readonly ?>


    Any idea why it isn't showing the box?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. how to align the product title, price and add to cart box next to the product image?
    By evaky in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Mar 2012, 03:31 AM
  2. How do i add a seperate image/section for size 'measurements' for clothing?
    By tommydamani in forum Setting Up Categories, Products, Attributes
    Replies: 20
    Last Post: 21 Jul 2010, 11:29 PM
  3. Background image in the main page section
    By reneet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Mar 2010, 10:35 PM
  4. how to add free-shipping image for every products for the product list page
    By vanson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Feb 2010, 03:36 PM
  5. How to add a background image to the header?
    By Twaddle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jan 2010, 01:10 PM

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