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

display images?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 10-20-2005, 09:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Edit customer/main/products_t.tpl. Remove the {*** comments around the buy now button.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #12  
Old 10-20-2005, 10:14 AM
 
embellish1 embellish1 is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default

What do you mean take out the comment out? I tried to take out the {/if}
{*** Uncomment it if you need 'Buy Now' button *** but that didn't work. then I tried to just take out the *** but no luck. This is what I found. please explain further. And thank you for taking your time to explain.



{/if}
{*** Uncomment it if you need 'Buy Now' button ***
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}
*** Uncomment it if you need 'Buy Now' button ***}
__________________
x-cart version 4.0.13
Reply With Quote
  #13  
Old 10-20-2005, 10:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Remove JUST these two lines:

{*** Uncomment it if you need 'Buy Now' button ***

*** Uncomment it if you need 'Buy Now' button ***}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #14  
Old 10-20-2005, 10:55 AM
 
embellish1 embellish1 is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default

For some reason it didn't work. I have tried this 2 times. THis is the error I get
[color=blueFatal error: Smarty error: [in customer/main/buy_now.tpl line 1]: syntax error: unrecognized tag: $Id: buy_now.tpl,v 1.15.2.7 2004/12/01 15:15:49 mclap Exp $ (Smar in /home/embellis/public_html/store/Smarty-2.6.3/Smarty.class.php on line 1082

][/color]
__________________
x-cart version 4.0.13
Reply With Quote
  #15  
Old 10-20-2005, 10:56 AM
 
embellish1 embellish1 is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default

Sorry here is the error I get
Fatal error: Smarty error: [in customer/main/buy_now.tpl line 1]: syntax error: unrecognized tag: $Id: buy_now.tpl,v 1.15.2.7 2004/12/01 15:15:49 mclap Exp $ (Smar in /home/embellis/public_html/store/Smarty-2.6.3/Smarty.class.php on line 1082
__________________
x-cart version 4.0.13
Reply With Quote
  #16  
Old 10-20-2005, 11:01 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You either did something to the buy now template, or you removed more than just those two lines of code from product_t.tpl....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #17  
Old 10-20-2005, 11:08 AM
 
embellish1 embellish1 is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default

I copied an entire section before I started then took those two lines out and checked to make sure I didn't take anything else out or make any other changes. IT still didn't work.
I will eventually figure it out.
Thank you for your time and info.
__________________
x-cart version 4.0.13
Reply With Quote
  #18  
Old 10-20-2005, 11:10 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Did you alter buy_now.tpl?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #19  
Old 10-20-2005, 11:11 AM
 
embellish1 embellish1 is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default

I looked at it but didn't take anything out.
__________________
x-cart version 4.0.13
Reply With Quote
  #20  
Old 10-20-2005, 01:28 PM
 
embellish1 embellish1 is offline
 

Member
  
Join Date: Jul 2005
Posts: 15
 

Default

I just restored my buy_now.tpl then commented out and it works. I must of done something when I opened the buy_now button.
The buy now button appears but it is left justified with lack of a better word. How do I center the buynow button under my product image?
__________________
x-cart version 4.0.13
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 10:44 PM.

   

 
X-Cart forums © 2001-2020