Jump to content

Dirty Butter

Member
  • Content count

    6,402
  • Joined

  • Last visited

  • Days Won

    137

Dirty Butter last won the day on June 13

Dirty Butter had the most liked content!

Community Reputation

721 Excellent

Profile Information

  • Gender
    Female
  • Location
    USA

Recent Profile Visitors

48,744 profile views
  1. Dirty Butter

    New caching method introduced in V6.2.0

    If it will only be seen on the first login to admin for an admin whose been around for awhile - they will not look at the video. Is there any way to make it a new specific video on the first time they make a change that shows cache can be cleared?
  2. Dirty Butter

    Wrong Image showing when pasting link to Facebook Message

    I use this is element.meta.php to get it to pick up the image I want. Otherwise it picks up the wrong image for me too. {if $FBOG} <meta property="og:image" content="{$image.source}"> {* MY VERSION *} <meta property="og:image:width" content="600" /> <meta property="og:url" content="{$VAL_SELF}"> {/if} I'm not sure now if I have other code somewhere else that makes this work or not. My product images are 600, and of course your's could be something different. The wrong image would have to be something besides the right image for this to work.
  3. Dirty Butter

    Error Warning Non-Numeric Value

    I haven't been able to pin down what's happening when this error is logged: PHP Warning: A non-numeric value encountered in /xxx/public_html/plushcatalog/classes/catalogue.class.php on line 116 Lines 112-147: public function categoryPagination($page) { if ($this->_category_count) { //Pagination $catalogue_products_per_page = $GLOBALS['gui']->itemsPerPage('products', 'perpage'); if (($page * $catalogue_products_per_page) > $this->_category_count) { $new_page = (int)ceil($this->_category_count / $catalogue_products_per_page); if ($new_page < $page) { httpredir(currentPage(null, array('page'=>$new_page))); } } if (($pages = $GLOBALS['db']->pagination($this->_category_count, $catalogue_products_per_page, $page)) !== false) { // Display pagination $GLOBALS['smarty']->assign('PAGINATION', $pages); } } } I'm on today's commit of 6.2.2.
  4. I'd rather have Last Updated instead of Date Added on the homepage. Can this be easily done by editing the code? Or would it be easier to wipe out all Latest Product checkboxes with a query and then check "Latest" when I put a product back in stock?
  5. Dirty Butter

    Enlarged Image cut off

    At first glance your enlarged image looks fine, but then I realized the word Rose is not on the zoomed image, unless I change the browser size to 67%. I'm using FireFox.
  6. Dirty Butter

    Need Help with Sort on Custom Quantity Discount Column

    Well, it's the two images that would need to be sorted I guess. So maybe it is from the same discussion. The sort code " appears" to be there - and it did work at some point in the past - v5?. I kept putting off asking about it while dealing with more pressing code problems.
  7. Sorry, but I tried unsuccessfully to find the original forum thread. From my notes I'm assuming that Bsmither helped me add this code: products.index.php <td align="center">{$product.stock_level}</td> <!-- BSMITHER DISCOUNT IMAGE rest of code in products.index.inc.php --> <td align="center"><img src="{$STORE_URL}/{$SKIN_VARS.admin_folder}/skins/default/images/{if $product.discount}1{else}0{/if}.png" class="toggle" /></td> <td> <!-- END BSMITHER DISCOUNT IMAGE --> {if $product.updated == '0000-00-00 00:00:00'} {$LANG.common.unknown} {else} {formatTime(strtotime($product.updated))} {/if} </td> And in products.index.inc.php $thead_sort = array ( 'status' => $GLOBALS['db']->column_sort('status', $lang['common']['status'], 'sort', $current_page, $_GET['sort']), 'digital' => $GLOBALS['db']->column_sort('digital', $lang['common']['type'], 'sort', $current_page, $_GET['sort']), 'image' => $lang['catalogue']['title_image'], 'name' => $GLOBALS['db']->column_sort('name', $lang['catalogue']['product_name'], 'sort', $current_page, $_GET['sort']), 'product_code' => $GLOBALS['db']->column_sort('product_code', $lang['catalogue']['product_code'], 'sort', $current_page, $_GET['sort']), 'price' => $GLOBALS['db']->column_sort('price', $lang['common']['price'], 'sort', $current_page, $_GET['sort']), // BSMITHER EXTRA TABS 'stock_level' => $lang['catalogue']['title_stock'], 'sale_price' => $GLOBALS['db']->column_sort('sale_price',$lang['common']['price_sale'],'sort',$current_page,$_GET['sort']), 'stock_level' => $GLOBALS['db']->column_sort('stock_level',$lang['catalogue']['title_stock'],'sort',$current_page,$_GET['sort']), 'discount' => $GLOBALS['db']->column_sort('discount',$lang['catalogue']['title_discount_quantity'],'sort',$current_page,$_GET['sort']), // BSMITHER END EXTRA TABS 'updated' => $GLOBALS['db']->column_sort('updated', $lang['catalogue']['title_last_updated'], 'sort', $current_page, $_GET['sort']), 'translations' => $lang['translate']['title_translations'] ); also in products.index.inc.php $updated_time = $result['updated']; $result['updated'] = $updated_time ? $updated_time : $lang['common']['unknown']; /* BSMITHER CHECK FOR QUANTITY DISCOUNTS rest of code is in products.index.php */ $quanDiscount = $GLOBALS['db']->count('CubeCart_pricing_quantity', 'product_id', array('product_id' => $result['product_id'])); $result['discount'] = ($quanDiscount) ? true : false; /* BSMITHER END CHECK FOR QUANTITY DISCOUNTS */ $smarty_data['products'][] = $result; } This code DOES create a column in the Product Summary listings for the Discount Code. It DOES create an empty box if there is no discount code and a checked box if there is a quantity discount. But it's of no real use in 6.2+ as is, because the column will not sort. Is this fixable? I know there is a GitHub entry having something to do with a sort of some column that's not working.
  8. Dirty Butter

    Product Info Tab

    I've seen this behavior when I need to edit a stock CC phrase in v6.2+. BUT on the same version FireFox handles edits of a plugin language phrase within the box, just as one would expect. Doesn't that mean this is a bug in CC somehow, not an issue with FireFox?
  9. Dirty Butter

    New fields in product specification

    I kind of get the gist of what you've asked in the GitHub post, but trust you. I don't think I'm up to understanding it further. I'll certainly take a look at what you've done, @Claudia M , but I am hoping to use the stock dimensions tables. I'm already having to work way too hard to make CC upgrades work with all my current customized code.
  10. Dirty Butter

    Product Dimensions

    I commented out the weight line, as I needed an easy way to require Priority Mail for all toys that make sounds. Too many are damaged in shipment via First Class. So all those have a weight of 1lb regardless of actual weight. Also, I plan to use the dimensions for packaged size - not item size. We bubble wrap any toy with hard eyes, etc, or rattles - anything that could break in shipment. So if the time ever comes that USPS requires the dimensions - all my new listings or updated listings will already have that ready to use. I'm adding as I edit/list - but have it all hidden in storefront for now.
  11. Dirty Butter

    New fields in product specification

    So could you give me an idea of the steps to do it in 6.2? I'd like to figure it out for myself if possible.
  12. Dirty Butter

    Product Dimensions

    I rearranged my length, width, depth as well. We do get some international orders, so I left the Language entries for other languages as is. Somewhere along the way I got the idea that these dimensions were going to show on the storefront like 10"x6"x3", but I'm seeing a separate row for each dimension. Is the separate row the stock way in 6.2.1+?
  13. Dirty Butter

    New fields in product specification

    Sorry for pulling up such an old post, but this is exactly what I would like to do with the new Dimensions information in 6.2+. I'd like to make a separate tab for Package Dimensions.
  14. Dirty Butter

    Zone for UK of MTY????

    OK I'll assume it was something I added, not knowing what I was doing. Thanks. It was giving me problems with the customer addresses where State was Disabled. Out of "nowhere" the Billing and Delivery addresses had the ID number of 523, and it was showing up on the Packing slip as MTY. I deleted the errant zone. We'll see if the next international order is OK.
  15. Dirty Butter

    Zone for UK of MTY????

    Was there ever a time when a CC setup created a zone for the United Kingdom with an Abbreviation in Zones of MTY? It's not in the stock Zones, but it was in my list. I'm not asking about the Countries list, but just the Zones list.
×