Jump to content


Popular Content

Showing content with the highest reputation since 07/18/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
    I guess it must be working, on the front page of my store I now see a "Protected by reCAPTCHA" icon! And hopefully no more bot spam! Thanks Al Brookbanks and bsmither for the good advice.
  5. 1 point
    Return to CubeCart's admin and edit the Homepage document. Remove the Mailerlite code from this Homepage document - including the {literal} and {/literal}. After saving the edited document, be sure to click the button "Clear Cache" that is lit up in the upper-right corner.
  6. 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.
  7. 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.
  8. 1 point
    To change details about the database, please edit the file /includes/global.inc.php. Ok, not being able to maintain session, which, having items in the Shopping Basket (aka Cart) stay in the shopping basket between pages, means PHP is having some difficulty with using a session manager. And yet, not being able to use these means of maintaining session should be getting logged in error_log. I think submitting a trouble ticket with your hosting provider to discuss session-related issues is warranted.
  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
    A scenario has been known to happen whenever one mouse-swipes some text to select it, then copies it to the clipboard, and then pastes the clipboard to a text entry field -- that the mouse-swipe inadvertently also includes hidden white-space: a tab character, a space character, a newline character. So, in this scenario, which can and does happen everywhere, extra illegal (invisible) characters was part of the token sent to the Marketplace.
  11. 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
  12. 1 point
    Welcome TimB! Glad to see you made it to the forums. The top Navigation bar contains three language specific links: Sale Items, Gift Certificates, and Home (Home being visible on mobile devices). The rest are the names of Categories that you have created -- in English. Now that you have another language installed and enabled, you can now use the Translate function. In admin, Categories, click the Edit icon for a category. On the editing screen, click the Translate tab. Click "Add Translation". On the page that is shown, choose the language for this translation and enter new data to be shown for this category when the storefront is showing that language. Once finished and Saved, be sure to Clear the Cache.
  13. 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.
  14. 1 point
    Thanks Al. It's working great now.
  15. 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
  16. 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>
  17. 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.
  18. 1 point
    Click on the "Follow" button top right of the page just above the green "Reply to this topic" button
  19. 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
  20. 1 point
    In admin, Languages, click the Edit icon of the language(s) you use in your store. From the drop-down selector, choose Basket. From the list that appears a few seconds later, change 'shipping_select' to what you desire. I am going to experiment with the Store Collection module. I will experiment by using two of these modules and renaming them to Summit and Milton. In the e-Tone template content.checkout.php, near line 120, find: <p class="basket_actions"> <a href="{$STORE_URL}/index.php?_a=basket&empty-basket=true" class="button_submit left"><span class="icon icon-cross"></span> {$LANG.basket.basket_empty}</a> <button type="submit" name="update" class="button_submit update"><span class="icon icon-cycle"></span> {$LANG.basket.basket_update}</button> {if $DISABLE_CHECKOUT_BUTTON!==true} <input type="submit" name="proceed" class="button_submit" value="{$CHECKOUT_BUTTON}" /> {/if} </p> Change to: <p class="basket_actions"> <a href="{$STORE_URL}/index.php?_a=basket&empty-basket=true" class="button_submit left"><span class="icon icon-cross"></span> {$LANG.basket.basket_empty}</a> </p> <p class="basket_actions"> <button type="submit" name="update" class="button_submit update"><span class="icon icon-cycle"></span> {$LANG.basket.basket_update}</button> </p> {if $DISABLE_CHECKOUT_BUTTON!==true} <p class="basket_actions"> By clicking Secure Checkout, you are creating an order...etc.<br> <input type="submit" name="proceed" class="button_submit" value="{$CHECKOUT_BUTTON}" /> </p> {/if}
  21. 1 point
    I have yet to confirm CC6011 contributes to this problem. I will check on this shortly.
  22. 1 point
    I think the key thing to fix is to have your hosting provider assist you with having sub-domains (mail, hostmaster, etc) resolve to alternate services - not to your site. Also, your domain name registrar should also assist you in making sure non-existent sub-domains (ww) return a "Server Not Found" error.
  23. 1 point
    Welcome Doc! Glad to see you made it to the forums. Ignore everything below. Completely confused with something else. -------------------- If you have your store hosted somewhere, then your host should have given you a control panel for that account (Cpanel?). There, you should find a way to select which version of PHP you want to use and to choose which PHP extensions you need. You will find MBString as an extension to be enabled. If you cannot find where to do this, please contact your hosting provider to enable this for you. If you have direct and total control of your server installation, you will need to edit the PHP.INI file to enable the MBString extension.
  24. 1 point
    Have to agree with Havenswift here. I had a similar problem and changed to a recommended hosting company (yes it was Havenswift) and not had the problem again. Its the old adage you pay for what yo get.
  25. 1 point
    I'm confused. The first sentence says you want to manually apply an image (and presumably show it). The second sentence you want to suppress displaying it. Can you clear this up?
  26. 1 point
  27. 1 point
    Here is the fix. classes/cubecart.class.php Find: $old_addresses = md5(serialize(array_merge($this->_basket['billing_address'], $this->_basket['delivery_address']))); Replace with: $old_addresses = $GLOBALS['user']->addressCompare($this->_basket['billing_address'], $this->_basket['delivery_address']); Find: $new_addresses = md5(serialize(array_merge($this->_basket['billing_address'], $this->_basket['delivery_address']))); Replace with: $new_addresses = $GLOBALS['user']->addressCompare($this->_basket['billing_address'], $this->_basket['delivery_address']); Save then open classes/user.class.php Find: /** * Change a user password * * @return bool */ public function changePassword() ABOVE this add: public function addressCompare($address1, $address2) { $allowed_keys = array('line1','line2','town','postcode','state_id','state','state_abbrev','country','country_id','country_iso','country_name'); $address1_filtered = array(); foreach($address1 as $key => $value) { if(in_array($key, $allowed_keys)) $address1_filtered[$key] = strtolower($value); } $address2_filtered = array(); foreach($address2 as $key => $value) { if(in_array($key, $allowed_keys)) $address2_filtered[$key] = strtolower($value); } return md5(serialize($address1_filtered).serialize($address2_filtered)); } This will be released in 6.2.3.
  28. 1 point
    Solved it Al - Many thanks. I'd not noticed that before.
  29. 1 point
    Cheers guys Look forward to sharing my creations
  30. 1 point
    Hi @NiteFox This is correct. It's a legal obligation for us to collect taxes on your behalf as a marketplace. Say you sell a £100 skin to an Italian customer (22% VAT rate). You will receive £70, we will take £30 and the tax man will get £22. Please note that PayPal may take a transaction fee from the £70 but I'm not entirely sure.
  31. 1 point
    Out of the box, as a Trexle product, here is our Cubecart NAB Transact Integration.
  32. 1 point
    Our PayPal Express Checkout integration now has smart button support. With Smart Payment Buttons, consumers can choose which payment method they want to use. The checkout dynamically shows the most relevant payment methods at checkout, including PayPal, Credit/Debit Cards, Venmo, ELV/SEPA (Germany only) and PayPal Credit (US only). Merchants can also control the size, shape and colour. In order to use Smart Buttons merchants will need to upgrade their extension to 1.2.0, change their "Checkout Mode" and obtain a Client ID. Further instructions can be found on the extension configuration screen.
  33. 1 point
    Welcome perrow! Glad to see you made it to the forums. Essentially, you just need to remove (or hide) three form elements: Registration, Addressbook, and Checkout Confirm. If the data is not entered, it will not show. Look in the skin's templates content.register.php, content.addressbook.php, and content.checkout.confirm.php for the following code (or very similar to it): <input type="text" name="title" id="title" value="{$DATA.title}" placeholder="{$LANG.user.title}"> This form element will be inside other code. If the skin is Foundation, then the entire set of statements you are interested in will be very similar to: <div class="row"> <div class="small-4 columns"><label for="title" class="show-for-medium-up">{$LANG.user.title}</label><input type="text" name="title" id="title" value="{$DATA.title}" placeholder="{$LANG.user.title}"></div> </div> To "hide" this code, make the following edit each to the three templates: {* <div class="row"> <div class="small-4 columns"><label for="title" class="show-for-medium-up">{$LANG.user.title}</label><input type="text" name="title" id="title" value="{$DATA.title}" placeholder="{$LANG.user.title}"></div> </div> *} All that was done is to have made the template rendering engine (Smarty) ignore these template "comments".
  34. 1 point
    The PRODUCT_TABS_TITLES and PRODUCT_TABS_CONTENTS are arrays that are populated by hooks, usually the hook in the Catalogue->displayProduct method. When viewing a product of the storefront, there are three established tabs: Product Information, Specification, and Quantity Discounts. Each TAB has a corresponding CONTENT panel. Other hooks in admin will add tabs and content panels to collect whatever additional data would be related to the product.
  35. 1 point
    SCRIPT_URI? Is there also a REQUEST_URI? These keys to the _SERVER[ ] array come from the web server.
  36. 1 point
    Name: Ebay Sales Price: £104.95 Category: Plugins Homepage: https://www.cubecart.com/extensions/plugins/ebay-sales
  37. 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
  38. 1 point
    Welcome Sycho! Glad to see you made it to the forums. After the successful transaction, CubeCart places a link in the customer's "Downloads" page of their Account section. However, "guest' customers (those who did not create a customer account) do not have an Account section. In addition, CubeCart also sends a link in an email to the customer. CubeCart also can expire a digital download by time (from 30 minutes to never), or by count (x-number or unlimited) -- on a global approach. That is, it is not possible to limit ProdA to 6 downloads while ProdB has 10 downloads. The availability of the download is immediate, although there are some customizations that will delay the appearance and emailed delivery of the link until the admin "approves" the sale (for whatever reason). CubeCart also allows the admin to reset any limits and to resend the email containing the download link.
  39. 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.
  40. 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.
  41. 1 point
    If you are running cPanel AND your hosting companies allows you access to Multi PHP INI Editor AND you are allowed by them to change the values - that is by far the best way of doing it. Once you have changed it, then go into PHP Info and go to the sessions section and check that it has changed If your statement in your last post of the setting of your memory_limit at 15M is correct and it isnt a typo, then you need to change or better still remove that line !
  42. 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.
  43. 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.
  44. 1 point
    Please see GitHub issue #2084 and commit f9e9059.
  45. 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.)
  46. 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
  47. 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.
  48. 1 point
    Hello Havenswift. Just for the record, Im absolutely impressed with cubecart, dont have any problems and have been impressed with the fact that cubecart looks so easy and small time, but once you start using it you find that its just as good as the big boys. Ive got my own shopfront using cubecart and dont intend to swap. I was looking at the possibility of using majento to setup a takeaway food shops online ordering system. They dont want to go to justeat, as justeat charge too much, so this shop wants it "inhouse". Obviously there needs to be sub options when ordering product A, like size and whether the customer wants all salad, or salad no onion etc. So I was going to setup majento on my site to try and figure it out, and let the shop see a running test before installing on their own host. But does cubecart allow for sub selections, IE what size pizza, and if you order that type of tee shirt, then select the size etc. Thanks
  49. 1 point
    Magento is a PHP based application just as CubeCart is and so you could run then together if you really wanted to as long as one is in a sub-directory. However, Magento is a MASSIVE application (and complex to learn as well as maintain - even patches are extremely complex !) and tough on server resources so if you are planning on running a live site, then it isnt advisable. A live Magento site generally requires a small dedicated server even for a relatively non-busy site.- we have a small number of Magento clients running on very large servers in what we call semi-dedicated hosting where we have 2 to 4 sites per server, geographically spread so clients almost get the benefits of a dedicated server without the costs and hassle.
  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...