Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

lildog

Pioneers
  • Posts

    613
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by lildog

  1. Thanks for the bug report Claudia, I have uploaded a new version. I apologize I did not add you in the credits..I am getting tired and just sapced it.

     

    lildog

     

     

     

    I added the contrib (version 1.7.12) to my store . When I enter a new contrib the dates of "Date Added to the store" and "last official update" are hussled when I click on the infobutton on the right in the admin, and also in my database. Any Idea why this is happening?
  2. What does your error log say? That is WAY to broad a description to diagnose over the internet.....

     

    lildog

     

    Hey Lildog

     

    I tried to just put the admin/categories.php into from the 1.4 package into my site and I still got the blank screen.

     

    I'm thinking that there's something else that is causing the blank screen in the contrib. I do have multiple contributions installed on the site, so I am not sure what the problem could be.

     

    Has anyone had conflicts with other contribs?

  3. Excellent! Glad you got it to work. Looks good for me. IF you go here:http://www.lokeshdhakar.com/projects/lightbox2/ you can make all three show up in one box...the important part below being lightbox[roadtrip] then a next previous button will show up in the lightbox. I suppose it would also be possible to include the parent image as well. Also it is fairly easy to make the box open closer to the top of the window so the close part isn't out of the screen. However I do not remember how, I think I looked in the lightbox forum. If I remember what I did I will post it.

     

    <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>

    <a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>

    <a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>

     

     

    I think I changed this in lightbox/lightbox.js:

    // var lightboxTop = arrayPageScroll[1] + (document.viewport.getHeight() / 10);

    var lightboxTop = arrayPageScroll[1] + ((document.viewport.getHeight() / 100) + 25);

     

     

    lildog

     

    Todd,

     

    I think I got it figured out. If you wouldn't mind, go to the site I am working on http://autodres.startlogic.com/OSC/

    and scroll down, click Lexus Kits and click on each image and tell me if you think it is operating correctly.

     

    Thanks

     

    Joel

  4. You need to be using the most recent version first off. I will not debug an old version.....among other things the delete function now references products_previous_subimage6 instead of products_subimage6

     

     

     

    Hi all,

     

    same problem here, no deleting the database image name, if have searched and tested the something like this ( for the last image, to delete the row in the database but didn't work, any futher progress in the ALTER statement, because the link is in with the checkbox but no query is found in the categories.php or general.php , right ?

     

      	$product_subimage6_query = tep_db_query("select products_subimage6 from " . TABLE_PRODUCTS . " where products_id = '" . tep_db_input($product_id) . "'");
     		$product_subimage6 = tep_db_fetch_array($product_subimage6_query);
    
     		$duplicate_subimage6_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " where products_subimage6 = '" . tep_db_input($product_subimage6['products_subimage6']) . "'");
     		$duplicate_subimage6 = tep_db_fetch_array($duplicate_subimage6_query);
    
     		if ($duplicate_subimage6['total'] < 2) {
     		  if (file_exists(DIR_FS_CATALOG_IMAGES . $product_subimage6['products_subimage6'])) {
     			@unlink(DIR_FS_CATALOG_IMAGES . $product_subimage6['products_subimage6']);
     		  }
     	}
     	  	    tep_db_query("delete products_subimage6 from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");

  5. I was mistaken, it is not an alter query it is the delete query.

     

    This one deletes the image from the server:

    @unlink(DIR_FS_CATALOG_IMAGES . $product_subimage6['products_subimage6']);

     

    And this one deletes it from the db

    tep_db_query("delete products_subimage6 from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");

     

     

    If I had to guess without any info I would guess it is a pth issue, they always give me hell. Are you getting any errors? What other contribs do you have installed on categories.php?

     

     

     

    Hi all,

     

    same problem here, no deleting the database image name, if have searched and tested the something like this ( for the last image, to delete the row in the database but didn't work, any futher progress in the ALTER statement, because the link is in with the checkbox but no query is found in the categories.php or general.php , right ?

  6. Autoguy,

     

    here are my links in product_info.php, the original lines for more pics are commented.......so you can see the originals also. It is for this contrib: http://addons.oscommerce.com/info/5812. I haven't done it yet but you can add all images in one lightbox also, so you can use next previous buttons. You will have to consult dokhar site for that it is a simple matter of adding a name to the link or something.

     

    // BOF Lightbox

    /* $mopics_output .= ' <td align="center" class="smallText"><script language="javascript"><!--

    document.write(\'<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'].'&invis='.(MOPICS_GROUP_WITH_PARENT=='true'?$mo_item:($mo_item+1))).'\\\')">' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], addslashes($product_info['products_name']), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_width), (MOPICS_RESTRICT_PARENT=='false'&&$mo_item==0&&MOPICS_GROUP_WITH_PARENT=='true'?'':$mopics_image_height), 'hspace="5" vspace="5"') . '<br><img border=0 src=images/zoom.gif></a>\');

    //--></script><noscript>

    <a href="' . tep_href_link(DIR_WS_IMAGES . $mopics_images[$mo_item]) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], $product_info['products_name'], $mopics_image_width, $mopics_image_height, 'hspace="5" vspace="5"') . '<br><img border=0 src=images/zoom.gif></a>

    </noscript></td>'."\n";

    */

     

    $mopics_output .= '<td align="center" class="smallText"><a href="' . tep_href_link(DIR_WS_IMAGES . $mopics_images[$mo_item]) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], $product_info['products_name'], (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_WIDTH), (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_HEIGHT), 'hspace="5" vspace="5"') . '<br><img border=0 src=images/zoom.gif></a></td>'."\n";

    // EOF Lightbox

     

     

     

     

     

     

    <!-- BOF lightbox-->

    <?php /*

    <script language="javascript"><!--

    document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

    //--></script>

     

    <noscript>

    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

    </noscript>

     

    */ ?>

    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_WIDTH), (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_HEIGHT), 'hspace="5" vspace="5"') . '<br><img border=0 src=images/zoom.gif></a>'; ?>

    <!-- EOF lightbox-->

  7. This contrib won't do that. There is one that does though, but i do not remember the name. Search the contribs page or maybe someone here can remember the name.

     

    lildog

     

    Hi everybody,

     

    i´ve installed this contribution and seems to work well.

    However, what i´m trying to do is to set some hidden products so i can provide my clients with the url and they do the checkout proccess as well.

    I mean, i want to have that products hidden for the rest of the site visitors, but when i disable the hidden products category, it disables the products too.

     

    Any ideas on this?

     

    Please help!

     

    Thanks in advance and sorry for my bad english

     

    Juan P. Corti

  8. BTW, I don't know if this is/was your case but I used to have alignment issues sometimes when my description was not at least one entire line long, which helps the 'cell' the description is in expand to it's intended length. Here are the two lightbox references i have in products_info.php:

     

    $mopics_output .= '<td align="center" class="smallText"><a href="' . tep_href_link(DIR_WS_IMAGES . $mopics_images[$mo_item]) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $mopics_images[$mo_item], $product_info['products_name'], (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_WIDTH), (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_HEIGHT), 'hspace="5" vspace="5"') . '<br><img border=0 src=images/zoom.gif></a></td>'."\n";

     

     

    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_WIDTH), (MOPICS_RESTRICT_PARENT=='false'?'':PRODUCT_IMAGE_HEIGHT), 'hspace="5" vspace="5"') . '<br><img border=0 src=images/zoom.gif></a>'; ?>

  9. I use your contrib and it works great. No if's ands or buts. I maintain a number of contribs including manual order maker which ,admittedly, strangely piggybacks order editor.

     

    I am cleaning up collect residential commercial info for shipping and hope you could help me out real fast. I don't know much javascript so I am stuck. I am adding rudimentary compatibility to collect residential commercial info for shipping for order editor and require two radio buttons to put commercial or residential into a new orders db column called 'delivery_residence_id'. I have almost everything working except the line when a button is clicked to update the order row in the db. Here is the line I have and hope you (knowing javascript) can spot the problem straight away.

     

     

    echo tep_draw_radio_field('update_delivery_residence', 'Residential', 'onClick="updateOrdersField(\'delivery_residence_id\', \'Residential\'"' ). '  ' . RESIDENTIAL . '  ' . tep_draw_radio_field('update_delivery_residence', 'Commercial','onClick="updateOrdersField(\'delivery_residence_id\', \'Commercial\'"') . '  ' . COMMERCIAL . ' ' . (tep_not_null(ENTRY_RESIDENCE_TEXT) ? '<span class="inputRequirement">' . ENTRY_RESIDENCE_TEXT . '</span>': '');

     

     

     

     

     

    Thank you in advance,

    lildog

  10. Rustyload,

    it looks like a.customers_group_id is probably from another contrib. You can just delete it and it's comma from the query. It happens alot to me, when updating/creating a contrib, there are 3 or four sets of files to edit and it can get confusing. There is a clean set, the set for my shop, and the set that goes into the contrib.....I am still working on an official update.

     

    lildog

×
×
  • Create New...