Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

germ

Pioneers
  • Posts

    13,804
  • Joined

  • Last visited

  • Days Won

    62

Reputation Activity

  1. Like
    germ got a reaction from RMD27 in HELP! Category Image Size and featured product image size...   
    The category images are displayed in index.php with this code:
     

    <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
    You can tweak the size with code something like this:
     

    <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <?php // // Index 0 and 1 contains respectively the width and the height of the image. // $width_text = HEADING_IMAGE_WIDTH; $height_text = HEADING_IMAGE_HEIGHT; if ( $image_size = @getimagesize(DIR_WS_IMAGES . $category['categories_image'] ) ) { $scale_factor = 0.5; // sample scale factor - alter to suit $width_text = intval( $image_size[0] * $scale_factor ); $height_text = intval( $image_size[1] * $scale_factor ); } // // ?> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], $width_text, $height_text); ?></td>
    Similarly the sub category images in index.php:
     
    Old code:
     

    while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } }
    New code:
     

    while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; // // Index 0 and 1 contains respectively the width and the height of the image. // $width_text = SUBCATEGORY_IMAGE_WIDTH; $height_text = SUBCATEGORY_IMAGE_HEIGHT; if ( $image_size = @getimagesize(DIR_WS_IMAGES . $category['categories_image'] ) ) { $scale_factor = 0.5; // sample scale factor - alter to suit $width_text = intval( $image_size[0] * $scale_factor ); $height_text = intval( $image_size[1] * $scale_factor ); } // echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], $width_text, $height_text) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } }
    Code like this lets you just scale the image size directly bypassing the image sizes set in the admin.
     
    Always backup before editing.
  2. Like
    germ got a reaction from Paul King in [contribution]Store Open/Closed Support Thread   
    My thoughts???
    :unsure:
     
    I think I didn't pay close enough attention when I was debugging the code!!!
    (w00t)
     
    I did some code changes and a lot more extensive debugging and uploaded a new package.
     
    The code is now "language compliant" (as far as I can tell with the english/spanish languages installed on my test platform) and it won't repeat the days on the "Store Closed" page if you have multiple open/closed times for a single day. And if you don't have any YEARLY_DAYS_FILE references to that are entirely omitted on the "Store Closed" page.
     
    As far as your comment:
     
    "Happy to have an static file with the opening times on personally but it may not suit others."
     
    If that means you'd rather have an "admin interface" rather than data in text files, don't hold your breath.
     
    The contribution has, shall we say, "limited application" ( I knew that when I wrote it ) so developing an interface in the admin really didn't seem like an effort that would reap a lot of benefits. I have other endeavors I'd rather devote the time to.
     
    If you mean something else you'll have to elaborate.
  3. Like
    germ got a reaction from DerekNice in Adding/Positioning Logo in Template   
    To get it to the top of the page finde this code in the template_bottom:
     

    <div id="top_background"></div>
    Change it to this:
     

    <div id="top_background"> *** DELETE THIS LINE AND PUT ALL THE LOGO CODE YOU POSTED HERE *** </div>
    To position it horizontally find this code in the stylesheet_freeoscommerce_009.css file
     

    div#top_background { z-index: 2; position: absolute; top: 0px; width: 100%; height: 386px; background: url(images/freeoscommerce_009/top_background.jpg) top center no-repeat; }
    Change it to this:
     

    div#top_background { z-index: 2; position: absolute; top: 0px; left: 665px; /* added this line - adjust to suit */ width: 100%; height: 386px; background: url(images/freeoscommerce_009/top_background.jpg) top center no-repeat; }
    Sometimes after changing the stylesheet in order to see any change you have to hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet.
  4. Like
    germ got a reaction from aftabn10 in Contribution Issue   
    There's nothing wrong with that file.
     
    I put it on my WAMP server and get no errors.
     
    When you downloaded the contribution did you also download the "bug fix" (a newer version of admin/extra_info_pages.php)?
    :unsure:
     
    It's either that, the install directions are incorrect, or you did something you shouldn't have when installing it.
  5. Like
    germ got a reaction from ColeKelly in ULTIMATE Seo Urls 5 - by FWR Media   
    Your code has a syntax error ( a missing ")" )
     
    Try this:
     

    <tr> <td align="right" class="main">' . tep_draw_form('filter', tep_href_link( FILENAME_DEFAULT ), 'get' ) . '<b>'.TEXT_SHOW . '</b>  ';
  6. Like
    germ got a reaction from BeckyLiu in function ereg index   
    Visit the link below:
     
    How to Secure Your Site
     
    Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable.
     
    It's easier to do a few security fixes now than to clean up a hacked store later.
     
    And if you don't secure the admin your shop will be hacked.
     
    It's just a question of when...Today, tomorrow, next week, next month... Take your pick
     
    They always are.
    :'(
  7. Like
    germ got a reaction from slendertonebelt in I can't get customer's email address from contact us function   
    Change this:
     

    tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);
    To this:
     

    $enquiry = 'From: ' . $name . "\n" . 'Email Address: ' . $email_address . "\n" . $enquiry; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);
  8. Like
    germ got a reaction from dcowguy in blank or error page after STS install   
    I'm fairly certain STS isn't compatible with 2.3.1
     
    If I'm wrong, someone please correct me.
    :blush:
  9. Like
    germ got a reaction from omihack in Template customization   
    Folder permissions should not be higher that 755.
     
    The only folder I saw higher than that was the one I told you about.
     
    If you examine the HTML source closely you'll discvover that all the green parts you want to change are images.
    :blush:
  10. Like
    germ got a reaction from omihack in Template customization   
    Admin secured.
    :thumbsup:
     
    The only other item I saw was the permissions on the /heaven/images folder.
     
    They were 777.
     
    That will get you hacked as fast as a leaky admin.
     
    They shouldn't be higher than 755.
  11. Like
    germ got a reaction from omihack in Template customization   
    More importantly....
     
    Visit the link below:
     
    How to Secure Your Site
     
    Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable.
     
    It's easier to do a few security fixes now than to clean up a hacked store later.
     
    And if you don't secure the admin your shop will be hacked.
     
    It's just a question of when...
    :o
  12. Like
    germ got a reaction from omihack in Template customization   
    Your admin is still a hack just waiting to happen....
    :huh:
     
    If you don't secure it, it will.
     
    Maybe tomorrow, next week, or next month - it's just a question of when will the hack bots find your site.
  13. Like
    germ got a reaction from dirtyimpreza in Extra Images 1.6.1 Not showing Enlarged Images   
    Go over the install directions again.
     
    Looks like you're missing a define for FILENAME_POPUP_EXTRA_IMAGES in a PHP file somewhere.
  14. Downvote
    germ reacted to Guest in Buttons for Dark Theme   
    Parker,
     
     
    This is a list of OSC button generators:
     
    http://www.google.ca/#hl=en&source=hp&q=oscommerce+button+generator&aq=0&aqi=g1g-sx1&aql=&oq=oscommerce+button+gen&gs_rfai=&fp=532402f01ea7247a
     
     
    Chris
  15. Like
    germ reacted to vn412 in affiliates revenue sharing   
    I have problem in revenue sharing process in orders. We are 2 partners A and B and unknown no. of affiliates sites . There are three cases to distribute revenue generated after product shopping.
     
    First case is
    1)If a customer goes from link in A's Site to buy product, revenue sharing will be like:
    50% to A and 50% to B.
     
    Second case is:
    2)If a customer goes from link in B's Site to buy product, revenue sharing will be like:
    50% to A and 50% to B.
     
    Third Case is :
    3)If a customer goes from link in affiliate sites to buy product, revenue sharing will be like:
    50% to affiliate site and 25 % to A and 25% to B.
     
    Is this possible with oscommerce?
     
    Any help in this matter will be appreciated.
     
    Thanks in advance
  16. Like
    germ reacted to prince_66 in osc thumbs doesn't work no display images   
    hello everyone here ,
    i try to install oscthumbs by following joining instructions i care about the modified files for compare with winmerge it 'seems ok
    when i turn the on master switch button my pics are gone i try several times with unmodified settings in the admin menu and in following the manual
    i try to : modified the files phpThumb/cache/ to /phpThumb/cache/ no change
    i read all the topics about this but i don't find any help
    if someone would like to help meit's great
  17. Like
    germ reacted to wellgolly in Add Multi Products Checkbox v1.0   
    Hi,
     
    I added the addon "Add Multi Products Checkbox v1.0", it suits my store just right. The problem I am having is when I go to manufacturer product listings from the manufacturer box I get all the listing and they have the quanity input box but not the "add to cart button" at the bottom like in products listings page. Can this be added to the manufacturer listing page?
     
    products listings page: http://www.austexgrocer.com/index.php?cPath=21_52_117&osCsid=370140a84b15df813f1e2a809aedb7b3
     
    manufacturer listing page: http://www.austexgrocer.com/index.php?manufacturers_id=21&osCsid=370140a84b15df813f1e2a809aedb7b3
     
    Do you see what I mean?
     
    Thanks
    Will
  18. Like
    germ reacted to wellgolly in Add Multi Products Checkbox v1.0   
  19. Like
    germ reacted to wellgolly in Listing and Shopping Cart Look   
    Do me a favor Sam, in the future when I post for help just to get a standard listing look, please don't tell me to try your add on, it has more drama then a soap opera. This is a insult having to add addon after addon, and all its doing is screwing up my store. Not to mention the lack of support.
  20. Like
    germ reacted to wellgolly in Add Multi Products Checkbox v1.0   
    Is there any support here??? Simple Question I asked. Is there a fix or there isn't.
  21. Like
    germ reacted to JZM in CCGV Help   
    Hey,
     
    I have installed CCGV for a client and get the following error on checkout_payment.php
     
    Fatal error: Call to undefined method order_total::clear_posts() in /var/www/Bee/catalog/checkout_payment.php on line 87
     

    require(DIR_WS_CLASSES . 'order.php'); $order = new order; // Start - CREDIT CLASS Gift Voucher Contribution require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_total_modules->clear_posts(); // Line 87 // End - CREDIT CLASS Gift Voucher Contribution Also I cannot find order.php any ideas?
  22. Like
    germ reacted to shanehamelin in Coupon Codes Question, IMPORTANT DEADLINE!   
    Ok, My store will be featured in a magazine next month.
    They want to offer the reads a "DISCOUNT CODE" for our store..
     
    Whats the easiest Discount Code mode I could use for checkout?
     
    The porblem is, I need to give them a "CODE" within the next
    20 minutes.. I want to use "COUNTRYLINVING" to recieve a % off order
    and was wondering if a mod can do this?
     
    THANKS
    SHANE
  23. Like
    germ reacted to scorp in PostCode Anywhere with OSCommerce   
    I like the idea of this, and the but is this!!!! obviously the developer doesnt know what OSC stands for Open Source so why should we sign up for an account with him and pay money to use this addon, not very open source if you ask me. Is ANY ONE willing to work with me to get this working FOC like it should be? pvt me your interest.
     
    Im talking about UK Postcode Address Finder
     
  24. Like
    germ got a reaction from Jo100 in Paypal Module integrated   
    Click Me
  25. Like
    germ reacted to Guest in Simple Multi Image Add-on (Un-Limited) with FancyBox Popups   
    Well Obviously someone (not mentioning any names) didn't like my post. I am sorry if I hurt the contributors feelings because I stated my opinion on this contributions conflicts with other contributions. However, it is what it is, MY OPINION.
     
     
     
    Chris
×
×
  • Create New...