Jump to content

puggybelle

Members
  • Content count

    1,100
  • Joined

  • Last visited

Everything posted by puggybelle

  1. 2.3.4.1 CE and PHP 7.0 here Playing with the different options to set up links in the Social Bookmarks module in Admin. Installing Facebook Like results in a large chunk of white space appearing in the infobox. The code in catalog/includes/modules/social_bookmarks/sb_facebook_like.php looks like this: return '<iframe src="//www.facebook.com/plugins/like.php?href=' . urlencode(tep_href_link('product_info.php', 'products_id=' . $_GET['products_id'], 'NONSSL', false)) . '&amp;layout=' . $style . '&amp;show_faces=' . $faces . '&amp;width=' . $width . '&amp;action=' . $action . '&amp;colorscheme=' . $scheme . '&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:' . $width . 'px; height:35px;" allowTransparency="true"></iframe>'; The url that the code is trying to connect to is: www.facebook.com/plugins/like.php Going to that manually results in a white screen. I suppose that url is no longer valid for Facebook. ??? Anyone know what the replacement would be? - Andrea
  2. puggybelle

    Social Bookmarks code for Facebook Like not working

    Ignore my last post. I ended up copying and pasting the entire line you gave me and now it's working fine. Layout is screwy, but I'll play with that. The original file has that URL beginning with http: - interesting how that had to be stripped out in order to make it work. Thanks so much, Zahid! You're wonderful! - Andrea
  3. puggybelle

    Social Bookmarks code for Facebook Like not working

    I removed the http: from the beginning of the url and now it shows. Yay! When I click it, is it supposed to disappear? Or is it supposed to take me somewhere? The other social links open a new browser window. I'm not sure if it's really fixed or not - hope I'm making sense. - Andrea
  4. puggybelle

    Social Bookmarks code for Facebook Like not working

    I have no idea. Maybe? Maybe not? I do like to hack things up a bit to get what I want. The error logs are empty. When I view the page source, the code for Facebook Like is showing just fine. Just not inside my box! - Andrea
  5. puggybelle

    Social Bookmarks code for Facebook Like not working

    Without turning on Facebook Like, my box looks like this: After turning on Facebook Like, I get a chunk of white space where the like button should be appearing. See my problem? - Andrea
  6. puggybelle

    Social Bookmarks code for Facebook Like not working

    I traded out urls and still just end up with a chunk of white space where the Facebook Like button should be. Think I'll probably just let that one go...or check back to see if anyone has come up with a remedy. Thanks! - Andrea
  7. puggybelle

    Social Bookmarks code for Facebook Like not working

    There seems to be trouble with the Google mods, too. Apparently, Google abandoned ship on those. I see that Phoenix does not come with those two. However, the Facebook Like is still in Phoenix. I'm using Edge, I think. That's why I thought maybe someone had a fix for that, a replacement url for the code. I'll give it a play and see what I can come up with. - Andrea
  8. puggybelle

    Social Bookmarks code for Facebook Like not working

    Hi @JcMagpie I guess I should ask: what's the difference between the Facebook link that does work and the Facebook Like that doesn't work? I don't care to put buttons here, there and everywhere. I just wanted to add Facebook Like to my 'Share Product' infobox and be done with it. - Andrea
  9. puggybelle

    Social Bookmarks code for Facebook Like not working

    Hello @ArtcoInc I looked at that page prior to posting. First step is: 1. Choose URL or Page Pick the URL of a website or Facebook Page you want to use with the like button. -------------------------- I don't understand how to create a button for over 6,000 items. What would my URL be to create the button? https://www.mysite.com/???????????????? - Andrea
  10. 2.3.4.1 CE and PHP 7.0 I've been using the contribution for some time with no problem. However, I have been experimenting with linking products to more than one category and that's where I'm running into trouble with specials.php now. Any sale priced items that are linked to multiple categories are appearing multiple times when viewing the specials page. The culprit is the replacement of the listing sql in specials.php - looks like this: // BOF: Filter Specials by Category BSv1.0 $listing_sql = "select " . $select_column_list . " p.products_id, SUBSTRING_INDEX(pd.products_description, ' ', 20) as products_description, p.manufacturers_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_CATEGORIES . " c where p2c.categories_id = c.categories_id and p.products_status = '1' and p.products_quantity > 0 and p.products_id = p2c.products_id and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1'"; if ($categories_id > 0) $listing_sql .= " and p2c.categories_id in (" . tep_get_categories_ids($categories_id) . $categories_id . ")"; // EOF: Filter Specials by Category BSv1.0 Any way to modify this code and stop it from displaying the same item more than once? Currently, my specials page looks like this: The original listing sql in specials.php results in each item appearing only once. But, then I lose any category filtering the new one offers. Any help is appreciated! - Andrea
  11. Wonderful! Thank You so much, @raiwa - Andrea
  12. Perfect! Thank You so much! - Andrea
  13. Installed and playing with the contribution - 2.3.4.1 CE Edge and PHP 7.0 This is what I'm testing: $this->add_cat_to_cat(3,3,"%", 100); Which essentially means - buy one from category 3, get one from category 3 for free (100% off) If I put 10 items in my cart from category 3....5 of them are being discounted 100% and given for free. Buy One, Get One Free...over and over and over Is there a way to limit this to only one free item per cart? Sorry if this has been answered already. I rushed thru this thread and didn't see anything. - Andrea
  14. Mixed up ain't the half of it - this is what happens when I spend too long in one place. I had some issues to sort out in my user.css file - just needed to walk away and try another day. All is well now! Thank You for this wonderful add-on! - Andrea
  15. That works, thank you! Is there no way to have two separate button colors for Cart and Checkout? I tried changing the last one from 'primary' to 'success' with no luck. The colors remain identical. - Andrea
  16. Thanks, that one is working for me. However, I am unable to achieve any color changes in the buttons without affecting other buttons in the website. Any way to make those buttons like the Close button? <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> I'm playing around with it but the additional code involved is tripping me up. Other than that, I really like this add-on and fully intend to use it - Thanks! - Andrea
  17. Still trying to sort out my modal buttons - the colors. Discovered a problem with your cm_footer_modal_cart.php file Two instances where tep_href_link('product_info', needs to be changed to product_info.php Otherwise, the text and image links in the modal lead to a 404 page The newest template you uploaded is not working for me. I cannot close the modal box after it appears. The only way out of it is to click on the Shopping Cart or Checkout buttons. So, I'm back playing with the original template. That one functions fine for me. - Andrea
  18. Changing the buttons to 1 and 2 results in no colors on the modal buttons in any circumstance. Web inspector is recognizing those buttons in the modal as #btn3 and #btn4. What's happening in the product listing page is, for example, you have a category with ten products in it. When I use web inspector...every single one of those Buy Now buttons is being assigned a unique button number. Btn1, Btn2, Btn3, Btn4....all the way down the category thru number 10. After I add an item to my cart and close the modal, the color for the Buy Now buttons on items assigned btn3 and btn4 change to the color assigned in the modal template. It's very weird, but that's what is happening. - Andrea
  19. @JcMagpie - Thanks! That works when adding to the cart while viewing the actual product. Additionally, I had to put that code snippet in index.php and product_listing.php...and that kills the message there, as well. Not sure if there's more places to check, still looking around. Now I'm trying to figure out why the colors are changing on my Buy Now buttons after adding to the cart from a category. You have this in the template file: #btn3 { Background-color:blue!important; color:#fff; } #btn3:hover { Background-color:lightblue!important; color:red; } #btn4 { Background-color:green!important; color:#fff; } #btn4:hover { Background-color:lightgreen!important; color:red; } It's supposed to be applying those colors to the buttons in the Modal, but instead...it's applying them to my Buy Now buttons after adding something to the cart when viewing a category. The modal buttons are white. They only get those assigned colors when adding to the cart directly from the product_info page itself. - Andrea
  20. @JcMagpie - I installed this today - looks great! Just one issue.... Is there any way to stop the item-has-been-added-to-your-cart message from appearing? It's normally something I would only see on shopping_cart.php. Using the modal results in this message popping anywhere there's a Buy Now or Add To Cart button. The below is after using Buy Now browsing a category. Any way to get rid of it? - Andrea
  21. Am I the only one alarmed by the number of external links being used in osCommerce? Google, Cloudflare, Fontawesome, etc. I don't like this. Looks like my website is dependent on so many other websites in order to load and perform well. Does it have to be like this? Or is this normal by today's standards? One lousy server goes down and there goes your web pages. - Andrea
  22. Is no one making contributions for Edge or Frozen anymore? I just installed this and can confirm that it does not work in Edge. It will display something...but, definitely not what you expected! I know it was tested in Phoenix only...but I had to try. - Andrea
  23. Any chance you could make this a scrolling best sellers box? I used to have that in my old 2.2 site and liked that very much. - Andrea
  24. Every time I clear the cache on my PC, I can't access my online banking without jumping thru hoops to prove it's me. Entering the correct username and password is not enough, because since I cleared the cache...their software no longer recognizes the device I'm using and I have to request a text message with a code to enter before I can view my account again. It's a PITA. Does this forthcoming change apply only to those with merchant accounts?
  25. I had this old contribution working in my 2.2 MS2 site for years. Trying to clean it up and get it running in 2.3.4.1 CE with PHP 7.0 If you have any thumbnails missing from your images folder, it gives you a list of what is missing. Or comforts you with the news that all images are present. When browsing my live site the other evening, I stumbled on a product where the thumbnail in public_html/images got whacked somehow. That's why I'm trying to get this running now...to see what else might be missing. I've had to clean it up a bit, mostly cosmetic stuff, but...it's displaying a report of all items in the site, whether they have an image assigned or not. Like this: I'm hoping someone can take a look at this piece of code and maybe...you see something obvious? The contrib I downloaded is here. //Change this line if you keep your images stored in a strange directory. //Don't touch it unless you're having problems. $image_directory = DIR_FS_CATALOG . DIR_WS_IMAGES; /* ** Image Columns ** * If you have various image contributions installed and have more than one * image column in your database, add additional items to this array to include them. * For example, if you have UltraPics installed, the array would look like this: * $image_columns = array('products_image', * 'products_image_med', * 'products_image_lrg', * 'products_image_sm_1', * 'products_image_xl_1', * 'products_image_sm_2', * 'products_image_xl_2', * 'products_image_sm_3', * 'products_image_xl_3', * 'products_image_sm_4', * 'products_image_xl_4', * 'products_image_sm_5', * 'products_image_xl_5', * 'products_image_sm_6', * 'products_image_xl_6'); */ $image_columns = array('products_image'); /* ------------------ STOP EDITING HERE -------------------- */ $column_query_string = ''; $image_count = 0; foreach ($image_columns as $column) { if ($column_query_string != '') $column_query_string .= ', '; $column_query_string .= $column; } $image_array = array(); $images_query = tep_db_query("SELECT products_id, " . $column_query_string . " FROM " . TABLE_PRODUCTS); while ($row = tep_db_fetch_array($images_query)) { $image_array[$row['products_id']] = array(); foreach ($image_columns as $column) { if ($row[$column] != '') { $image_array[$row['products_id']][] = array('image' => $row[$column], 'column' => $column); $image_count++; } } } /* Our image array is now built, start checking files. */ $missing_images = array(); foreach ($image_array as $id => $product) { foreach ($product as $image) { if (!is_file($image_directory . $image['image'])) { if (!is_array($missing_images[$id])) $missing_images[$id] = array(); $missing_images[$id][] = $image['image'] . '&nbsp;&nbsp;<i>(Col: ' . $image['column'] . ')</i>'; } } } ?> <tr> <td class="main"> <? if (count($missing_images) > 0) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" align="center" width="30"><?php echo TABLE_HEADING_PRODUCT_ID; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCT_NAME; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCT_IMAGES; ?></td> </tr> <? foreach ($missing_images as $id => $files) { $product_query = tep_db_query("SELECT products_name FROM products_description WHERE products_id = '" . (int)$id . "' AND language_id = '" . ($language_id > 0 ? (int)$language_id : '1') . "'"); $product = tep_db_fetch_array($product_query); ?> <tr> <td class="dataTableContent" align="center" width="30"><? echo $id; ?></td> <td class="dataTableContent"><a href="<? echo tep_href_link('categories.php', 'pID=' . $id . '&action=new_product') . '">' . $product['products_name']; ?></a></td> <td class="dataTableContent"> <? foreach ($files as $f) { echo $f . '<br />'; } ?> </td> </tr> <tr> <td colspan="3" style="padding: 0px; height: 1px; font-size: 1px; background-color: #EFEFEF"></td> </tr> <? } ?> </tr> </table></td> </tr> </table> <? } else { ?> <table border="0" width="100%" height="100"> <tr> <td class="main" valign="middle" align="center"><b><h2>Congratulations!</h2><br />You have <? echo $image_count . ' product image' . ($image_count == 1 ? '' : 's'); ?> in your store and they are all accounted for!</b></td> </tr> </table> <? } ?> </td> </tr> </table></td> See anything interesting? Your help is most appreciated - thank you! - Andrea
×