Forums / Basic Configuration / how to show MODEL in different location

how to show MODEL in different location

Locked

Started by tony_sar on 20 Oct 2006, 12:52 AM · Views: 1,286

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Oct 2006, 12:52 AM
#1
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

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:cry:

20 Oct 2006, 1:11 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

20 Oct 2006, 1:32 AM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

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 :blush:

20 Oct 2006, 1:41 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)