Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

custom template- moving price info to top

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-31-2006, 01:50 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #2  
Old 11-14-2006, 12:02 PM
 
acommorato acommorato is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 40
 

Default 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
__________________
--
X-Cart 4.1.1
Windows XP Pro
Reply With Quote
  #3  
Old 11-14-2006, 02:06 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #4  
Old 11-15-2006, 05:26 AM
 
acommorato acommorato is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 40
 

Default Re: custom template- moving price info to top

I am sure it will help. Thank you so much.
Angie
__________________
--
X-Cart 4.1.1
Windows XP Pro
Reply With Quote
  #5  
Old 06-27-2007, 07:47 AM
 
rmoore rmoore is offline
 

Member
  
Join Date: Jun 2007
Posts: 18
 

Default 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!!
__________________
Webmaster
Mosaic Networks

X-Cart version 4.1.3
PHP 5.2.0
MySQL server 4.1.12
Web server Apache
OS Linux
Reply With Quote
  #6  
Old 07-21-2007, 01:21 AM
 
brianb777 brianb777 is offline
 

Member
  
Join Date: Jul 2007
Posts: 11
 

Default Re: custom template- moving price info to top

thankx! really helpful
__________________
http://mortersupplements.com
Currently running X-Cart Gold 4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:16 PM.

   

 
X-Cart forums © 2001-2020