Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default how to show MODEL in different location

    Hello.

    Im not sure if i am requesting help in right section so here we go

    I will be using the Model to show products part number.. but when i show product detail page, i want the part number to show on top of the page in Larg and Bold fonts.. how can i do that ???

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: how to show MODEL in different location

    If your product is a standard general product, then all the action takes place in the templates/tpl_product_info_display,php file.

    Create an over-ride copy in your templates directory (i.e. templates/YOUR_TEMPLATE_NAME/templates).

    Find the section that starts <!--bof Product details list --> (line 116 in 1.3.5)

    On the next line delete the section marked in red below
    <?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))) ) { ?>
    Move line 119 to the position in the file where you would like the model data to appear (e.g. line 57) and amend it to read
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<h2>' . TEXT_PRODUCT_MODEL . $products_model . '</h2>' : '') . "\n"; ?>
    You may want to tweak the position or the tag used to make it bold. You may even want to add an ID to give you more control over the appearance through CSS, but this gives you the basic idea.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: how to show MODEL in different location

    Thanks..
    Im not good with programming and twiking codes. but i did setup test server just for this reason .. i will post the result when im successfull with this :) ..

    thanks again

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: how to show MODEL in different location

    This is a good one to help you spread your wings a little. The changes are all contained within one file that though long is nicely divided up into understandable and commented blocks.

    Nevertheless, if you run into problems, come back here and I'll be happy to help.

    Bon courage.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Replies: 2
    Last Post: 12 Nov 2010, 11:43 PM
  2. How to change location of side boxes for different pages?
    By lioncity in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 Oct 2009, 03:52 PM
  3. Replies: 1
    Last Post: 20 May 2008, 12:01 PM
  4. Replies: 1
    Last Post: 1 Nov 2007, 01:53 PM
  5. how do i show model # in shopping cart
    By flowerguy in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 18 Nov 2006, 09:24 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