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

Product Details Custom Text Area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-11-2013, 07:10 PM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Exclamation Product Details Custom Text Area

Hello, how do I create a custom text area for products like "Detailed description"?
__________________
X-Cart version 4.5.5
Reply With Quote
  #2  
Old 11-11-2013, 07:35 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Product Details Custom Text Area

Products already have short and long description fields. Long description shows on product details pages while short shows on products list pages
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 11-12-2013, 10:56 AM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Default Re: Product Details Custom Text Area

Quote:
Originally Posted by cflsystems
Products already have short and long description fields. Long description shows on product details pages while short shows on products list pages

Right, but how do I create another custom one just like short and detailed fields? My main concern is how to create the database tables for it to make it work.
__________________
X-Cart version 4.5.5
Reply With Quote
  #4  
Old 11-12-2013, 11:13 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Product Details Custom Text Area

This will require database, php scripts and template files changes, its not just simple do this do that
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-12-2013, 11:20 AM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Default Re: Product Details Custom Text Area

Quote:
Originally Posted by cflsystems
This will require database, php scripts and template files changes, its not just simple do this do that

Right, I think I can figure out the scripts but what do I do with the database?
__________________
X-Cart version 4.5.5
Reply With Quote
  #6  
Old 11-12-2013, 11:53 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Product Details Custom Text Area

You just add another field to the appropriate products table
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 11-12-2013, 12:03 PM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Default Re: Product Details Custom Text Area

Quote:
Originally Posted by cflsystems
You just add another field to the appropriate products table

How? What Table?
__________________
X-Cart version 4.5.5
Reply With Quote
  #8  
Old 11-12-2013, 01:46 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Product Details Custom Text Area

Use phpmyadmin to add another field, the table is probably xcart_products_lng_XX where XX is the language but adding it to one you will probably have to add it to all, this if you need it to show with different languages otherwise you can add it to xcart_products

Judging by the question though you probably want to get a professional to do it for you. Modifying the database without knowing what you are doing can damage it or lose all the info... and it is irreversible
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Wazowski (11-12-2013)
  #9  
Old 11-12-2013, 02:10 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Product Details Custom Text Area

I have a tutorial on this, or at least something very similar. Though as Steve suggests, best done by a pro. Look here http://forum.x-cart.com/showthread.php?t=62810 #6 Adding a custom variable to a product.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Wazowski (11-12-2013)
  #10  
Old 11-12-2013, 05:08 PM
  Wazowski's Avatar 
Wazowski Wazowski is offline
 

Advanced Member
  
Join Date: Jan 2011
Posts: 51
 

Default Re: Product Details Custom Text Area

Thank you Steve and Mike for your hints, I figured it out and surprisingly it works fine!
__________________
X-Cart version 4.5.5
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 09:24 PM.

   

 
X-Cart forums © 2001-2020