X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Details Custom Text Area (https://forum.x-cart.com/showthread.php?t=68135)

Wazowski 11-11-2013 07:10 PM

Product Details Custom Text Area
 
Hello, how do I create a custom text area for products like "Detailed description"?

cflsystems 11-11-2013 07:35 PM

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

Wazowski 11-12-2013 10:56 AM

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.

cflsystems 11-12-2013 11:13 AM

Re: Product Details Custom Text Area
 
This will require database, php scripts and template files changes, its not just simple do this do that

Wazowski 11-12-2013 11:20 AM

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?

cflsystems 11-12-2013 11:53 AM

Re: Product Details Custom Text Area
 
You just add another field to the appropriate products table

Wazowski 11-12-2013 12:03 PM

Re: Product Details Custom Text Area
 
Quote:

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


How? What Table?

cflsystems 11-12-2013 01:46 PM

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

totaltec 11-12-2013 02:10 PM

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.

Wazowski 11-12-2013 05:08 PM

Re: Product Details Custom Text Area
 
Thank you Steve and Mike for your hints, I figured it out and surprisingly it works fine!

totaltec 11-12-2013 06:49 PM

Re: Product Details Custom Text Area
 
Quote:

Originally Posted by Wazowski
Thank you Steve and Mike for your hints, I figured it out and surprisingly it works fine!

Nice work! The possibilities are endless with this level of control.

cherie 11-15-2013 05:11 PM

Re: Product Details Custom Text Area
 
Would Extra Fields do the job?

totaltec 11-16-2013 06:32 AM

Re: Product Details Custom Text Area
 
If you don't need a textarea, or if you know of an easy way to use a textarea for extra fields.

cherie 11-16-2013 11:41 AM

Re: Product Details Custom Text Area
 
Customizing the existing Extra Fields to use textarea is far easier than building a new extra field system.


All times are GMT -8. The time now is 10:29 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.