| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
custom template- moving price info to top | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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
__________________
Versions 4.7.6 multiple mods and customizations |
|||||||||
#2
|
|||||||
|
|||||||
![]() 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
__________________
-- X-Cart 4.1.1 Windows XP Pro |
|||||||
#3
|
|||||||||
|
|||||||||
![]() 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
__________________
Versions 4.7.6 multiple mods and customizations |
|||||||||
#4
|
|||||||
|
|||||||
![]() I am sure it will help. Thank you so much.
Angie
__________________
-- X-Cart 4.1.1 Windows XP Pro |
|||||||
#5
|
|||||||
|
|||||||
![]() 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!! ![]()
__________________
Webmaster Mosaic Networks X-Cart version 4.1.3 PHP 5.2.0 MySQL server 4.1.12 Web server Apache OS Linux |
|||||||
#6
|
|||||||
|
|||||||
![]() thankx! really helpful
|
|||||||
|
|||
X-Cart forums © 2001-2020
|