Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2011
    Posts
    15
    Plugin Contributions
    0

    Default How do I insert a block of text?

    http://makeaspectacle.com/index.php?...roducts_id=180

    I have seen how to get rid of the "Please Choose:" text but in its place I would like to place a block of text explaining a few things. I dont have a clue where to start (i guess I may need to add or edit a layout box?)

    I would also like to move the "Add To Cart" button/box underneath all this but above the "review" and "tell a friend" links.

    Thanks for your help!

    Dan

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: How do I insert a block of text?

    You can change the "Please choose" in the admin console under catalog->attributes controller->option values. Find the option value you wish to change and click edit (or create a new option name.) Then you need to go back to the attribute controller and open the product category and select the product (click the display button.) Scroll down and add the revised (or new) attribute. If you are unfamiliar with setting up attributes read this tutorial from Linda McGrath (Ajeh): https://www.zen-cart.com/tutorials/index.php?article=57

    Keep in mind, a block of text may not be very elegant unless you keep it very short. If you use a pull down menu, the selection box is going to expand to accomodate all of the text and this could alter the position of other elements of the page.

    You can alter the position of the "Add to cart" box in the template file: /includes/templates/[your_custom_template]/tpl_product_info_display.php or if you don't use a custom template (you should), then modify this file: /includes/templates/template_default/templates/tpl_product_info_display.php.

    Quote Originally Posted by dandandanpie View Post
    http://makeaspectacle.com/index.php?...roducts_id=180

    I have seen how to get rid of the "Please Choose:" text but in its place I would like to place a block of text explaining a few things. I dont have a clue where to start (i guess I may need to add or edit a layout box?)

    I would also like to move the "Add To Cart" button/box underneath all this but above the "review" and "tell a friend" links.

    Thanks for your help!

    Dan
    Last edited by ronlee67; 12 Oct 2011 at 07:42 PM. Reason: fix name spelling
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  3. #3
    Join Date
    Oct 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: How do I insert a block of text?

    I'm not entirely clear what you mean here. I have made a couple of attributes on the page there. Is "please choose" tied to one of them? How will I know which option to edit?

    I dont want text inside one of the dropdown boxes. I just want a description where "please choose" is regarding the prescription in the drop down boxes.

    (sorry about me completely misunderstanding if this is the case , i;m very tired!)

  4. #4
    Join Date
    Oct 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: How do I insert a block of text?

    I've attached a picture to demonstrate what I want.

    I still dont understand the first part of your reply. Still stumped as to how I can insert some text into my page.

    The second part regarding the "add to cart" button, I moved the corresponding piece of code in the tpl_product_info_display.php file but it just moved it down and to the right in a weird place that I couldnt move. Is there another file to edit to choose where this can go?
    Attached Images Attached Images  

  5. #5
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: How do I insert a block of text?

    I'm sorry... I didn't notice you provided a link to your page. I had assumed you were talking about something else.

    You should be able to change "Please choose;" to anything you want to say there by editing:
    Code:
    define('TEXT_PRODUCT_OPTIONS', '<strong>Please Choose:</strong>');
    in this file:
    Code:
    [your_custom_admin]/includes/languages/english/product.php
    Note that you can use some html tags to change the text style if you wish.

    Remember, any change you make here will appear on all product pages with product attributes assigned. You will need to use another method if you want different text for different products.

    Ron

    Quote Originally Posted by dandandanpie View Post
    I'm not entirely clear what you mean here. I have made a couple of attributes on the page there. Is "please choose" tied to one of them? How will I know which option to edit?

    I dont want text inside one of the dropdown boxes. I just want a description where "please choose" is regarding the prescription in the drop down boxes.

    (sorry about me completely misunderstanding if this is the case , i;m very tired!)
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  6. #6
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: How do I insert a block of text?

    Quote Originally Posted by dandandanpie View Post
    I've attached a picture to demonstrate what I want.

    I still dont understand the first part of your reply. Still stumped as to how I can insert some text into my page.
    That's my fault. See my last reply.

    The second part regarding the "add to cart" button, I moved the corresponding piece of code in the tpl_product_info_display.php file but it just moved it down and to the right in a weird place that I couldnt move. Is there another file to edit to choose where this can go?
    That's how I moved the "add to cart" box in the past. It can be tricky getting adjacent elements lined up the way you want. One trick I used in the past was to group some of those elements into a table using html <table> <tr><td> tags so they would stay in position.
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  7. #7
    Join Date
    Oct 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: How do I insert a block of text?

    Thats superb thankyou very much Ron! The file product_info.php did it. Slowly getting to where I want to be with this now.

    I could do with sticking all of my prescription details into a table rather than just using CSS but i'll come back here and ask about that another time

    Thanks again matey!

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I insert a block of text?

    If you have a lot of attributes that you want to arrange in a particular way on the page, try Flexible Attributes from Free Addons. It will allow individualized treatment of all of your attributes and their parts.

  9. #9
    Join Date
    Oct 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: How do I insert a block of text?

    Thanks for your reply gjh42! Thats exactly what im using for all my attributes. Working out just great!

 

 

Similar Threads

  1. How do i insert text on a page other than main?
    By len47811 in forum General Questions
    Replies: 1
    Last Post: 13 Jun 2010, 03:25 PM
  2. How to Insert & Wrap Image with Welcome Text?
    By kconklin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Mar 2010, 10:20 PM
  3. How do I insert Text in the Header Between these boxes:
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Mar 2009, 05:47 PM
  4. Move up main block of text
    By enquirer66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Sep 2007, 08:30 AM
  5. manually insert text
    By artifix in forum General Questions
    Replies: 1
    Last Post: 11 Feb 2007, 09:32 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