Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2014
    Posts
    51
    Plugin Contributions
    0

    help question Need to edit the design of a single Product List page....How?

    Hi All

    Our website can be found here http://www.thegreatgiftshop.co.uk/

    Basically I have a product listing which we are using to just take payment (we have an ebay store as well and need a mechanism to take credit card payments for products bought on eBay, we also use it for particular custom items or bulk orders)

    The product listing in question can be found here:-
    http://www.thegreatgiftshop.co.uk/in...roducts_id=798

    I need to edit JUST this product page to do the following:-

    • Get rid of image box
    • Get rid of title 'Make One-Off Payment' title
    • Move the text to the left
    • Get rid of 'Units: 0.01' in the Add to card box
    • Add a £ sign in front of the quntity box.


    We had it set-up as above on our old Website (V3.1.9, think it was a custom template but im not sure, Before my time! and we've now upgraded to 1.5.1). The guy who did it is unavailable and so I got to find out a solution.

    I assume the way forward is to copy and rename the product listing template file (tpl_product_info_display.php), make the customizations and re-link it to the stylesheet.css and language files.

    It is which files to edit and how to link it all up is what im finding confusing.

    Im using the Tb_sempre Template.

    Any help on the matter is most welcome!

    Regards,

    John

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Need to edit the design of a single Product List page....How?

    Quote Originally Posted by Bronco78th View Post
    Hi All

    Our website can be found here http://www.thegreatgiftshop.co.uk/

    Basically I have a product listing which we are using to just take payment (we have an ebay store as well and need a mechanism to take credit card payments for products bought on eBay, we also use it for particular custom items or bulk orders)

    The product listing in question can be found here:-
    http://www.thegreatgiftshop.co.uk/in...roducts_id=798

    I need to edit JUST this product page to do the following:-

    • Get rid of image box
    • Get rid of title 'Make One-Off Payment' title
    • Move the text to the left
    • Get rid of 'Units: 0.01' in the Add to card box
    • Add a £ sign in front of the quntity box.


    We had it set-up as above on our old Website (V3.1.9, think it was a custom template but im not sure, Before my time! and we've now upgraded to 1.5.1). The guy who did it is unavailable and so I got to find out a solution.

    I assume the way forward is to copy and rename the product listing template file (tpl_product_info_display.php), make the customizations and re-link it to the stylesheet.css and language files.

    It is which files to edit and how to link it all up is what im finding confusing.

    Im using the Tb_sempre Template.

    Any help on the matter is most welcome!

    Regards,

    John
    You can remove page elements by adding display:none; to the css. Create a page specific css file for the product p_798.css in your css includes/templates/override/css directory.

    Thanks,

    Anne

  3. #3
    Join Date
    Jan 2014
    Posts
    51
    Plugin Contributions
    0

    Default Re: Need to edit the design of a single Product List page....How?

    Cheers for the Tip Anne,

    I don't have a folder called 'override' in my file structure. Do I need to create it?


    Includes\templates\tb_sempre\override\ *add new .css*

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Need to edit the design of a single Product List page....How?

    Your override folders are named tb_sempre.

  5. #5
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Need to edit the design of a single Product List page....How?

    Quote Originally Posted by stevesh View Post
    Your override folders are named tb_sempre.
    Yes it would be in includes/templates/tb_sempre/css ;)

    Thanks,

    Anne

  6. #6
    Join Date
    Jan 2014
    Posts
    51
    Plugin Contributions
    0

    Default Re: Need to edit the design of a single Product List page....How?

    Hi guys,

    Thanks for the orginal tip, getting quite good at this now but im still having problems:-

    http://www.thegreatgiftshop.co.uk/in...roducts_id=798

    On the above product only I want to chnage -

    'Add to Cart:' to a '£'

    I also want to Hide the 'Units: 0.01'....im thinking since I don't really wnat to chnage the functionality id just like to turn this text White.

    I know for both of these I need to create a unique bit of code as they are hooked up to global changes and need to to split them into a unique change. I just have no idea how to do this.

    Any help would be much appreciated!

    Regards,

    John
    Last edited by Bronco78th; 31 May 2014 at 02:28 PM.

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

    Default Re: Need to edit the design of a single Product List page....How?

    Both of those bits of text are undifferentiated parts of the #cartAdd div, and not subject to individual CSS control. You will need to add some code to tpl_product_info_display.php, but just to wrap a <span class="addText"> </span> and <span class="unitsText"> </span> around the code that generate those elements. Then you can use CSS to alter the output for this particular product, without further PHP complications. Post back when you have these elements wrapped and showing the spans in "view source", and we can advise on the correct styling to use.

  8. #8
    Join Date
    Jan 2014
    Posts
    51
    Plugin Contributions
    0

    Default Re: Need to edit the design of a single Product List page....How?

    Hi gjh42,

    Thanks for the swift reply.

    Unfortunatily by adding the spans its crashing the product pages so im assuming its because im, putting the spans in the wrong place.

    Heres the code without the new spans:-

    Code:
        <!--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-->
    Where exactly do i need to input these new 2 <span> elements?

    Thanks for the help.

    Regards,

    John

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

    Default Re: Need to edit the design of a single Product List page....How?

    It's going to require accumulating the added HTML into the variables before outputting. I can't look at it right now, but will when I get some time. If anyone else can jump in, please do:)

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Need to edit the design of a single Product List page....How?

    I've documented a code fragment that will do what you want in this (http://vinosdefrutastropicales.com/blog/?p=97/) blog entry. Please note that it requires a core-file change.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to edit featured product page 1 colum list display into a grid??
    By elite supplement in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 22 Sep 2012, 11:41 PM
  2. List mutiple products on a single product page
    By hus- in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 May 2011, 04:30 PM
  3. Replies: 1
    Last Post: 15 Feb 2010, 09:02 PM
  4. Single product view page. How to change the layout?
    By alex2310 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 Mar 2007, 04:17 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