Jump to content

jantunes

Members
  • Content count

    29
  • Joined

  • Last visited

Profile Information

  • Real Name
    jantunes
  1. I am setting up an online photography shop and have been searching through all previous solutions I could find, such as vvgallery and others. Initially I set up a Osc with the standard download option but this bought me a LOT of heat and bitching from the photographers claiming the process was too complicated. They basicly want to fill out the name, description, etc and upload the photo ONCE. Since none of the solutions I found worked for me, I decided to create my own custom contribution. My knowledge of php and mysql is very basic but I'm thinking "what the heck! Might as well try doing a contribution". Here in this image you can see my initial layout of how the contribution should work. In the menu there will be 3 user set options. The "naming convention" is something to rename the image in the downloads directory. These are constant for all downloads. There will be 2 instances of the same image, 1 in the image directory and another in the downloads. The one in images directory will then be auto sized by another contribution so that's fine. What do you think?
  2. jantunes

    [contribution] CGDiscountSpecials

    Just in case someone else run's into this, here's my solution. I don't think this is the right solution, but it's the only one that made the error go away. /catalog/shopping_cart.php <?php //CGDiscountSpecials start global $customer_id; $query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest); if (($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) { //echo $currencies->format($cart->show_total()); } elseif (tep_session_is_registered('customer_id')) { //echo $currencies->format($cart->show_total()); } else { //echo PRICES_LOGGED_IN_TEXT; } //CGDiscountSpecials end ?>
  3. jantunes

    [contribution] CGDiscountSpecials

    Hi. After installing this great contribution, I'm getting a small error on my shopping cart which i've circled in red in the image below. Can anyone point me in the right direction as to why this is showing up?
  4. jantunes

    ThumbNails and WaterMarks OnTheFly

    The thumb works good by itself. When I add the watermark part, the thumb gives back a broken link. When i click on that link, the larger jpg WITH the watermark appears. It's the watermarked thumb that's giving a broken link. If I access the jpg directly from the browser, it shows up correctly with the watermark.
  5. jantunes

    ThumbNails and WaterMarks OnTheFly

    I'm having a strange problem: I installed the thumb part which worked great. I then instaled the watermark part and set thumb.php $watermark = "1"; which gives me a missing thumb. When I access the image directly it shows up correct with the watermark. The thumb will not show with watermark enabled. Is there something I'm missing?
  6. jantunes

    [contribution] Simple Template System (sts)

    Hi I've been experimenting with multiple category templates in STS 2.0.1 which work fine except for when you have several languages. Is it possible to configure a template for each cpath AND language? Thanks
  7. In case anyone else is wondering how to remove information_box_arrow.gif , here's my solution (I don't know if it's the ideal solution but it works for me): /catalog/includes/boxes/information.php <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $informationString = ""; $sql=mysql_query('SELECT information_id, languages_id, info_title FROM ' . TABLE_INFORMATION .' WHERE visible=\'1\' and languages_id ='.$languages_id.' ORDER BY v_order') or die(mysql_error()); while($row=mysql_fetch_array($sql)): $filename_information = tep_href_link(FILENAME_INFORMATION, 'info_id=' . $row['information_id']); $informationString .= '<a href="' . $filename_information . '">' . $row['info_title'] . '</a><br>'; endwhile; $info_box_contents = array(); $info_box_contents[] = array('text' => $informationString . '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //-->
×