![]() |
custom template- moving price info to top
I have been trying to move all the pricing/quantity info from the default product template to sit above the actual detailed information beside the thumbnail.
Has anyone done this that they would care to share their code setup for a product template? The table layout is absolutely scarey- what a change going backwards from tableless design into this . . . a challenge. Is it easier to set up the table structure first, then drop the appropriate info in? Mostly concerned about affecting some of the programming elements and breaking smarty tags since I am not a programmer and so the syntax is not familiar. OK FIGURED IT OUT! just needed fresh eyes, (more coffee) and using Jon's mod is just the ticket to manage these. Connie |
Re: custom template- moving price info to top
I am trying to figure out how to do the same thing. CAn you share some info on how to accomplish this? Thanks.
Angie v. 4.1.1 |
Re: custom template- moving price info to top
I am using a different cart version for this than you but it may not make any difference.
First, I got Jon's mod for custom templates to manage the new ones I wanted to make. Next, duplicated product.tpl and called it a new name (product_snacks.tpl) for example. That way I can still use the default template for other items. I moved the part of the code referencing the description from the location at the top beside the thumbnail, (yours may be different and this also includes the glossary module) but find the $product.fulldescr ne part: {if $product.fulldescr ne ""} {include file="customer/fts_glossary.tpl" text=$product.fulldescr} {else} {include file="customer/fts_glossary.tpl" text=$product.descr} {/if} and moved it down to the bottom before this part below, and put it into a block element (div or table) {/capture} {include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"} {/if} {if $active_modules.Product_Options ne '' && $product_options ne ''} <SCRIPT type="text/javascript" language="JavaScript 1.2"> check_options(); </SCRIPT> {/if} The custom template mod enables me to switch easily between the different templates, depending on how I want a particular product's information to be set up. Does that help? Connie |
Re: custom template- moving price info to top
I am sure it will help. Thank you so much.
Angie |
Re: custom template- moving price info to top
I just finished this project. A few companies wanted to charge me $150 to do what took me 15 minutes.
We run X-Cart 4.1 with no mods. BACKUP FIRST and then replace your skin1\customer\main\product.tpl with this one in the downloaded zip. Download product.tpl zip If you try it for other versions, please post what version you're using so others can benefit as well. Hope that helps!! ;) |
Re: custom template- moving price info to top
thankx! really helpful
|
All times are GMT -8. The time now is 01:59 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.