Zen Cart Logo
Forums / All Other Contributions/Addons / Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Views: 7,103

Results 1 to 14 of 14
1 Nov 2017, 10:32 AM
#1
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

This is the support thread fot CITTINS v1.0
for now it can be downloaded from: github
**
What does this module do?**

The current collect info page can be quite long, specially when having multiple languages, and extra fields. This is not very user friendly. Therefore I started searching for a better solution.
After looking at many other shopping cart frameworks, I have a pretty good idea of how I want the new collect info page to look. It will be a page with tabs for different categories of information. The default tabs are:

  • General
  • Data
  • Manufacturer
  • Image
    This is the information that is currently available by default on the product collect info pages, with one exception, I added the meta tags to the collect page.
    Extra Tabs

There are some extra tabs available at this time of writing:

  • Discounts
  • This tab can be used to add quantity discounts to a product. Although it is a standard function in Zen Cart it is well hidden
  • Information
  • Very basic, needs updating with more useful info
  • Product Attributes
  • This tab adds the full functionality off the Attributes controller page to your product edit page.
  • Category
  • Adds the ability to link products to multiple categories, and to set the master category.
    Future development

In future releases I plan on adding extra info, by using more drop in modules. This way others can contribute by writing their own tabs, that will be included by dropping the files in a specific folder (for example: admin/includes/modules/extra_tabs). Extra tabs that are planned are:

  • Specials / featured (maybe one tab, combined in the Discounts tab, or multiple)
  • Product history
  • Product reports (Views, purchases, etc.)
  • Also I a want to add ajax to add things like (additional) images dynamically, or a dynamic preview eliminating the need for the preview_info.php, and update_product.php files.

Some screen shots
image1
image2
image3

2 Nov 2017, 12:04 AM
#2
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

So I took a run at installing this, but ran into a problem trying to merge core file changes.

To my zc155e, I've added:
Image Handler 4
Zen Lightbox
Ceon URI

Ultimately I surrendered while trying to merge the module files, at the first one (of three) I attempted: collect_info.php

Your rewrite was so different that I couldn't figure out where to stick Ceon's 2 of 2. And I'm not a coder, so I was uncomfortable trying to guess.

As cool, useful, convenient as this tool looks, I going to have to make due until zc1.6 comes out. :(

Thanks anyway!

2 Nov 2017, 12:56 AM
#3
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Design75:

In future releases I plan on adding extra info, by using more drop in modules. This way others can contribute by writing their own tabs, that will be included by dropping the files in a specific folder (for example: admin/includes/modules/extra_tabs). Extra tabs that are planned are:

  • Specials / featured (maybe one tab, combined in the Discounts tab, or multiple)
  • Product history
  • Product reports (Views, purchases, etc.)
  • Also I a want to add ajax to add things like (additional) images dynamically, or a dynamic preview eliminating the need for the preview_info.php, and update_product.php files.

Nice.. was easy to install and set-up. I added another tab and moved over the items I use.. was a bit interesting figuring out how the tabs worked, but once I got them down, the rest was easy. I'll have to modify my auction product page and add it there too.
Attachment 17392

2 Nov 2017, 8:34 AM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Yeah,the collect page has been rewritten for a large part, and I understand it can be scary. When I started out 10 years ago I was the same as you. I had no Idea how to code, or how to make changes.
I will look in to your CEON problem, and add the extra code for you.

Feznizzle:

So I took a run at installing this, but ran into a problem trying to merge core file changes.

To my zc155e, I've added:
Image Handler 4
Zen Lightbox
Ceon URI

Ultimately I surrendered while trying to merge the module files, at the first one (of three) I attempted: collect_info.php

Your rewrite was so different that I couldn't figure out where to stick Ceon's 2 of 2. And I'm not a coder, so I was uncomfortable trying to guess.

As cool, useful, convenient as this tool looks, I going to have to make due until zc1.6 comes out. :(

Thanks anyway!

2 Nov 2017, 8:37 AM
#5
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Glad you like it :D, and that you were able to add new tabs. If you like, you can send me the files, so I can add them to the package.

davewest:

Nice.. was easy to install and set-up. I added another tab and moved over the items I use.. was a bit interesting figuring out how the tabs worked, but once I got them down, the rest was easy. I'll have to modify my auction product page and add it there too.
Attachment 17392

3 Nov 2017, 5:57 PM
#7
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Design75:

Glad you like it :D, and that you were able to add new tabs. If you like, you can send me the files, so I can add them to the package.
I had a bug popup, but it was after I made some other changes.. the master category ID was erased on a product update which caused a die 'I WOULD NOT ADD'

I see why it did that, but I think its from the standard update side then the category tab.. the fix for me was to change udate_product.php line..

$update_sql_data = array( 'products_last_modified' => 'now()', 'master_categories_id' => ($_POST['master_category'] > 0 ? zen_db_prepare_input($_POST['master_category']) : zen_db_prepare_input($_POST['master_categories_id'])));

to:

$update_sql_data = array( 'products_date_added' => 'now()', 'master_categories_id' => (int)$current_category_id);

which resolved the issue with the missing Category ID...

The edits I did was to split the extra tabs folders so I could have a common folder and a product type folder for tabs. The common folder would load tabs for all product types and the other just for that product type. I didn't see any other way to get an extra data tab for standard products and than do the same for auction products where both had different data needs.
Attaching the extra data folder.

3 Nov 2017, 8:41 PM
#8
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Thanks Dave,
I'll have a look at it.
Product type were on my to-do list.> davewest:

I had a bug popup, but it was after I made some other changes.. the master category ID was erased on a product update which caused a die 'I WOULD NOT ADD'

I see why it did that, but I think its from the standard update side then the category tab.. the fix for me was to change udate_product.php line..

$update_sql_data = array( 'products_last_modified' => 'now()', 'master_categories_id' => ($_POST['master_category'] > 0 ? zen_db_prepare_input($_POST['master_category']) : zen_db_prepare_input($_POST['master_categories_id'])));

> to:
> ```
$update_sql_data = array( 'products_date_added' => 'now()', 'master_categories_id' => (int)$current_category_id);

which resolved the issue with the missing Category ID...

The edits I did was to split the extra tabs folders so I could have a common folder and a product type folder for tabs. The common folder would load tabs for all product types and the other just for that product type. I didn't see any other way to get an extra data tab for standard products and than do the same for auction products where both had different data needs.
Attaching the extra data folder.

15 Nov 2017, 9:11 AM
#9
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

UPDATE:

It is taking a bit longer to submit this module. Making some bug fixes.
Version 1.0.1 has been submitted.
Once approved it can be found here

21 Nov 2017, 3:08 PM
#10
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Cittins 1.0.1 is now available in the downloads section

22 Nov 2017, 12:27 PM
#11
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Working on an additional feature, to make it easier to choose which fields are shown on a product type and/or tab.
The idea is to drag and drop the labels across the tabs. The collect info page will then load the fields in the chosen order. It will lso be possible to remove fields from the page, create new fields and tabs.
Attachment 17475

27 Nov 2017, 1:59 PM
#12
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Design75:

Working on an additional feature, to make it easier to choose which fields are shown on a product type and/or tab.
The idea is to drag and drop the labels across the tabs. The collect info page will then load the fields in the chosen order. It will lso be possible to remove fields from the page, create new fields and tabs.
Attachment 17475

WOW! Amazing, thank you so much for sharing all of this! Adds a much needed refresh to the collect info page. I'll be installing shortly.

27 Nov 2017, 3:01 PM
#13
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

lankeeyankee:

WOW! Amazing, thank you so much for sharing all of this! Adds a much needed refresh to the collect info page. I'll be installing shortly.
This new feature is still some time away, as I have to rewrite the entire collect page. So instead of editing the existing pages the new version of CITTINS will have its own pages, making installation even easier

29 Oct 2021, 10:36 AM
#14
caroleas avatar

caroleas

Totally Zenned

Join Date:
Feb 2009
Posts:
896
Plugin Contributions:
0

Re: Collect Info Through Tabs In New Style (CITTINS) [Support Thread]

Is this module still supported? Will it work with 1.5.7?