Jump to content

ecartz

♥Ambassador
  • Content count

    3,486
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by ecartz

  1. ecartz

    Header Tags SEO

    I just installed the latest version of the contribution, and there are two things that I would consider bugs. The first (and more serious) is that in admin/includes/functions/general.php, a tep_hide_session_id() function is added, but in a clean RC2a (just downloaded today), that function is already defined in admin/includes/functions/html_output.php. This causes an error about duplicate function definitions that breaks admin. Perhaps this function should only be added to MS2? Possibly in html_output.php rather than general.php (in case someone wants to upgrade MS2 to RC2a later). The second, less serious, perhaps purely pedantic, is that the following code (in the instructions, product_info.php, and index.php; for the RC2 files -- I didn't look at the MS2 files) should be <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> rather than <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> This will obviously not cause an issue for anyone who has header_tags.php installed correctly. However, if we're only worrying about the correct install case, why not make it simpler and just use (as a replacement for the above code) <?php require(DIR_WS_INCLUDES . 'header_tags.php'); ?> which is just as good in the correct install case and will throw an error for certain incorrect installs (rather than producing incorrect output).
  2. ecartz

    Image zoom

    The original code to display the image on the product info page looks like this: <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> The way that it works is that if users have javascript enabled in their browsers, it uses the first part in the script tags. If they do not have javascript running, it uses the second part (inside the noscript tags). So if you first try it by adding the code inside in the noscript tags, it won't work as javascript enabled browsers won't see it. If you take out the noscript tags but leave the script block, then the image will show once for the script block (if javascript is enabled) and once for your code. If you replace both the script and the noscript blocks, it should have the effect that you want. However, it won't show a popup image if the browser does not have javascript enabled.
  3. ecartz

    Image zoom

    <a href="<?php echo DIR_WS_IMAGES . $product_info['products_image']; ?>" class="jqzoom" style="" title="<?php echo addslashes($product_info['products_name']); ?>"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'style="border: 1px solid #666;"'); ?><br /><?php echo TEXT_CLICK_TO_ENLARGE; ?> </a><select style="position:absolute;left:400px;top:10px;"><option>sdsdsds</option></select> Note that the tep_image call should actually be to something other than your original image. It's designed to work with a small image.
  4. ecartz

    Per Item Shipping Price?

    Searching for "individual shipping" finds a number of results, including Individual Product Shipping Prices.
  5. ecartz

    In Desperate Need of Help

    Zone rate would do this in a standard install. For orders with high weight items, the high weight item will tend to dominate the shipping calculation. You might need to modify it to get the correct number of zones. You also may want to consider integrating your actual shipper. For example, UPS and FedEx have APIs where you can get an actual quote for shipping. If your shipper offers this, it would be better than trying to estimate what the shipper would charge.
  6. ecartz

    Show prices only after login.

    Searching for "price logged in" finds Prices for Logged-In Users Only among other results.
  7. Perhaps order ID? You might need to check the FedEx documentation to find out what they expect this field to have in it.
  8. I'm not sure what contribution you're using to add customers from admin, but to do this in create_account.php, you would find <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> and change to <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country', '223') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> where 223 is the country ID for the US, if I recall correctly. You should be able to do something similar in your admin file.
  9. Do thumbs work? The equivalent of your thumb code would be $xmlfile.="<large>\n"; $xmlfile.=tep_image(DIR_WS_IMAGES . $products['products_image']); $xmlfile.="</large>\n"; If that doesn't work, can you make the XML manually and give an example of how you want it to come out?
  10. ecartz

    After payment a link or code for download

    Super Download Shop
  11. ecartz

    Linkpoint Connect 2.0

    Sorry, I wasn't involved with the install when this was being tested, so I never tried to follow these instructions. It's not clear to me if this is necessary or not. If it is necessary, I think that the code should be (instead of what's shown): <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL', false), 'post', 'onsubmit="return check_form();"'); echo tep_hide_session_id(); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> Note that the echo statement moved.
  12. ecartz

    Custom Module Need Help!?!?!

    Check out the Option Types v2 contribution. It does not work exactly as you describe, but it has the same purpose.
  13. Searching the contributions area for "individual shipping" finds Individual Product Shipping Prices among others.
  14. Actually, the problem is that he has a template installed (all the tep_draw functions give it away). The proper section would be <table cellpadding="0" cellspacing="0" border="0" align="left" class="prod_info" style="border-right:13px solid #ffffff;border-left:0px solid #ffffff;"> <tr><td class="pic" align="center"> <br style="line-height:1px;"><br style="line-height:9px;"> <?php /* echo tep_draw_prod_top(); */?> <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, ' style="margin:0px 0px 0px 0px;"') . ''; ?>'); //--></script> <noscript> That might have the code that needs replaced (the javascript). Definitely back up before trying. George's hint about looking at a stock product_info is good. At the very least, you could find out what code you would normally replace.
  15. ecartz

    Utimate SEO Problems

    Did you do The error message suggests that you are missing that function. Note: that is from the 2.1 version of the contribution. If you are using a different version, the function might be different. You might get more help in the support thread for the contribution.
  16. ecartz

    Basic Template Structure 1.7

    Given the way that the BTS works, it is not really something you can install after installing other contributions. Specific instructions won't work, because they will be heavily dependent on what you have done already. Notionally, what you would do is to create a new store, install the BTS there and then port your contributions and data to the new store. Then replace the existing store with the new store. I find the BTS convenient for the specific problem of creating a brand new store with a non-standard template. Or creating a demo store with multiple templates. If you just want to modify the template of a running store, you might find the Simple Template System (STS) easier to install. Or just modify the templates of each file manually -- that's probably easier than installing the BTS in that case. Sorry I can't be of more help.
  17. ecartz

    Not able to change my shipping table

    NOT ABLE TO CHANGE YOUR SHIPPING TABLE WITH VERSION 1.27 OF TABLE.PHP? HAVE YOU LOOKED IN SOURCE CONTROL FOR A REPLACEMENT? TRY http://svn.oscommerce.com/fisheye/browse/o...table.php?r=477 (blue arrow next to the revision 477 is a download link). Is that what you wanted?
  18. ecartz

    Inventory Contributions?

    You would normally get that information from your vendor and use something like Easy Populate to upload it. Incidentally, the Contribution General Support forum is for contributions that don't fit the other categories.
  19. ecartz

    Ultimate SEO URLs v3.0 Features

    For each file you want to change, add a line like RewriteRule ^index.html$ index.php to the .htaccess file and see if that does what you want.
  20. ecartz

    Easy Populate $DOCUMENT_ROOT won't work

    You might get a faster response if you post in the Easy Populate support thread. There are people who watch that thread who might not see your post here.
  21. ecartz

    USPS Priority Mail Flat Rate Shipping

    What's on line 111 of usps.php? Preferably with some context (say lines 100-115).
  22. ecartz

    Table rate shipping

    Try admin >> Locations/Taxes >> Tax Zones. Even if you don't want to do anything with taxes, that's still the right place to add a zone show it appears in the table rate shipping drop down.
  23. ecartz

    Need shipping modules for FEDEX and UPS

    Curl still works. It's more likely that UPS or FedEx have changed their configuration. Have you checked out the UPS XML Rates and Services module? It has a recent fix for a change in the UPS handling of requests. Similarly, there is a Fedex Rate service WSDL module that is fairly recent. There may be other contributions that are better. Those are just two that I found with recent releases. 3.0 will be even worse off than 2.2 here. It's unlikely that anyone has updated shipping modules to work on 3.0. We're well short of it being time to upgrade to 3.0 to fix things. Perhaps when a Beta is released?
  24. ecartz

    [Contribution] - Search Box Anywhere

    You have products_description pd in the query twice. Remove the second one and the two after it: ", products_description pd, categories c, products_to_categories p2c". If you can't figure it out from the code, you'll need to post the parts that refer to any of those three tables.
  25. ecartz

    Parse error: parse error, unexpected T_CASE...

    It's this section: p.products_hide_from_groups from, p.products_qty_blocks should be p.products_hide_from_groups, p.products_qty_blocks without the extraneous from.
×