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

Enable "Buy Now" Button in Products List using 2 C

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-23-2006, 12:34 AM
 
Bodger Bodger is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: South Devon. UK
Posts: 65
 

Default Enable "Buy Now" Button in Products List using 2 C

Greetings Folks,

X-Cart gives us the opportunity to display a Buy Now Button in Category/Product List - but only if products are displayed as one column.

Presumably the logic being that the Buy Now protocol would have an negative display-impact in multiple columns.

That said, has anyone managed to display Buy Now button using two columns ? If so, would you please share the method used.

With Thanks,

Mike.
__________________
Web:
X-Cart Gold 4.1.3
Apache 1.3.37 (Unix)
Linux
PHP 4.4.3
MySQL 4.1.19- standard

Home PC Dev:
X-Cart Gold 4.1.3
Uniform Server
PHP 5.1.1
MySQL server 5.0.17
MySQL client 4.1.7
Web Server Apache/2.0.55 (Win32)
Reply With Quote
  #2  
Old 07-23-2006, 03:54 AM
 
balinor balinor is offline
 

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

Default

Just cut and paste the buy now button code from customer/main/products.tpl to customer/main/products_t.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-23-2006, 04:16 AM
 
Bodger Bodger is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: South Devon. UK
Posts: 65
 

Default

Quote:
Originally Posted by balinor
Just cut and paste the buy now button code from customer/main/products.tpl to customer/main/products_t.tpl.

Thanks Padraic,

Would you be kind and indicate EXACTLY which part of the code from products.tpl I should remove, and where exactly should I past it in products_t.tpl.

Sorry to be a pain; but I don't understand Smarty, so will probably mess things unless I have specifics.

Grateful Thanks,

Mike.
__________________
Web:
X-Cart Gold 4.1.3
Apache 1.3.37 (Unix)
Linux
PHP 4.4.3
MySQL 4.1.19- standard

Home PC Dev:
X-Cart Gold 4.1.3
Uniform Server
PHP 5.1.1
MySQL server 5.0.17
MySQL client 4.1.7
Web Server Apache/2.0.55 (Win32)
Reply With Quote
  #4  
Old 07-23-2006, 04:21 AM
 
balinor balinor is offline
 

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

Default

Actually...to make your life even easier...if you haven't altered products_t.tpl, the buy now code is already in there. Just replace this:

Code:
{*** 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 ***}

With this:

Code:
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-23-2006, 04:49 AM
 
Bodger Bodger is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: South Devon. UK
Posts: 65
 

Default

Quote:
Originally Posted by balinor
Actually...to make your life even easier...if you haven't altered products_t.tpl, the buy now code is already in there. Just replace this:

Code:
{*** 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 ***}

With this:

Code:
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if}

Works a treat ! Thank you.
Have lost "details" link though. That is: Previously the word details as a link was beside the product (not sure whether this was besides the photo or not)

Any ideas on that ?

Thank you for your kind assistance.

Mike.
__________________
Web:
X-Cart Gold 4.1.3
Apache 1.3.37 (Unix)
Linux
PHP 4.4.3
MySQL 4.1.19- standard

Home PC Dev:
X-Cart Gold 4.1.3
Uniform Server
PHP 5.1.1
MySQL server 5.0.17
MySQL client 4.1.7
Web Server Apache/2.0.55 (Win32)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:45 PM.

   

 
X-Cart forums © 2001-2020