Jump to content

bsmither

Member
  • Posts

    18,172
  • Joined

  • Last visited

  • Days Won

    609

Everything posted by bsmither

  1. Non-responsive will maintain the same layout no matter what the screen width of the device being used to view the page. Responsive will have the means (javascript and/or css) to determine the screen width of the device, and re-flow the areas of the page to better "stack" them so that the need to scroll horizontally is greatly reduced if not completely eliminated. (I am an SEO atheist - I have no answer for any such questions.) Hopefully, someone will join this conversation who really knows "page listings". In the Foundation template file main.php, near line 34, find: <div class="row marg-top" id="top_header"> Following that, find these two lines: <div class="small-4 large-3 columns"> and <div class="small-8 large-9 columns nav-boxes"> Change large-3 to large-5 and change large-9 to large-7. (The two large values must add up to 12.) Save and view the new layout. If this is not enough space for the logo, try 6 and 6. This was changed in CC6410 (see Github issue #3133) to solve a Fatal Error that manifested when using PHP8, as it got a lot more picky about how it handles using strings (such as 'all') in math equations. When manually adding "?page=all" to the web address for a category, the pagination code will use the highest "perpage" value in the skin's config.xml file. This file can be edited to have an additional ridiculously high perpage value, such as 1028.
  2. There have been fixes to the Pagination routine (in the Database class) since CC6410. Note that on the 'wholesale' store, there is no pagination when "page=all".
  3. As for the other site, I cannot tell what version of CubeCart, nor what version of PHP that site is running. Please make these edits to the element.paginate.php file: At the end of the file, find: <strong>[{$LANG.common.view_all}]</strong> {/if} {/if} ABOVE that, add: {$page = 1} {for $i = 1; $i <= $total; $i++} {if ($i < $page - floor($show / 2))} {continue} {/if} {if ($i > $page + floor($show / 2))} {break} {/if} {$params[$var_name] = $i} <a href="{$current}{http_build_query($params)}{$anchor}">{$i}</a> {/for} Near line 39, find: {if ($view_all)} ABOVE that, add: {/if} At the very beginning of the file, add this line: {if ctype_digit((string)$page)} Save and test.
  4. This is the Github issue #3133. However, the solution might not be suitable for this store. I will work on getting the Kurouto skin template 'element.paginate.php' to work with "page=all".
  5. Please look in admin, Error Log, System Error Log tab, for recent log items that say Fatal Error.
  6. Please let us know what screen you are viewing.
  7. This issue has been posted in the Github. Expect to see it in the next release.
  8. Please try using {$DATA.ship_product}. The statement in the editor would be: <td>Shipping: {if $DATA.ship_method}({$DATA.ship_method}{if $DATA.ship_product} - {$DATA.ship_product}{/if}){/if}</td>
  9. If you have my email address, send the screen shots there.
  10. I think the Foundation function 'clearing' (which shows the enlarged images one at a time) gets its 'caption' from the following: In element.product.HV_gallery.php (where HV is either horizontal or vertical), there is an <img> tag that has: data-caption="{$PRODUCT.name}{if !empty($image.image_tags.title)}: {/if}{$image.image_tags.title}" What I see in your product details (of the product I looked at) is that the "title' includes the full product name. Doing this is not wrong, per se, but not optimum. If this is your consistent approach, then maybe the data-caption attribute needs to be re-written. data-caption="{if !empty($image.image_tags.title)}{$image.image_tags.title}{else}{$PRODUCT.name}{/if}" With this, if there is no title, then do show the product name as the caption.
  11. Please let us have a web address of a typical product, and how one gets to view the 'enlarged' image on a phone.
  12. The button is showing somewhere in the screen of content when having clicked the Delivery tab? The Copy button should be sitting just to the right of "Delivery Address" in the legend's grey bar in the screen of content when having clicked the Overview tab (or when initially having brought up an order for editing).
  13. This deprecated issue is fixed in CC656. However, this is not the cause of a blank screen. If there is no error caused by the PHP code and seen in the error log, then most often there is a syntax error in a Smarty template. Have you made any edits to a skin template?
  14. (It's difficult to edit the above post, so...) After the Execution Order field, it is the 'Description' field that follows. * Triple-click, right-click, click on Copy -- a first glance, that seems like a lot of clicky-ness. But you get used to it very fast.
  15. We will create a code snippet to handle the the shipping address (survives upgrades). By right-clicking on the email address, the context menu has a choice to copy that email address onto the clipboard. As for the phone number, triple-clicking on it will select the whole of it, then a right-click to bring up the context menu, then select Copy (to clipboard).* In admin, Manage Hooks, Code Snippets tab, click Add Snippet. Now, at the bottom of the list of existing snippets, fill in the form as follows: Enabled: Checked Unique ID: CopyToClipboard@cc500+ Execution Order: 1 Adds a Copy Data to Clipboard button to the order's shipping address legend Trigger: admin.order.index.pre_display Version: 1.0 Author: https://forums.cubecart.com/topic/59397-adding-copy-to-clipboard-buttons/ PHP Code: <?php $GLOBALS['smarty']->append('EXTRA_JS', $GLOBALS['storeURL'].'/files/public/copytoclipboard.js'); Save. You may need to have CubeCart clear its internal cache. Create a new file named and located at /files/public/copytoclipboard.js The contents will be: function copyToClipboard(element) { var $temp = $("<textarea>"); var brRegex = /<br\s*[\/]?>/gi; var legendRegex = /<legend>.*<\/legend>/; var spanRegex = /(<span([^>]*)>)|(<\/span>)/gi; $("body").append($temp); var html = $(element).html(); html = html.replace(brRegex, "").replace(legendRegex, "").replace(spanRegex, "").replace(/\n+\s*/gi, "\n").trim(); $temp.val(html).select(); document.execCommand("copy"); $temp.remove(); event.preventDefault(); } $( "#shipping_address legend" ).append( ' <button id="FailCopy" type="button" onclick="copyToClipboard(\'#shipping_address\');">Copy</button>' ); Bring an existing order up for editing. On the Overview tab, the Shipping Address block should now have a [Copy] button. When clicked, the address should then be placed in the clipboard.
  16. The Custom Order Status plugin uses the admin.dashboard.unsettled_orders hook. (It's encoded, so I cannot determine what this hook code actually does. But the query shown suggests the hook code created that query.) In the list of queries shown in CubeCart's debug window, was there a similar query just a few queries above the one you found? A query that has WHERE `status` IN (1,2) ? Please contact Noodleman to determine if there is anything that would need to be done about the Github issue #3231 (implemented 19 Apr 2023 on CC652), versus the latest version of the plugin (v1.0.6 on 8 Feb 2018).
  17. From this query, I see that there is a plugin (or hard code edits) that either makes a new query with custom order statuses, or creates an array with custom order statuses that is supplied to the existing $GLOBALS['db']->select() statement. Please let us know what this plugin might be.
  18. In admin, Store Settings, Advanced tab.
  19. In the Dashboard, the Unsettled Orders tab has a red circle with a number in it. Is this more than 25? I would assume so. Please enable CubeCart's debug mode. (Be sure to have your IP address in the next text entry field -- www.showmyip.com.) From the 'per page' dropdown, select 100. The page will auto reload. The browser will want to display a popup window. Let it do so. You may need to reload the page if the popup has what looks like the same content as the main window. Scroll to the database queries section. At about query number 41, look for: SELECT * FROM `CubeCart_order_summary` WHERE `status` IN (1,2) OR `dashboard` = 1 ORDER BY `dashboard` DESC, `order_date` ASC LIMIT 100 OFFSET 0; Is the LIMIT 100 present?
  20. Please mention the exact version of CubeCart where you see this happening. With CC656, I do not see this.
  21. An automated page request with stuff in the querystring (the part after the question mark) trying to exploit a known weakness in some (undetermined) application. CubeCart does not let stuff like this get through. As a courtesy, this detection and removal gets logged -- just in case there was, in fact, something that was intended but was badly programmed, and needs to be fixed.
  22. Just discovered there are a number of places where a customer's email address is available as a clickable mailto: link. Order Summary, Overview tab, Contact Details section Product Settings, Product Reviews tab Product Statistics (reached via Product Inventory list, Product Statistics icon) Product Reviews page Dashboard, Pending Reviews tab Clicking a mailto: link, will cause your web browser to activate the assigned email application (or online GMail or Yahoo Mail - depending) to prepare an email compose window -- on your workstation. This means your email application (Outlook, Firebird, etc) should have an "account" under the business's name and email address.
  23. A specific config.xml file is not needed. There is no harm in keeping the skin named 'default'. It seems to me that the 'default' skin must exist in order to get at the selector to change it. However, by adding: $glob['admin_skin'] = "custom"; to the /includes/global.inc.php file, one can force the alternate skin to be used.
  24. After a brief look-see, there can be more administrative skins. In admin, Store Settings, Layout tab, the Default admin skin can be chosen. (I have yet to find a means, if it exists, for any one admin to be assigned a specific admin skin.) The drop-down selector is populated by a list created from code that scans the admin /skins/ folder for other folders. For a folder in admin's /skins/ to be considered an admin skin folder, that folder must have an /images/ folder, a /styles/ folder, and a /templates/ folder.
  25. In: https://forums.cubecart.com/topic/59315-syntax-error-in-classescubecartclassphp/ Looking at (your edited file's) line 2796 more closely, this happens when a non-logged-in customer wants to check on the status of an order. When first presented with the Order Lookup form, the Order Number is taken from the web address given to the customer in their email, "/index.php?_a=vieworder&cart_order_id=xxxx". If a visitor just happens to want to visit "/index.php?_a=vieworder" without providing the cart_order_id part, that will generate this error. How often will that happen? Can you list the steps needed to get this error on demand -- without actually munging the web address? So, changing $_GET to $_REQUEST won't help. Try this edit: $cart_order_id = Order::validOrderId(trim($_GET['cart_order_id'] ?? '')) ? trim($_GET['cart_order_id'] ?? '') : '';
×
×
  • Create New...