Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

altoid

♥Ambassador
  • Content count

    1,571
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by altoid


  1. Hello! I know this topic has been discussed ad nauseum, but I just need some direction. I am using the latest version of oscommerce out the box and havent added any new contributions or anything....my question is: I'd like to get the Item Description to show up in Paypal after a customer purchase. That's it. I have seen so many contributions, I haven't the slightest clue which one to use. Can someone point me in the right direction? Thanks in advance! =)

     

    i am using this one:

     

    http://addons.oscommerce.com/info/6783

     

    on 2.3.3 shops

     

    works fine


  2. html validation issue with qt pro - tip on where to find the source

     

    when running the w3c markup validation service i was getting validation errors that had to do with the available options drop down box for product listings. in my case the source of the errors was coming from two files, pad_base and pad_multiple_dropdowns, both located in catalog/includes/classes.

     

    if you are having an html validation issue as per above, take a look there for the source. the issues is how single and double quotes are situated in the code itself.

     

    modified files attached

     

     

     

     

    disclaimer...read my signature


  3.  <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image'], '', 'NONSSL', false) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, "hspace='5' vspace='5'") . '</a>'; ?>
    

     

    Just the comas: "hspace='5' vspace='5'".

     

    Regards,

    Gergely

     

    This took care of my short tag error when running w3c validator...thanks!


  4. Now my question is what exactly are these? Do I need to do 2 seperate queries? I kinda like to know I am not going to destroy my database even though I took backups. I just don't want to get into the position of trying to fix something that I am not 100% sure I can fix.

     

    Looks like you are working on the same add on I am.

     

    You run those queries in php My Admin, which you should be able to access from the control panel on the web host where your site is. If you are not sure, contact your host support about how to get there.

     

    I'd read a little about that before you do it. It's not that hard, but first time through, it's all new and unfamiliar.

     

    Basically in your control panel you interact with your database with php my admin, in php my admin, there's a place to run queries. You paste that what you put above in the box there, click run and there you go.

     

    But again, read up on the topic a bit first, it's a skill you'll use time and time again.

     

    and always...backup like you said just in case.

     

    good luck


  5. Hi and thanks for the feedback.

     

    Yes the multiple images have no alt tag and the reasons for it are that the standard product_info multiple images have no alt tag and I didn't think to change it.

     

    Now that I did try to change it bxGallery breaks showing a link in an unfortunate place, which is why I imagine the osC team left it out in the first place :)

     

    OK, as Bing places this as a "low" category issue, I'll be content to live with it as is. Not that I'd have much option given I couldn't figure out what to do about it anyway.... :).

     

    thanks for the follow up


  6. Rob, just a note of appreciation for this add on. I installed the latest and in particular appreciate the explanation you provided in the 2_3_1_product_info.htm document concerning image scaling. It helped me understand what's going on. for my shop the image width works better with a 200 setting, it's good to have the control.

     

    I presume it's something to do with bxGallery, but with multiple images you lose the alt attribute apparently. Single images have ALT, multiple lose it for some reason.

     

    May not be a big deal; I only caught that in Bing Webmaster tools that flagged out what they call "non-compliant".

     

    Here's what they say:

     

    SEO Suggestion The <img> tag does not have an ALT attribute defined

    SEO Explanation As a general rule, search engines do not interpret the content of image files. The text provided in the <img alt> attribute enables the site owner to provide relevant information to the search engine and to the end user. Alt text is helpful to end users if they have images disabled or if the image does not properly load. In addition, the Alt text is utilized by screen readers. Make sure that your Alt text is descriptive and accurately reflects what the image represents and supports the content on the page.

    Recommended Action Use the <img alt> attribute to write descriptive content for the image: <img source="pic.gif" alt="Accurate and descriptive keyword text that represents the image."</img>.

     

    Just thought I'd mention that in case you think it's something to be addressed.

     

    Thanks


  7. I'll check into this with my host. I've not used a design company but I wouldn't be surprised this file is there because of some of the design support they offer. Or something like that. I'll get back with what I find out and see if what you recommended takes care of this.

     

    Thanks

     

    well that went more quickly than i expected...here's what the host support guy says about that file...

     

     

    The file is a session file created by the FastCGI software.

    on our VPS accounts we recommend FastCGi, coupled with APC. APC is a caching/snapshot software and FastCGI is a faster handler of CGI/Perl files.

    They may update continually, delete and recreate (creating snapshots of the website).

    I have confirmed that they are a part of APC's snapshot/caching functions.

    APC and FastCGI integrate with PHP to cache the site and improve performance.

     

     

    So the support guy recommends not doing anything with it as per above. Which I guess is the best thing to do.

     

    Interesting that running Site Monitor on 5.3 picks this up but doesn't when running 5.2

     

    Would it be worth considering code in Site Monitor to ignore this file? Right now the only way I think I could avoid it is to exclude all my "admin" folders and files consider this is showing to reside right under the admin side of things.


  8. According to http://filext @ com/file-extension/SEM, it is a file used by a design company. If you don't need it for your site, it should be deleted. If possible, out of curiosity, you could copy/rename some common file, like privacy.php, to privacy.sem to see if it is the filetype that is causing a failure.

     

    I'll check into this with my host. I've not used a design company but I wouldn't be surprised this file is there because of some of the design support they offer. Or something like that. I'll get back with what I find out and see if what you recommended takes care of this.

     

    Thanks


  9. I haven't seen a failure like that before so I don't have an answer for it. But you might want to look at the entry for that file in the reference file. Maybe something is causing it to be recorded incorrectly which in turns causes the script to fail.

     

    Here's what's in the reference file:

     

    /home/myname/public_html/myshopsadmin/session_mm_cgi-fcgi503.sem,0,1342142476,600

     

    What is that file anyway, I don't see it browsing the shop via my ftp client or the cPanel file manager?


  10. - In the sitemonitor_functions.php file, find mktime and change it to @mktime.

     

    Jack, the change to @mktime took care of that warning generated when running php v 5.3.

     

    Another thing I notice when running the same process in php v 5.3.13, I am getting this

     

    No new files found...

    No deleted files found...

    No size differences found...

    Time Mismatch on myshopsadmin/session_mm_cgi-fcgi503.sem Last Changed on Friday, 13 Jul 2012 01:19:34 GMT

    No permissions mismatches found...

     

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Sitemonitor (0) ran on July 12, 2012, 9:19 pm

    Total mismatches found were 1

    Total files being monitored is 2537

    Email sent to shop owner.

     

    When I delete the reference file, this file appears every time, with an updated time mismatch.

     

    This only occurs with php 5.3; toggling back to 5.2, this output does not occur.

     

    Thanks


  11. The site wasn't processing thumbs with that coding. I'd get no images at all as I clicked through the site. I switched to:

     

     

    <FilesMatch "\.(php([0-9]|s)?|s?p?html|cgi|pl|exe)$">

    Order Deny,Allow

    Deny from all

    </FilesMatch>

     

    the thumbs process then again

     

    FYI on that


  12. Jack, in a 2.3.1 shop in Sitemonitor V3.2>Admin>Manually Execute Sitemonitor, after clicking the update button I get this:

     

     

    Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/myname/public_html/myshopsadmin/includes/functions/sitemonitor_functions.php on line 296

     

    This only occur with php 5.3.13; when I toggle the shop over to php version 5.2 the warning is not there.

     

    I have this:

     

    // set default store time zone

     

    ini_set('date.timezone', 'America/New_York');

     

    in the shops application_top.php file.

     

    Any ideas on this?

     

    Thanks


  13. The individual products names are not passed to PayPal. Only the store name. Is there a way to fix this?

     

    There are some mods folks have come up with for what you want. Either search support on this site, or google it, including the word oscommerce in the search terms.


  14. Rob, my /public_html/includes/modules/kiss_image_thumbnailer/thumbs/ is working with 0755 permissions level on my host.

     

    What do you think about adding a appropriately coded .htaccess file in there similar to what should be in the /public_html/images/ folder for security purposes?

     

    Thanks


  15. Has anyone experienced the kind of problem I'm having? I'm desperate to find a solution as this is the only thing keeping my site from going live and the site owner is growing very impatient! I've been through it all a few times, and I can't find a reason that the extra 48 oz is being added to every product... can anyone help??

     

    Thanks,

    Brad

     

    in admin>configuration>shipping/packaging what's the package tare weight?


  16. After updating a shops php 5.2.* to php version 5.3.13 I am getting these errors pertaining to xsell after doing a product edit:

     

     

    Warning: Invalid argument supplied for foreach() in /home/myname/public_html/myshopsadmin/includes/functions/general.php on line 1292

     

    Warning: Cannot modify header information - headers already sent by (output started at /home/myname/public_html/myshopsadmin/includes/functions/general.php:1292) in /home/myname/public_html/myshopsadmin/includes/functions/general.php on line 65

     

    I suspect it has something to do with this in the admins general.php as follows:

     

    function tep_reset_cache_block($cache_block) {
     global $cache_blocks;
    
     $pid = '*';
     if ($cache_block == 'xsell_products') {
      $pid = '';
    if (isset($_GET['add_related_product_ID']) ) {
     $pid =  $_GET['add_related_product_ID'];
    }
    if ( !$pid ) $pid = '*';
     }
     for ($i=0, $n=sizeof($cache_blocks); $i<$n; $i++) {
    if ($cache_blocks[$i]['code'] == $cache_block) {
      $glob_pattern = preg_replace('#-language.+$#', '-*', $cache_blocks[$i]['file']);
      foreach ( glob(DIR_FS_CACHE . $glob_pattern . '.cache' . $pid) as $cache_file ) {
    	 @unlink($cache_file);
      }
      break;
    }
     }
    }
    

     

    Specifically around here?

     

      $glob_pattern = preg_replace('#-language.+$#', '-*', $cache_blocks[$i]['file']); <--line 1291 in general.php
      foreach ( glob(DIR_FS_CACHE . $glob_pattern . '.cache' . $pid) as $cache_file ) {  <--line 1292 in general.php
    

     

    with the preg_replace part. Just guessing. Any ideas?


  17. Thanks for checking that out Jack. I have a idea what might be causing this now. Thanks

     

    Jack, I posted a new thread on this matter here, but I wanted to mention that I do get alt text if I have just one image, but with multiple images on a product, I lose the alt text in the 2.3.1 shops.


  18. The Header Tags changes for the product page doesn't change the image display code. I checked my 2.3 installation here though and the image as the alt tag filled in so it would seem to be something related to your shop.

     

    Thanks for checking that out Jack. I have a idea what might be causing this now. Thanks


  19. Jack, I'm not sure if Headtag SEO deals with this but I'll ask and see where it goes.

     

    I was working with Bing Webmaster tools and saw there what they call a "seo issue" in that my product listings images don't have have the product image alt text attribute.

     

    To clarify, this is on the page where the product is displayed wwwdotmyshopdotcom/a-very-nice-product.html. This occurrs for 2.3.1 shops, the 2.2 level shops are fine. If it's not Header Tags SEO, I'll look elsewhere. Thanks


  20. I have been playing with the includes.modules/xsell_products.php to try to get the look the same as the new prroducts module on 2.3.1.The below code works fine, but i would like others to see if i have misssed anything.

     

     

    Steve, mine differs a bit, attached.

     

    I did some work with cache in the file, as well, to get the box to display like the rest of the boxes in the shop I did some tweaking at the end as so:

     

    <div class="ui-widget infoBoxContainer">
       <div class="ui-widget-header ui-corner-top infoBoxHeading">
      <span><?php echo TEXT_XSELL_PRODUCTS; ?></span>
       </div>
       <?php echo $xsell_prods_content; ?>
     </div>
    

     

    I also see my query name differs, a result of working through this back when,I can't recall why I came up with that.

     

    Forgive the residual comment out lines, that's left over from when i was futzing with the code to get things cleaned up and testing.

×