Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Iggy

Pioneers
  • Posts

    1,240
  • Joined

  • Last visited

Everything posted by Iggy

  1. CCGV 5.16 is stable. Also take a look at CCGV(Trad) Iggy
  2. Love it when the mods do that :-" Find Lightbox here There wasn't much to it anyway. The README from the contrib Lightbox v2.0 Written 7-11-06 by Matthew Stinson www.rcprivatelabel.com ############################################################ # This contribution outlines implementation of Lightbox 2.0 # by Lokesh Dhakar. I take no credit for reating this cool # tool. And only offer support on how to implement it with # osCommerce. This is currently working on osc 2.2. you can # see it in action at www.mwswebmaster.com/test/ # # ############################################################ First upload the files that are included with this contrib to the root directory of your catalog. Typically the catalog directory. ############################################################ Secondly you will add the following code between the <head> and </head> to any page that you want to use the script on. Typically on catalog/product_info.php <script type="text/javascript" src="lb2/prototype.js"></script> <script type="text/javascript" src="lb2/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="lb2/lightbox.js"></script> ############################################################ thirdly if you want to use this contrib on the catalog/product_info.php page you will change <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($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">' . 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> with <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox">' . 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">' . 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> ############################################################ lastly add contents of lightbox.css to the bottom of catalog/stylesheet.css ############################################################ to use this function on any other images you will Add rel="lightbox" attribute to any link tag to activate the lightbox. For example: <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a> Optional: Use the title attribute if you want to show a caption. for more details look at the how to file to see directions from the creator.
  3. Not sure if this helps but it works for me using STS 4.4. In your template just below <!--$headcontent--> <?php if ( $_SERVER["SERVER_PORT"] == '443' ) { ?> <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct="UA-xxxxx-x"; urchinTracker(); </script> <?php } else { ?> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct="UA-xxxxx-x"; urchinTracker(); </script> <? } ?> The only difference from oscoders being the server port instead of request type to get it to return the right Google url depending on connection type. HTH, Iggy
  4. I feel like a mole that's been given a flashlight. I always just traced back by hand and intuition. Thanks for that. Iggy
  5. For the moment you can remove the STS entry that appears in html_output and that should fix it. There's a few brains poking at the issue (see above) but no resolution yet. HTH, Iggy
  6. Hi Rigadin, Looks like I was coming at that the wrong way. I'd like to understand what the vardump is telling me here. Would you explain the results and what you're looking for (just for my own learning) Thanks! array(4) { [0]=> array(4) { ["file"]=> string(84) "/Applications/xampp/xamppfiles/htdocs/osc/catalog/includes/classes/message_stack.php" ["line"]=> int(43) ["function"]=> string(9) "tep_image" ["args"]=> array(2) { [0]=> &string(24) "images/icons/success.gif" [1]=> &string(7) "Success" } } [1]=> array(7) { ["file"]=> string(84) "/Applications/xampp/xamppfiles/htdocs/osc/catalog/includes/classes/message_stack.php" ["line"]=> int(30) ["function"]=> string(3) "add" ["class"]=> string(12) "messageStack" ["object"]=> object(messageStack)#5 (8) { ["table_border"]=> string(1) "0" ["table_width"]=> string(4) "100%" ["table_cellspacing"]=> string(1) "0" ["table_cellpadding"]=> string(1) "2" ["table_parameters"]=> string(0) "" ["table_row_parameters"]=> string(0) "" ["table_data_parameters"]=> string(0) "" ["messages"]=> array(0) { } } ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> &string(5) "login" [1]=> &string(61) "Success: A new password has been sent to your e-mail address." [2]=> &string(7) "success" } } [2]=> array(7) { ["file"]=> string(78) "/Applications/xampp/xamppfiles/htdocs/osc/catalog/includes/application_top.php" ["line"]=> int(500) ["function"]=> string(12) "messageStack" ["class"]=> string(12) "messageStack" ["object"]=> object(messageStack)#5 (8) { ["table_border"]=> string(1) "0" ["table_width"]=> string(4) "100%" ["table_cellspacing"]=> string(1) "0" ["table_cellpadding"]=> string(1) "2" ["table_parameters"]=> string(0) "" ["table_row_parameters"]=> string(0) "" ["table_data_parameters"]=> string(0) "" ["messages"]=> array(0) { } } ["type"]=> string(2) "->" ["args"]=> array(0) { } } [3]=> array(4) { ["file"]=> string(59) "/Applications/xampp/xamppfiles/htdocs/osc/catalog/login.php" ["line"]=> int(13) ["args"]=> array(1) { [0]=> string(78) "/Applications/xampp/xamppfiles/htdocs/osc/catalog/includes/application_top.php" } ["function"]=> string(7) "require" } } Iggy
  7. Hrrm, Just removing the whole block fixes it with no discernable problems // START STS v4.4: global $sts; $sts->image($src); // Take image from template folder if exists. // END STS v4.4 This is for the mulitple language images? Iggy
  8. Hi All, I'm running into a small problem I'm trying to suss whether it's my issue or an STS issue so I'd be interested to know if anyone else is experiencing this. Basically on a fresh osC install and STS 4.4 added by overwrite with no other contributions once I've created a customer when I come back and hit the password forgotten link on login.php I get Fatal error: Call to a member function image() on a non-object in /osc/catalog/includes/functions/html_output.php on line 78 Line 78 is smack in the middle of: // START STS v4.4: global $sts; >>>> Next line is Line 78 $sts->image($src); // Take image from template folder if exists. // END STS v4.4 I get these results on my local dev box using PHP 5.2.0 and on my production box using PHP 5.2.1. Haven't had a chance to test PHP 4.4.4 yet. I don't get these results with STS 4.3.3 though. Anyone else seeing this in STS 4.4? Thanks, Iggy
  9. It's nice when it's easy (and I've done that a few times myself) :lol: Iggy
  10. That looks right. Is the batch_print.php active in Admin > Administrator > File Access under Customers? Iggy
  11. Thanks Rigadin for the heads up on the power pack. Just in case anyone out there is using Ultrapics here's some code that works for /includes/modules/sts_inc/popup_image.php. <?php // Ultrapics mods $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_image_lrg, p.products_image_xl_1, p.products_image_xl_2, p.products_image_xl_3, p.products_image_xl_4, p.products_image_xl_5, p.products_image_xl_6 from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$_GET['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); $products = tep_db_fetch_array($products_query); $sts->template['productname'] = $products['products_name']; $sts->template['productmodel'] = $products['products_model']; if ($_GET['image'] ==0) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_lrg'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==1) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_1'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==2) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_2'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==3) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_3'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==4) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_4'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==5) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_5'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==6) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image_xl_6'],'','','', 'name="prodimage"'); } elseif ($_GET['image'] ==7) { $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image'],'','','', 'name="prodimage"'); } ?> Dead simple. Really have to start in on these things before 2am. :rolleyes: Hope this comes in handy for someone else and thanks! Iggy
  12. Ran into that. Since the base folder is a new db item, uninstall the module in the admin then reinstall it and it will populate the db. HTH, Iggy
  13. And that's 95% of the fun right there. Do post the mod either here or in contribs! You never know when someone will find it or some part of it useful. Glad I could "help" :lol: Iggy
  14. Hey there Rigadin and Bill, Just got through upgrading to 4.4 and it works extra nice :thumbsup: As always thanks for your work on this. I have a quick question on the procedure for integrating something like ultrapics into the popup template; as in how might that be done (in broad terms). Ultrapics adds this bit of code to the popup html to iterate through the various options. <?php if ($_GET['image'] ==0) { echo tep_image(DIR_WS_IMAGES . $products['products_image_lrg'], $products['products_name']); } elseif ($_GET['image'] ==1) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_1'], $products['products_name']); } elseif ($_GET['image'] ==2) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_2'], $products['products_name']); } elseif ($_GET['image'] ==3) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_3'], $products['products_name']); } elseif ($_GET['image'] ==4) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_4'], $products['products_name']); } elseif ($_GET['image'] ==5) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_5'], $products['products_name']); } elseif ($_GET['image'] ==6) { echo tep_image(DIR_WS_IMAGES . $products['products_image_xl_6'], $products['products_name']); } elseif ($_GET['image'] ==7) { echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); } ?> Any tips on capturing this in STS? I'm hoping it's obvious and it's just too early in the morning :rolleyes: Thanks, Iggy
  15. Not sure. Is it that mopics is supposed to bring up more than one image in the lightbox? If it is you'll probably have to monkey the lighbox.js around to accomadate that. Just a guess though. Sorry I couldn't fix that one for you. Iggy
  16. Without installing it and trying it out is it a matter of putting the rel here in the statement? $product_info['products_id'].'&invis='.(MOPICS_GROUP_WITH_PARENT=='true'?$mo_item:($mo_item+1))).'\\\')" rel="lightbox">' Iggy
  17. Hey Matrix, Looks like you would need to modify this line in product_info.php // BOF: More Pics 6 ADDED to if statement: && MOPICS_GROUP_WITH_PARENT == 'false' if (tep_not_null($product_info['products_image']) && MOPICS_GROUP_WITH_PARENT == 'false') { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), (MOPICS_RESTRICT_PARENT=='false'?'':SMALL_IMAGE_WIDTH), (MOPICS_RESTRICT_PARENT=='false'?'':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">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], (MOPICS_RESTRICT_PARENT=='false'?'':SMALL_IMAGE_WIDTH), (MOPICS_RESTRICT_PARENT=='false'?'':SMALL_IMAGE_HEIGHT), 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <?php // EOF: More Pics 6 ?> </noscript> See my post above for some examples of how it works with UltraPics but the principal should be the same for both wherever the popup appears. Iggy
  18. Don't know if this'll be helpful to anyone but since I just had to do it thought I'd share :lol: LightBox 2.0 and UltraPics 1.1 Install LightBox as per the instructions. In product_info.php find <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox">' . 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">' . 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> And replace with (there's probably a nicer way to test for all these instances) <?php if (($product_info['products_image_lrg'] !='') && ($product_info['products_image_med'] !='')) { ?> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_lrg']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <?php } elseif (($product_info['products_image_lrg'] =='') && ($product_info['products_image_med'] !='')) { ?> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_med'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <?php } elseif (($product_info['products_image_lrg'] !='') && ($product_info['products_image'] !='')) { ?> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_lrg']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <?php } elseif (($product_info['products_image_med'] =='') && ($product_info['products_image_lrg'] =='')) { ?> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> In /includes/modules/additional_images.php find all instances of <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=2') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_2']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?> </noscript> and replace with <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_1']) . '" rel="lightbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> Changing out the image numbers for each products_image_xl_1 2 3 4 etc Your mileage may vary on this code if used verbatim but I hope it either works as presented or points the way for your particular install. Thanks for the osC LightBox contribution. Really nice :thumbsup: Iggy
  19. For me it was a matter of putting headertags.php in the sts_inc folder and adding the tag in Admin > Modules > STS where I wanted it to be used. Iggy
  20. Probably means exactly what it says. Look at line 21. Find where it expects header_tags.php to be. Put it there or change the path. HTH, Iggy
  21. Hey there Bill and Rigadin, Just wanted to thank you for all your work on STS. Just upgraded to 4.3.3 and it is very nicely done and works like a champ. Thought a shout was in order :) Iggy
  22. I believe you won't see it on AuthNet until you're in production. If you want some confirmation turn on the notification emails from AuthNet. They'll show up with TEST MODE or somesuch at the top. Iggy
  23. Valid as well. If you look at what I posted it actually zaps the middle 8 numbers using the same setup as the CC display on checkout confirmation; which is what I was after. You could just null the value in checkout_process too 'cc_number' => $order->info['cc_number'], Iggy
  24. I would have been happy to have been schooled on why any of those wouldn't work and that was why I posted them. But I get what you're after. Iggy
  25. Just thought I was working the problem there as best I could Vger. Are you inviting me to only post when I know the answer definitively to a speculative question? Or not at all? Iggy
×
×
  • Create New...