Jump to content



Latest News: (loading..)

srirahandcraft

Member Since 25 Feb 2012
OFFLINE Last Active May 19 2013 04:44 PM
-----

Posts I've Made

In Topic: [Addon] PDF Datasheet

19 May 2013 - 10:45 AM

Hi Jim,

I've installed the following addon:

http://addons.oscommerce.com/info/8560/v,23 (Protected images for osc2.3.3

Now I'm trying to get the pdf-datasheet to be compatible with this addon.
I think, I'm quite far in the right direction but as I'm not a coder, I'm not sure wether this is correct,
I checked the new image route, this is correct, but I still get the following error message:

TCPDF ERROR: [Image] Unable to get image: images/1

The changed code is as follows:

function execute() {
global $PHP_SELF, $pdf, $products_id, $languages_id, $currencies, $current_y, $image_folder;

if( basename( $PHP_SELF ) == 'pdf_datasheet.php' && isset( $products_id ) && $products_id > 0 ) {
// Get the product name
$product_info_query_raw = "
select
pd.products_description,
pi.image,
p.image_folder,
p.image_display
from
" . TABLE_PRODUCTS . " p ,
" . TABLE_PRODUCTS_DESCRIPTION . " pd left join
" . TABLE_PRODUCTS_IMAGES . " pi
on (pi.products_id = pd.products_id
and pi.sort_order = '1')
where
pd.products_id = '" . $products_id . "'
and pd.language_id = '" . ( int )$languages_id . "'
";
$product_info_query = tep_db_query( $product_info_query_raw );
$product_info = tep_db_fetch_array( $product_info_query );

// BOF Protected Images for osCommerce 2.3.3
$image_size = '';
if ($product_info['image_display'] == 1) { // use "No Picture Available" image
$image_size = tep_image(DIR_WS_LANGUAGES . $language . '/images/' . 'no_picture.gif', TEXT_NO_PICTURE, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" style="float: right;"');
} elseif (($product_info['image_display'] != 2) && (tep_not_null($product_info['image']))) { // show product images
// EOF Protected Images for osCommerce 2.3.3

// Get the image information
$image_size = getimagesize(DIR_WS_IMAGES_PROD . $product_info['image_folder'] . $product_info['image']);

I probably need to change more files, but I tried this one as a start.

I hope you've got some time to help me out,
Thanks,

Gerhard

In Topic: [Contribution] Products Specifications

17 March 2013 - 09:36 AM

Hi Jim,
<p>[code]

In Topic: [Contribution] Products Specifications

17 March 2013 - 09:15 AM

Hi Jim,

This is a great addon, and I'm happy, I removed the "products fields groups" addon, everything works fine exept for a few things.

Is there gonna be a version 1.2?, I've installed version 1.1.11, but pretty much all the bugs discussed in the forum were still in this version. and the manual has to be reviewed.

Now, after reading the forum several times, I've still got one problem. The "review tab", "ask a question tab" and "tell a friend tab" are not functioning 100%

After submitting, it returns to the product_info.php but not to the right tab (just to the standard product_info.php with the description tab to be the first tab to show..

The "tell a friend" tab returns the success and error messages, but doesn't show the assigned definitions while they are defined.

If I move the </form> tag up, the "add to cart" button isn't working anymore.
I tried moving
<p>[code]

In Topic: [Contribution] Products Specifications

04 March 2013 - 02:46 PM

@kymation,

I have to appologize for my last post, forget about it.
I overlooked it in the manual.

It must have been late, usually I don't ask these kind of questions as I try to find the solution myself first.

Sorry about that, I take the blame :x

1 question: I saw that both X-Sell and document manager have been listed under the addons for v2.2.
I found X-Sell for 2.3.1 (http://addons.oscommerce.com/info/8330/v,23) but I didn't find the Document manager for 2.3.1.

Are both addons compatible with 2.3.1 or not yet (as you used them in your addon).?

Regards,

Gerhard.

In Topic: [Contribution] Products Specifications

04 March 2013 - 12:51 PM

Hi Jim,

Sorry for the confusion, I'll have a look at it myself.
It wasn't meant as a question, if it was, I'd support it with code.

I'm thinking about using this addon instead of the product fields group as I think this one has more options and is more complete.

Is there a website with an example on what the tabs look like?

What about my second messages?

View Postsrirahandcraft, on 03 March 2013 - 02:47 PM, said:

Hi Jim,

I got the error TABLE_PRODUCTS_TO_DOCUMENTS doesn't exist

This table is being called for in the file products_tabs.php.

This table isn't in the sql file.

Regards,

Gerhard

Have I overlooked something or is this table really missing in the sql file?

Thanks for the help.

Regards,

Gerhard