Jump to content



Latest News: (loading..)

[Contribution] Documents Manager


  • Please log in to reply
176 replies to this topic

#121   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 29 August 2011 - 04:53 PM

View PostBretSpark, on 26 August 2011 - 02:26 PM, said:

Hi Jim,

Just a quick question. i scrapped the previous version i had because i was having problems with the ckeditor addon. I have now downloaded oscommerce 2.3. Is it possible to include this document manager addon (version 2.2) my website that is version 2.3??

From what i can see the only page that will give me issues is the product_info.php? do you think it is possible ? If so where about do i change the code in the product_info page?
If it is not possible do you know of any other addons where i can add product manuals etc to my site?

Regards

Bret
Document Manager is not hard to convert. You'll need to update the documents.php file and the boxes to the new style. You can add the code to products_info.php just below the products_description.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#122   BretSpark

BretSpark
  • Members
  • 32 posts
  • Real Name:Bret Spark

Posted 29 August 2011 - 04:55 PM

thanks, i will have a go

#123   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 29 August 2011 - 04:55 PM

View Postgfasal, on 29 August 2011 - 10:09 AM, said:

Associate drop down list -
<snip>
      $products_query_raw = "select products_name,
                             products_model,
                             products_id

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#124   BretSpark

BretSpark
  • Members
  • 32 posts
  • Real Name:Bret Spark

Posted 29 August 2011 - 09:59 PM

Hi Jim,

all seems to be working now. I am using the Document manager to upload the documents and associate them to the product. when i go to the product the attachments are displayed under the 'More Info' TAB.

Just a quick question . In the catalog/includes/modules/documents_tab.php file on line 323

<?php
// The Documents tab
    if ($documents_tab == true) {
     echo '    <div id="tabs-12">';
      include( DIR_WS_MODULES . FILENAME_DOCUMENTS );
     echo '    </div>';
    }
?>
  </div>

i have changed to

<?php
// The Documents tab
    if (DOCUMENTS_SHOW_PRODUCT_INFO == 'True') {
     echo '    <div id="tabs-12">';
      include( DIR_WS_MODULES . FILENAME_DOCUMENTS );
     echo '    </div>';
    }
?>
  </div>


Will this code be ok???

Regards

Bret

#125   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 29 August 2011 - 10:02 PM

Either one will work. The constant just needs to be set in the Admin. Use whatever works for you.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#126 ONLINE   kenkja

kenkja
  • Members
  • 242 posts
  • Real Name:Ken Johnson
  • Gender:Male
  • Location:Uk, Yorkshire

Posted 08 October 2011 - 05:10 PM

Hi Jim,

I have your contribution working in a v2.3.1 installation.

My site is a motorcycle spares retailer and I've uploaded around 50 odd .pdf's supplied by the manufacturer which breaks down the bikes into the component parts and complete bikes I sell.

The site is very new and only has around 2,500 parts uploaded and 4 complete bikes, realistically there are probably 20 times as many to upload.

It is possible that 1 part number may related to say 3 bike "models" and may have been used anywhere from 1 to 5 years, each year having its own parts.pdf, this would give, for example, up to 15 associations for each part number.

So I'm trying to figure out if there is way of displaying a parts.pdf on the documents listing without having actually created an association, so that a user could click on the documents box=>Parts.pdf, find the part he needs and then use the search functions to find the parts they require.

ken
Os-commerce v2.3.3
Security Pro v11
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags
Ultimate SEO Urls Pro

#127   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 08 October 2011 - 08:23 PM

The Document Manager was designed to associate the document with the product. I never thought about it being used for parts.

Association is the only way to connect a document with a product in the current code. You would have to code up something different if you don't want to do it that way.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#128 ONLINE   kenkja

kenkja
  • Members
  • 242 posts
  • Real Name:Ken Johnson
  • Gender:Male
  • Location:Uk, Yorkshire

Posted 10 October 2011 - 01:22 PM

Hi Jim, thanks for info.

I'm trying to think of a work around solution for my issue, on the lines adding a field to TABLE_DOCUMENTS which would be, for example, CATEGORY_ID, then linking catalog/documents.php, to this new field rather than to PRODUCTS_TO_DOCUMENTS=>DOCUMENTS_ID.

I'm not very good at php, am I correct in thinking

								   " . TABLE_PRODUCTS_TO_DOCUMENTS . " p2d, 
								   " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, 
								   " . TABLE_CATEGORIES_DESCRIPTION . " cd 
							  where d.document_types_id = '" . $type . "' 
								and dt.document_types_id = d.document_types_id 
								and d.documents_visible = 'True' 
								and d.documents_id = p2d.documents_id 
								and p2d.products_id = p2c.products_id 

That the first and last line of the code above, being lines 43 & 50 of catalog/documents.php, are the ones select documents which have had an association created.

thanks

ken
Os-commerce v2.3.3
Security Pro v11
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags
Ultimate SEO Urls Pro

#129   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 10 October 2011 - 05:50 PM

You need to add
	and cd.categories_id = p2c.categories_id
to link the categories_description table to the products_to_categories table. Then it should work.

Regrds
Jim

Edited by kymation, 10 October 2011 - 05:50 PM.

My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#130 ONLINE   kenkja

kenkja
  • Members
  • 242 posts
  • Real Name:Ken Johnson
  • Gender:Male
  • Location:Uk, Yorkshire

Posted 10 October 2011 - 05:56 PM

Thanks JIm
Os-commerce v2.3.3
Security Pro v11
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags
Ultimate SEO Urls Pro

#131   Jossz

Jossz
  • Members
  • 3 posts
  • Real Name:Peter Koltay

Posted 22 November 2011 - 03:18 PM

Hi Jim,

I downloaded from the "OsCommerce Community Add-Ons" side the "Document Manager 1.0.4" add-on.
Very useful programme, this likes me extremely.
I am not PHP a programmer.
My question : to make a a little of modifications , in which a counter counts , a document how many times they downloaded ?
This he could be to see on the Admin page between items of information of the document .
This would give me useful information.

Best Regards

Peter

Edited by Jossz, 22 November 2011 - 03:19 PM.


#132   kymation

kymation

    Believers

  • Community Sponsor
  • 6,682 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 22 November 2011 - 06:13 PM

That's a good idea. I'll add it to the wish list. It may be a while before I get to this though.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#133   Jossz

Jossz
  • Members
  • 3 posts
  • Real Name:Peter Koltay

Posted 23 November 2011 - 01:04 AM

I thank You Jim...[img]http://forums.oscommerce.com//public/style_emoticons/default/thumbsup.gif[/img]

#134   Jossz

Jossz
  • Members
  • 3 posts
  • Real Name:Peter Koltay

Posted 03 December 2011 - 11:46 AM

Hi Jim,

My question : approx. when the counter is getting ready?
I would like to use it... ;)

Regards

Peter

#135   liuhoward

liuhoward
  • Members
  • 1 posts
  • Real Name:howard liu

Posted 02 February 2012 - 01:43 PM

Dear Jim, this would be the exact add-on for my project if it works with oSCommerce 2.3.1. Do you have a newer version in the pipeline? Thanks!

#136   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 22 February 2012 - 12:05 PM

is ther any code out ther to be able to add the doc upload on the admin product entry page?
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#137   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 22 February 2012 - 01:02 PM

think i found a small error, can anyone confim this:

see image attached.

the sort order and Document Title in this document's information does not update when update is pressed.

PLeae confirm or deny...

Attached Files


OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#138   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 23 February 2012 - 04:43 PM

View Postmibo, on 09 January 2010 - 08:53 PM, said:

HI!

'Delete' is not working.

I can't delete the uploaded file. It can delete the title and the sort order; it also deletes it from the web page till you click 'Update'. But in doesn't delete it from the server. Help !

mibo


Having the same issue running on 2.3 --- anyone solved this?
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#139   OSC-Sevilla

OSC-Sevilla
  • Members
  • 391 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 23 February 2012 - 05:30 PM

View Postgfasal, on 22 February 2012 - 01:02 PM, said:

think i found a small error, can anyone confim this:

see image attached.

the sort order and Document Title in this document's information does not update when update is pressed.

PLeae confirm or deny...


Resolved - FIXED - no problem
OSC 2.3.1
INSTALLED:Document Manager / Monthly Sales and Tax Returns / Batch Print Invoices / Ultimate HTML EMAILs / AJAX Attribute Manager / OSC PDF Catalog / Move Bookmarks / Sort Order / Easy Populate / Sales Reports / Low Stock Report / Admin: Model # on Category / Product Administration Screen / Mini images in admin / SLiCK reCaptcha / Google + / Beautiful Breadcrumbs / 2.3.1 - Banner Language Mod / ADD New Page / EASY MAP (google) v.3.0 / Who's Online Enhancement for 2.3.1 / Admin Notes / scrambled order number / remove_unused_images / Quantity Select / Unit Weight / Product Specifions (filter results) / AJAX Product Attributes/ Attribute Codes/ Date & Order No. to Invoice/ O.P.I. 2.0 / Attribute Images / Manual Order Editor / Attributes Clone / Order Editor / Create Order / Company VAT No. / Add customer/  CKEditor 2.3.1 / Page Manager / Default images via admin / Percentage Shipping Price / QTPro / Scroll to Top / PDF Invoice / Featured Products / Product Listing Enhancements / AutoBackups /  Ultimate SEO URLS 5 Pro / Kiss Tags/ ..Custom Admin Mods /

#140   ce7

ce7
  • Members
  • 202 posts
  • Real Name:lyn

Posted 16 August 2012 - 12:21 AM

Hi Jim,

I had installed your products specifications on 2.3.1, very great addon, in the extra has a document manager, it is for 2.2 version. Will it be a version of 2.3.1 coming soon?

I am not familiar with php code at all, struggle to convert it to 2.3.1,
now stuck at the catalog/includes/boxes/ document.php and information.php

tried to change the name and move to catalog/includes/modules/boxes, but then i got error said class 'bm_information' not found.

hopefully the 2.3.1 version available soon as this is really good one to work together with product specifications,

thanks

Lyn