Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

desiredin

Members
  • Posts

    275
  • Joined

  • Last visited

Posts posted by desiredin

  1. That is essentially all there is to it. And it's as uncomplicated as a contribution can get. All you're doing is calling the javascript in the page, and adding a relationship to the tag.

     

    Do you have scripting disabled in your browser? If so, it will treat the link as a normal href.

     

    Try this test html file. Just load it in your root directory.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Shadowbox Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="src/css/shadowbox.css">
    <script type="text/javascript" src="src/js/lib/yui-utilities.js"></script>
    <script type="text/javascript" src="src/js/adapter/shadowbox-yui.js"></script>
    <script type="text/javascript" src="src/js/shadowbox.js"></script>
    <script type="text/javascript">
    
    window.onload = function(){
    
    Shadowbox.init();
    };
    </script>
    
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000">
    <a rel="shadowbox" href="http://www.google.com">OPEN GOOGLE IN SHADOWBOX </a> 
    </body>
    </html>

  2. I haven't been able to figure it out at all.

    When my affiliate goes through to "Build Category Link" from the column box, and selects a category to build a link for, the link it made up, but no image/banner shows up. Just the missing image box.

     

    Is anyone else having this issue?

     

    What I did notice however, is that this option was ommited from the main Affiliate Program: Affiliate Links page (click Affiliate Banners / Links from the Affiliate Column Box).

     

    Anyone know why this was omitted from that page?

    Anyone having the same problem with the category image, and if so, why?

     

    I tried tracking it down myself, but came up empty. Not even getting a file not found error in my server logs. I'm stumpted. I have tried including the oscommerce category image in quite a number of obvious directories to see if that is looking for that one, and not a seperate banner. Tried linking a banner to a category through admin, but it isn't bringing that one up. Thtat category banner only shows up when listing the banners. Not when the affiliate trys making the category banner himself.

     

    I am thinking this build category link is obsolete and should just be removed from the column box altogether? Though I would like to at least get it working anyhow.

  3. something really strange...i installed this contrib...on a blank osc and it worked perfectly

    now i installed it on my modified shop and the affiliate can't see the images, the banners i mean...any ideA?

     

    I am having a similar issue. Banners I create are fine. However, under the affiliate side, when they click build banner (not pre-made banners), the banners for the categories are not being seen. I imagine it is trying to take the default image from the category, so it's most likely not looking in the right place. When I have time I'll try to find out where it's looking for it.

  4. Still working on those other things. Actually singled out a very helpfull member of the community (Germ) with a PM asking for help with it. I still can't get it figured out (applying the ref to some tep_hrefs). Hopefully he'll have time though he probably has a ton of requests just like mine. Heh.

     

    At any rate, for those of you who noticed that when the DOCTYPE has been specified STRICT, the tables are padded with extra space.... It's a table issue. IE doesn't have the problem as it doesn't follow proper rules.

     

    I have found that by specifying

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     

    Instead of the other one, everything looks perfect . And Shadowbox appears to work fine too.

    Tested IE7, Firefox, Safari, and Opera.

     

    It apparantly was only supposed to work strict, but by changing it to XHTML, Shadowbox appears fully functional. More testing needs to be done as I change over all my DOCTYPES this week, and give everything a once-over. I'll keep everyone updated.

  5. For those interested, I have included a mod to the contribution that will instruct you to move your standard (not logged in) affilate box links to the footer. Where you will have a login item that will change to logout once your affiliate is logged in. It will also have the affiliate box appear in the column once the affiliate is logged in.

     

    I didn't want column space taken up by an affiliate program for my regular customers. Not very professional, nor polite. Also has optional instructions to move the Information Box items down there (footer) as well as I don't beleive that space needs to be used for it either.

     

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

  6. PS - Here's a feature request. How about adding the opposite notification.

     

    I have been thinking aout that myself. Viewing the code, I think it may be possible to

    change the variable name of $get_1_free_query to something unique, reverse the order in which the query is made, and that should reverse the order the text is called. Alternatively, you could add another text variable and have something different altogether.

     

    Took a quick stab at it, but not quite getting everything figured out. Heh. Just kind of stabbing in the dark.

  7. Hello

     

    I tested this on a blank installation of OSC and it works like a charm. Now i want to add it to my customized shop.

    I have the SEO urls - will that be a problem for the product id?

    Also i don't have shipping because i sell templates...so instead of delivered i have "link sent to your account"..will that count as delivered?

    Let me know...thanks

     

    As long as your products are still viewable by their origionally designed method (product_info.php?product_id) it should work no problem.

     

    Here is a link code of a link built. http://www.visceralmagic.com/product_info....ate_banner_id=1

     

    As for the status setting? Yes. I am setting up a download shop as well. In the admin section you set the minimum order status that you want.

  8. First problem, not sure if problem but needs to be confirmed

     

    When the main product is removed from the cart, the freebie remains. In all fairness it does put the correct price on it, but shouldn't it be linked to the main product and also removed? [Puts on client thinking cap]Can just see a few clients adding a main product to the cart, later remove it and then find out that when they confirmed their order and obviously didn't check their cart, that they got billed for extra items which they did not want...

     

    I am having a similar issue on the latest version.

    When you have 1 G1F enabled product:

    Works great

     

    When you have 1 G1F enabled product, and 1 regular product:

    Works great

     

    When you have 2 G1F enabled products, and the 2nd G1F product is removed from cart, it's free product is removed as well, BUT the free product of the first G1F is added to the cart again, with it's full price.

     

    Is anyone else experiencing this problem?

  9. I am using a short description contribution myself, and would like to know how to get it working with this contribution. I have modified the new product_listing_col.php with the changes required for the origional product_listing.php but the changes are not making a difference in the display. So I am thinking that the code is obviously being skipped over. Heh.

     

    This is the contribution I am using:

    Product Description 1.5

    http://www.oscommerce.com/community/contributions,1743

     

    Here are the changes/steps I needed to make in the origional product_listing.php file, and perhaps someone can tell me where best to put them in the new file.

    [ FIND, 85 ]

    	$cur_row = sizeof($list_box_contents) - 1;

    [ ADD AFTER ]

      $has_description = false;

    [ FIND, 100 ]

    			$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';
    		}

    [ ADD AFTER ]

    			 if (PRODUCT_LIST_DESCRIPTION && $listing['products_description'] && PRODUCT_LIST_DESCRIPTION_MAX_LENGTH)
    		$lc_text .= '<br><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td class="productDesc">' . tep_flatten_product_description($listing['products_description'],  ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . TEXT_MORE . '</a>') . '</td></tr></table>';

  10. Jim, I checked it out, and it isn't working the way I would expect it to.

     

    define('TEXT_GET_1_FREE_PROMOTION', '<b>Special limited offer: Buy %u %s and get %u %s free!</b>');

    Gives me: Special limited offer: Buy 1 There's Something About Mary and get 1 You've Got Mail free!

     

    I figured that by leaving ou the %U I would get what I had wanted. Both titles, and no quantities.

    define('TEXT_GET_1_FREE_PROMOTION', '<b>Special limited offer: Buy %s and get %s free!</b>');

    Gives me: Special limited offer: Buy 1 and get There's Something About Mary free!

     

    Just for the heck of it, I tried:

    define('TEXT_GET_1_FREE_PROMOTION', '<b>Special limited offer: Buy %u and get %u free!</b>');

    Gives me: Special limited offer: Buy 1 and get 0 free!

     

    The origional text works the way it should, and as for the rest of it....my undestanding, is that I do not understand. ;)

  11. I have a question about the promotional text on product_info.php. Is there an easy way to change the formatting/variables. Rather than display qty/product name and get qty/product name, I want only the Product name and get product name. As my shop is downloads only, quantity is irrelevant and due to the way the variables are being used (%u %s), I am having a heck of a time doing that.

     

    I can always drop the text and put it in my product description, but automatic is always more effecient, and less chance of missing the get 1 free on a product because it is so convenient to just click on the product to see the generated text to it know it is working without having to add it to your cart. Heh.

  12. Here's a little something that may interest those of you whom are interested in the Shadowbox contribution...

    There's a guy out there who has created code to allow transparent PNGs to work beautifully with browsers that do not support it. Should allow you to better stick with your theme of Shadowbox and transparencies.

    http://koivi.com/ie-png-transparency/

     

    His little php code works like magic. You basically wrap your files between his code to handle the output for browsers, and it will allow your transparent PNGs to be automatically rendered in a method other browsers will support.

     

    You basically put his replacePngTags.php in your root directory, his spacer.png in your images directory, and wrap the contents of your php file with his php code.

     

    Like this (for index.php):

    <?php ob_start(); ?>

    <?php (this is the first line of the origional index.php)

    THIS IS THE ENTIRE CONTENTS BETWEEN THE FIRST AND LAST LINE

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> (this is the last line in your origional index.php)

    <?php

    include_once 'replacePngTags.php';

    echo replacePngTags(ob_get_clean());

    ?>

     

    Too easy eh?

    You can see what I've started by viewing my index.php.

    http://www.visceralmagic.com/index.php

     

    I've removed the background of my tables to allow the background to show through. Also stuck my background in a <div> container on the page. I was using a different method for my background to have a gradient, that blended with the background. But plans have changed, and I haven't gotten around to changing it.

     

    At any rate, I have used transparent PNGs for my 2 logo images. If you go to other pages not using the index.php, it will (for the time being) not show as I still have to edit those files with the "magic PNG" code. Heh. So much to do.......It never ends.......

  13. Anyways congrats to all that made this contribution possible im sure theirs more the script can do once working in osc.

    I'm currently trying to make a Shadowbox login for OSC. Just needing to get the regular login script links to use onclick. Which I have no idea about. Heh. I want the shadowbox to close once you click the login or create account button so it opens in the parent (non shadowbox underneath the shadowbox popup) window.

     

    This would work using the Shadowbox.close() function.

     

    But I am having a hard time figuring out how to get it working with the tep_href link. May try hard-coding the form but not sure if the username/password will pass through. As it stands, with a modified login (stripped of headers and columns, etc) it works fine, but the parent page has to be manually refreshed, and the shadowbox manually closed.

     

    If all else fails, I will try using someone else's work as an example. But there is currently little to go on as Shadowbox is so new.

     

    I've asked the community for a little help in this thread:

    http://www.oscommerce.com/forums/index.php?showtopic=299077

     

    I would also like a Shopping Cart shadowbox to view the contents of the shopping cart, with a checkout button on there. So they can view shopping cart from anywhere, without actually having to leave their page.

  14. One the fourth instance of the code that calls the text to enlarge, delete "');" from the end and that will solve the problem.

     

    I did notice however that the hover text for the product name with Javascript turned off still has the addslahes. So instead of You've Got Mail, you're getting You\'ve Got Mail.

     

    So we need to remove those in the same line. So it looks like:

    <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="shadowbox" title="'. ($product_info['products_name']).'" >' . 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>'; ?>

     

    Remember, fourth line that has "TEXT_CLICK_TO_ENLARGE" in it.

  15. Just uploaded a brand-new video so it wouldn't be saved in my cache (in case there was a download issue for the video), and I'm getting audio right off the bat. Can't explain why it isn't working for you.

     

    As for the extra ');, seems to be coming from the code when Active Scripting / Javascript is disabled. Doesn't seem to affect function however. But I'll see if I can see why it is doing that. As I mentioned in the install doc, it's Tractormad's code (beyond my own skills) but I'll do what I can. Heh.

  16. secondly the sound only works on the secound attempt when using ie7

     

    I haven't been experiencing that at all. Do you mean the first attempt per visit, or the first attempt on the very first visit to the site/very first attempt at downloding the video?

     

    As for having Javascript disabled, I wouldn't worry about a warning message as it will just load without the Shadowbox. So your images will still come up and videos will still come up. Just in the standard way though.

     

    But most people have it enabled these days. Very uncommom for it to be disabled with all of the media-rich content found on the majority of sites.

  17. Works like a charm. All downloads working beautifully for about 10 test products I created, and played around with. The Affiliate contribution works as it should with it as well. Not sure where it was getting it's pricing from to tally up affiliate commisions, but it's obviously coming from the order total, and not from any product pricing. Didn't expect anything other than, but I have to check these things. Heh.

     

    Perhaps down the line, it might be posible to include an option for a cascade effect / "daisy-chain" for the free products. Figured for people with albums, of video chapters a seperate product could be created for each chapter, so when you load the first, gives the second product for free, which in turn gives the third product for free, etc so each chapter/song becomes a seperate downloadable file. As opposed to a single big file. Just a thought.

×
×
  • Create New...