Jump to content


Popular Content

Showing content with the highest reputation since 05/14/2018 in all areas

  1. 2 points
    Works fine,it's pretty simple and could do with some refinement in the future to make the UI a little nicer and add additional features such as an API so those of us with a larger catalogue can setup automated order processing (for licenses etc). PayPal do also take a fee on top of the CubeCart fee.
  2. 2 points
    Your database and dB user names and passwords will almost certainly be different on your new hosting and you need to update the /includes/global.ini.php file with the new values Ian
  3. 2 points
    Seems to have levelled off the cache at around 35,000 objects at the moment, will keep an eye and report back later.
  4. 1 point
    This is most likely to be your browser auto-filling variables trying to be helpful ! This is a problem in a few areas in CubeCart even when the field is set to not autofill (for example the SMTP Authorisation password when configuring the store email in the Store Settings). Depending on what browser you are using you can disable this for various types of information. For Chrome, go to the Settings page (enter chrome://settings/ in the browser url) go to the autofill section and then you can disable for passwords, payments methods and addresses and more Ian
  5. 1 point
    Welcome Courtney! Glad to see you made it to the forums. Using a programmer's text editor (your hosting account's control panel has one of these), you will open /skins/foundation/templates/main.php (and main.checkout.php). Here you will find the </head> tag. You should include these additional two lines of code so that the template rendering engine (Smarty) will not get confused because it uses braces that javascript also uses. {literal} Mailerlite javascript goes here... {/literal} Then, return to CubeCart's admin and edit the Homepage document. Remove the Mailerlite code from this document.
  6. 1 point
    Ian is wrong. Logging in with the same staff account will kick out the other staff member who will need to login again thus kicking the other out. It's a security feature to prevent session hijacking. You'll need an account for each staff member.
  7. 1 point
    Welcome Claud! Glad to see you made it to the forums. We would ask that you create the error log. There may be an issue with maintaining session state.
  8. 1 point
    I switched to Ubuntu 18.04 from Windows 10 on my main computer a couple of years back and haven't looked back. Now with Ubuntu's minimal installation option too I have my computer running just the software I want with no annoying desktop apps being pushed on me or that nasty new start menu. Which operating system do you use, and why?
  9. 1 point
    Yes. In admin, Documents, click Create Document tab. On the new page, for the Title, enter FAQ. For Status, click the checkbox. On the Content tab, in the editor window, (as an example) enter: Q1. How do I link to a paragraph in a document? A1. How do I link to a paragraph in a document? Highlight A1. Click the 'Anchor' toolbar button (looks like a flag). A dialog window will show. The Anchor Name is A1. Click OK. Select Q1. Click the 'Link' toolbar button. A dialog window will show. The Link Type is 'Link to anchor'. Select the A1 anchor name. Click OK. Click Save. (Click the Clear Cache button that is lit in the upper-right corner.) Reload the storefront Homepage. Click the FAQ document link. Click on Q1. Note the page scrolls so that A1 is at the top of the screen.
  10. 1 point
    The format of the sitemap that CubeCart creates is OK but there are third party packages available that create much better versions and will optionally create image or video sitemap files as well and even more importantly can be scheduled to run via cron, for example weekly, whereas with CubeCart you have to remember to re-run it manually each week. The number of CubeCart sites I see with sitemap files that were created a year or two ago and never updated ! This is worse than not having a sitemap file at all
  11. 1 point
    In CubeCart's administration backend, on the left navigation panel, click Email Templates. The Email Contents tab is a list of all the main contents of CubeCart's emails - click the flag of the language you wish to edit. The Email Templates tab is a list of the email's overall common content - click the Edit icon of Default Emails. On the page that is now shown, click the HTML Content tab. (Do Not Edit Anything. Possible bug here.) Hover the mouse over the blue squares to see a tooltip as to what protected content is here.
  12. 1 point
    Thanks Al. It's working great now.
  13. 1 point
    Thank you,I changed this part of code.I decided to move to other host,so I hope it will be than solved.But your work-arround code works,so at least for now it is some solution to solve this issue for a moment.Thank you.I always appreciate your quick and helpful advices.David
  14. 1 point
    In the Noodleman skin template main.php, find: Near line 26: <a href="{$ROOT_PATH}" class="main-logo"><img src="{$STORE_URL}/skins/noodleman_v6/images/noodleman/noodleman-logo.png" alt="{$CONFIG.store_name}"></a> Change to: <a href="{$ROOT_PATH}" class="main-logo"><img src="{$STORE_LOGO}" alt="{$CONFIG.store_name}"></a>
  15. 1 point
    The scenario is that there is some part of a document where the HTML for that part must not be present when the document is being displayed on a mobile device. The version of CubeCart must support parsing Smarty tags in the document (apparently, all versions of CC6). The mobile device must send a User Agent (UA) string that CubeCart will recognize as being a mobile device. When editing the Content of a document (the HomePage's BXSlider, for example), use the following: {if !GUI::getInstance()->mobile} <ul class="bxslider"> <li><img src="skins/foundation/images/examples/slide1.jpg" title="Message Foo" /></li> <li><img src="skins/foundation/images/examples/slide2.jpg" title="Message Bar" /></li> <li><img src="skins/foundation/images/examples/slide3.jpg" title="Message Baz" /></li> </ul> {/if} Be sure to have "Parse Smarty Tags" setting enabled. Then, create a snippet. In admin, Manage Hooks, Code Snippets tab, click Add Snippet. In the form that appears, fill in fields as follows: Enabled: Checked Unique ID: [email protected]+ Execution Order: 1 Description: Forces CubeCart to detect if a mobile device Trigger: class.gui.css Version: 1.0 Author: https://forums.cubecart.com/topic/54744-how-to-turn-bxslider-off-on-mobile-homepage PHP Code: <?php $current_disable_mobile_skin_setting = $GLOBALS['config']->get('config', 'disable_mobile_skin'); $GLOBALS['config']->set('config', 'disable_mobile_skin', false); $this->_detectMobile(); $GLOBALS['config']->set('config', 'disable_mobile_skin', $current_disable_mobile_skin_setting); The reason we use the "class.gui.css" hook is because CubeCart processes this hook early - before processing the action of getting a document ready for display. It also has to be a hook in the GUI class because that is where the private code is located that determines if the UA string is mobile. Let me know if I left anything out.
  16. 1 point
    Click on the "Follow" button top right of the page just above the green "Reply to this topic" button
  17. 1 point
    To follow up on this, I contacted FastComet support and spent a little time trying to figure out the problem, and looked at a few other shopping carts... But aside from the problem I was having I did like CubeCart so decided to just download CubeCart 6.2.4 and install a new Database... The new version appears to be working perfectly! So if you have a similar problem a reinstall may be a quick and simple solution. Regards, Dave
  18. 1 point
    Agreed - failed upgrades have been very common in the past when done via the built in upgrade option and often result in a mix of files from different versions - this will cause this type of problem. It has been covered in quite a few threads on here before and a manual upgrade would definitely solve it. Ian
  19. 1 point
    Please make the following edits: In /classes/seo.class.php, find: public function buildURL($type, $item_id = false, $amp = '&') { // Some SEO paths are not stored in the database if (!$item_id && in_array($type, $this->_static_sections)) { if (($item = $GLOBALS['db']->select('CubeCart_seo_urls', array('path'), array('type' => $type))) !== false) { return $GLOBALS['storeURL'].'/'.$item[0]['path'].$this->_extension; } else { return $GLOBALS['storeURL'].'/'.$this->setdbPath($type, '', '', false).$this->_extension; } } elseif (($item = $GLOBALS['db']->select('CubeCart_seo_urls', array('path'), array('type' => $type, 'item_id' => $item_id))) !== false) { return $GLOBALS['storeURL'].'/'.$item[0]['path'].$this->_extension; } else { return $GLOBALS['storeURL'].'/'.$this->setdbPath($type, $item_id, '', false).$this->_extension; } } Change to: public function buildURL($type, $item_id = false, $amp = '&', $absolute = true) { // Some SEO paths are not stored in the database $url = ($absolute) ? $GLOBALS['storeURL'].'/' : $GLOBALS['rootRel']; if (!$item_id && in_array($type, $this->_static_sections)) { if (($item = $GLOBALS['db']->select('CubeCart_seo_urls', array('path'), array('type' => $type))) !== false) { return $url.$item[0]['path'].$this->_extension; } else { return $url.$this->setdbPath($type, '', '', false).$this->_extension; } } elseif (($item = $GLOBALS['db']->select('CubeCart_seo_urls', array('path'), array('type' => $type, 'item_id' => $item_id))) !== false) { return $url.$item[0]['path'].$this->_extension; } else { return $url.$this->setdbPath($type, $item_id, '', false).$this->_extension; } } In the file /classes/gui.class.php, near the end of the file, find: private function _makeTree($tree_data) { A few lines later, find: $branch['url'] = $GLOBALS['seo']->buildURL('cat', $branch['cat_id'], '&'); Change to: $branch['url'] = $GLOBALS['seo']->buildURL('cat', $branch['cat_id'], '&', false); Then find: private function _displayNavigation() { A few lines later, find: 'saleitems' => $GLOBALS['seo']->buildURL('saleitems',false,'&'), 'certificates' => $GLOBALS['seo']->buildURL('certificates',false,'&') Change to: 'saleitems' => $GLOBALS['seo']->buildURL('saleitems',false,'&',false), 'certificates' => $GLOBALS['seo']->buildURL('certificates',false,'&',false) You will need to have CubeCart clear its internal cache.
  20. 1 point
    I have yet to confirm CC6011 contributes to this problem. I will check on this shortly.
  21. 1 point
    Thanks @AI and @Bsmither. @Bsmither my first installation was done manually, however, I deleted it and used the Token method, its working properly now. Thanks.
  22. 1 point
  23. 1 point
    Solved it Al - Many thanks. I'd not noticed that before.
  24. 1 point
    You need to clear the cache in your store. Top right of admin control panel.
  25. 1 point
    Cheers guys Look forward to sharing my creations
  26. 1 point
    Out of the box, as a Trexle product, here is our Cubecart NAB Transact Integration.
  27. 1 point
    The description of: https://www.cubecart.com/extensions/plugins/promotional-code-enhancements suggests it has this capability.
  28. 1 point
    CubeCart will create and cache a skin-based rendering of the category tree, then make that "cameo" available to box.navigation.php in $CATEGORIES. The "pro" of this is to expend just once what could be a time-intensive task in building the tree. The "con" is that (at least for some versions of CubeCart) the URLs have the host address of the store when the tree was built. (Thus, should the web address change, the links do not work anymore.) By adding {debug} to the end of the main.php template, you should see the $CATEGORIES variable in the left pane of the Smarty popup.
  29. 1 point
    Name: Ebay Sales Price: £104.95 Category: Plugins Homepage: https://www.cubecart.com/extensions/plugins/ebay-sales
  30. 1 point
    It sounds like the server your website is hosted on, previously had memcached installed and configured but either it now doesnt have that installed or it has been disabled. Most shared hosting doesnt have memcached available (we do across all of our servers !) so you will need to speak to your hosting company - unless you own and manage the server there will be nothing you can do. To get back into the site edit your includes/global.inc.php file and change memcached to file to switch back to the standard but slower file based caching Ian
  31. 1 point
    Determine which folder has the latest date. This is the one that likely is CC622. Then, in /includes/global.inc.php, make sure the value for $glob['adminFolder'] matches that folder's name.
  32. 1 point
    Thank you guys. For the reason that this platform was made available for free, It would be a great idea for me to keep it too as a thank you.
  33. 1 point
    I'm going to add an extra step to the joyride on first admin login.
  34. 1 point
    UPDATE: forgot to actually push the "submit" button on this post yesterday.... DOH Reporting back.. something is still not right for sure. So I've been writing data to the log all day, the cache has been cleared at least twice but the number of actual writes doesn't add up. In 9 hours, 377,000 new file writes. But, I am seeing a lot of duplicate hashes being written, an example of this is: even if caching WAS working correctly, and cache was cleared we should NOT have written the same item to cache 8442 times since this morning. Most things in the log do appear to be duplicated many thousands of times. Assuming the overwriting of cache is working correctly, this is incorrect and will add to increased IO for file cache. Here is my log amendment for reference: modified _writeCache function: protected function _writeCache($data, $query) { $query_hash = md5($query); if (isset($GLOBALS['cache']) && is_object($GLOBALS['cache'])) { $fp = fopen('query_log.txt', 'a+'); fwrite($fp, time() . " ### " . $query_hash . "\r\n"); fclose($fp); return $GLOBALS['cache']->write($data, 'sql.'.$query_hash); } return false; } maybe I did something wrong... but, initial results suggest cache is being written mode than it should. I'll need to check the write function to see if it does a check first. won't have time until this evening.
  35. 1 point
    One final experiment before we take a different approach: Log out of admin. Log out of the storefront. Clear the cookies to your site (or use a different browser or computer). Change those values in global.inc.php to be the latest file and folder names. Save the file. Go to the page www.store.com/admin.php. Attempt to log in.
  36. 1 point
    Please see GitHub issue #2084 and commit f9e9059.
  37. 1 point
    There is this: https://github.com/cubecart/v6/issues/1427 which could be enhanced to include the case where there is just one product in the listing of a category and there are no child categories. (I'll add this to my to-do list.)
  38. 1 point
    Interestingly, we have just had a report from a client of this exact same behaviour and they have been running 6.2.0 (just recently upgraded to 6.2.1) so it looks like it could be a problem introduced with the new caching in 6.2.0 - unfortunately our client has reported this and then closed their store for their Summer holiday Reported as possible issue : https://github.com/cubecart/v6/issues/2116
  39. 1 point
    Two possibilities: CubeCart allows only iframes from SAMEORIGIN. To bypass this, an edit will be needed in two places: * The .htaccess file shipped with CC621 has a directive that will always add SAMEORIGIN to the outgoing headers, and * There is a header command in the core code that adds SAMEORIGIN. and/or (Probably this is the case) Your site is loading under https, but the frame is loading under http. This is mixed security and the latest versions of browsers generally do not allow for this. Please leave off the http: having simply the leading double-slash. The browser will then use the protocol the main page used to be fetched. Then, the page coming into the frame could also have its headers say SAMEORIGIN.
  40. 1 point
    Thanks so much Al...I was sweating it!! Lol Rockin' Job! Thanks. Matthew
  41. 1 point
    @Al Brookbanks: Tested and confirmed working on 6.2.1. Thanks!
  42. 1 point
    We would ask that you verify the name of the database as stated in /includes/global.inc.php matches the actual name of the database as seen in your hosting account's control panel (Cpanel?). Also, if the database tables have a prefix, make sure it matches what is given in global.inc.php. Not allowing a table column's name as the "key" to fetch the row's contents usually means the requested table doesn't exist, or CubeCart is using a table prefix when it shouldn't, or v.v.
  43. 1 point
    Provided that the digital file is publically accessible, in admin, Add/Edit Product, Digital tab, Custom File Path section, you may enter either a direct path to a folder on CubeCart's server, or a Full Web Address that points to anywhere on the Internet. If your AWS repository requires a login, that may pose an obstacle unless you know how to overcome it.
  44. 1 point
    Ah THAT's why you haven't paid your bill! Too busy with your new toy, which wasn't cheap I imagine.
  45. 1 point
    Thank's Al. I reinstalled and it seems to be fine now. Thanks for your help too Noodleman!
  46. 1 point
    Congratulations Al
  47. 1 point
    OH!!! Congratulations to both of you!! I was hoping you were offline because your baby had come!
  48. 1 point
    At about line 66 in main.php, find: <div class="sidebar" id="sidebar_left"> {$CATEGORIES} {$SALE_ITEMS} {$MAIL_LIST} </div> Change to: <div class="sidebar" id="sidebar_left"> {$CATEGORIES} {$SALE_ITEMS} {* $MAIL_LIST *} </div>
  49. 1 point
    Please delete the unique key 'custom_oid' on the CubeCart_order_summary table. And replace it with a standard key or normal index. This was a bug in the beta.
  50. 1 point
    Try this. Line numbers refer to CC6114: In the admin skin template dashboard.index.php, near line 162: <td align="right"> {if isset($order.notes)} <a href="?_g=orders&action=edit&order_id={$order.cart_order_id}&source=dashboard#order_notes" title="{foreach $order.notes as $note}{$note.time} {$note.content}{"\r\n"}{/foreach}"><i class="fa fa-sticky-note" title="{$LANG.common.notes}" aria-hidden="true"></i></a> {/if} <a href="{$order.link_print}" class="print" target="_blank" title="{$LANG.common.print}"><i class="fa fa-print" title="{$LANG.common.print}"></i></a> Change to: <td align="right" NOWRAP> {if isset($order.notes)} <a href="?_g=orders&action=edit&order_id={$order.cart_order_id}&source=dashboard#order_notes" title="{foreach $order.notes as $note}{$note.time} {$note.content}{"\r\n"}{/foreach}"><i class="fa fa-sticky-note" title="{$LANG.common.notes}" aria-hidden="true"></i></a> {/if} <!-- --> {if isset($order.items)} <a href="?_g=orders&action=edit&order_id={$order.cart_order_id}&source=dashboard#order_inventory" title="{foreach $order.items as $item}{$item.quantity}{" x "}{$item.product_code}{"\r\n"}{/foreach}"><i class="fa fa-shopping-cart" alt="{$LANG.common.items}"></i></a> {/if} <!-- --> <a href="{$order.link_print}" class="print" target="_blank" title="{$LANG.common.print}"><i class="fa fa-print" title="{$LANG.common.print}"></i></a> In the admin source file dashboard.index.inc.php, near line 299, find: foreach ($GLOBALS['hooks']->load('admin.dashboard.unsettled_orders') as $hook) include $hook; We can use this hook. But to complete this experiment, on a new blank line after this, add: /**/ if (($order_inventory = $GLOBALS['db']->select('CubeCart_order_inventory', '`cart_order_id`,`product_code`,`quantity`', array('cart_order_id' => $cart_order_ids))) !== false) { foreach ($order_inventory as $inventory) { $order_items[$inventory['cart_order_id']]['items'][] = $inventory; } $orders = merge_array($orders, $order_items); } /**/ In admin, Dashboard, Unsettled Orders tab, this gives an icon (shopping basket - available in latest versions of CubeCart having a recent version of the Font Awesome files) that, when hovering the mouse over it, will show a 'tooltip' listing the products of that order.

  • Newsletter

    Want to keep up to date with all our latest news and information?
    Sign Up
  • Create New...