Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by bsmither

  1. This conversation may have some relevant information: https://forums.cubecart.com/topic/55470-strange-code-top-left-of-home-page/ ExpressVPN and an unknown code snippet. There is also some Internet search hits that suggest there is something between you and the web host (inclusive) that is providing some sort of privacy protection, by diddling with something's API designed to provide location-awareness.
  2. The comments at the top of the file jquery.validate.js suggest the version shipped with the Foundation skin in CC629 is: * jQuery Validation Plugin v1.17.0 * * https://jqueryvalidation.org/ * * Copyright (c) 2017 Jörn Zaefferer You mention version 1.9. We ask that you verify. (Unless you mis-typed and meant 1.19.) However, regardless, comparing the code snippets between the two versions reveals no changes. (The line numbers are different, so something changed.) Just as an experiment, if possible, please verify the same behavior using a web browser different than the one you are currently using.
  3. If the module offers "Authorization and Capture" (or maybe just Capture), choose that.
  4. Does this happen on every item? Or only on certain items? And if on certain items, is the checkbox labeled "Automatically generate product code" checked? If not, would these certain items have extensive Descriptions, an extensive Product Options list, and/or an extensive Product Options Matrix table? If so, it might be the case that there is too much information being sent in the POST payload -- PHP defaults to 1000 key/value pairs. (The All-in-One Shipping module is know to cause an outrageous number of key/value pairs when creating a dozen or so shipping zones/rates. That's how we found out about PHP's default limit.) The problem with this hypothesis is that the Product Code is very near the top of the POST payload, and would not be subject to being truncated. Especially if the settings of Stock Control manage to be processed and is stable. Otherwise, a deep dive into the code of your CubeCart installation would be necessary.
  5. Welcome cristian! Glad to see you made it to the forums. Just to confirm, did you have CubeCart clear it's internal cache? (I am not sure if clearing CubeCart's internal cache matters with respect to seeing newly activated modules.)
  6. Welcome Welshy! Glad to see you made it to the forums. The MarketPlace isn't a CubeCart store (at least, I don't think it is), so there isn't much other CubeCart users can help with this. I think contacting CubeCart HQ directly will be the quickest way to let them know of your difficulties. https://www.cubecart.com/contact
  7. Even not being live, the Store Settings will still hold the Offline Content - if you composed it. Other locations that could contain a large amount of content are: Search Engines tab, Meta Description; Copyright tab, Text content.
  8. This seems like the result of a plugin for either the webserver or hosting control panel your hosting company has implemented. Is the extra content actually getting loaded into the Store Settings, Offline tab, Content? Or are you seeing this only in your web browser?
  9. The timezone issue is solved by implementing a fix on the database server. This is something the hosting provider must implement. I think I've seen the write size error before. It was caused by there being A LOT! of data in the Store Settings - probably the Offline Content. If this is your case, consider using an external HTML document (please ask for details) for the offline message. (There is a limit of 64KiB of data in the store's configuration data.)
  10. It seems starting with CC629, a fresh installation will fetch and install two modules from the MarketPlace: the All-in-One Shipping module (enabled by default), and the PayPal Commerce plugin (not enabled). (Based on looking at the PayPal Pro plugin code) I am assuming the PayPal Commerce plugin will disable the display of the checkout button if the module is doing the "Express Checkout" mode (if named as such). (I am not that familiar with anything to do with PayPal.) (You will want Sale mode unless you know what is, and why you want, Authorization Only).
  11. In the admin script settings.admin.inc.php, there is a list of sections that a non-super-user can have permissions applied. In the Admin class, the same list appears but has two additional sections (not used in stock code). Weirdly, the permission needed to work the Extensions screen is named a section that does not exist in these lists -- 'maintenance'. However, because by definition a super-user has unlimited power, there is no actual check for permission matching. A super-user simply has access. So, I will conclude that managing Extensions, as well as the Maintenance and Manage Hooks screens, are not available to non-super-users.
  12. I traced out the code and I am convinced that the admin setting needs to be enabled.
  13. Smarty has the ability to look at data that the web server provided to PHP, including the cookies. So... {if isset($smarty.cookies.accept_cookies) && $smarty.cookies.accept_cookies=='true'} is what you are wanting to see. If there is no cookie, or the visitor declined to accept third-party cookies (value being false), the GA code won't be appearing in the HTML sent to the visitor. The "Cookie Compliance Dialogue" setting is new to me -- I'll have to examine the code to see how CubeCart handles that and what effects it has.
  14. For example, give the second list a class of bxslider2. Then, make this edit: In element.js_foot.php, find at the end of the last line: {/literal}</script> Add the following just before it: $('.bxslider2').bxSlider({auto:true,captions:true,minSlides:2,maxSlides:3,slideWidth:400,moveSlides:1,slideMargin:0}); You may need to experiment with some things. I wasn't able to get rid of a thin slice of the image that just moved out of view on the left edge. The docs for BXSlider are at: https://bxslider.com/
  15. I'm not sure how to get more than one image in the view at once, but to get a different behavior, you would need to give it a different class, then add another call for the function in the Foundation skin template element.js_foot.php using that class identifier. The <ul> list will need to be added manually at the very end of the Foundation skin template content.homepage.php. After making edits to a document or skin template, be sure to have CubeCart clear it's internal cache - in order to see the changes.
  16. Welcome DeniseO! Glad to see you made it the forums. A second slider (and third, fourth, etc) can be coded anywhere - assuming you want them all to behave the same way. Just use a <ul class="bxslider"> list and you should be good to go. Please let us know the level of detail you need to implement this.
  17. Having just now compared CC618 vs CC629 Foundation template element.google_analytics.php, there is now a test if there is a cookie named 'accept_cookies' with a value of true. I'm not sure where an admin can see the cookie acceptance rate. Does your skin match this test? Does your skin's GA code anonymize the IP address?
  18. I have no answer about if anything that CubeCart code may affect. I am not aware of any changes regards GA. I do not recall when the GDPR Cookie Consent was added to CubeCart, but there may be some interaction (I don't know for sure) between a visitor accepting, or not, of accepting third-party cookies. But this is interesting: https://support.google.com/analytics/thread/23037040?hl=en I would ask if your hosting account's WebAnalytics feature shows a traffic rate that matches the GA trend line.
  19. That is strange. I will continue to research why this isn't working for you.
  20. I have no answer for any accounting rules. My thought is to eliminate any rounding in the core code. Make the precision be as high as the computer system allows. Finally, code the Smarty skins to make the last adjustment to the displayed figures. Or, exactly when assigning values to Smarty template variables, make adjustments there. That affects only the display, not the actual values. (CubeCart does this for alternate currencies. All values are in the store's default currency, but converted for show as needed.) Everything is treated similarly. It saves on redundant coding for specific uses. Non-taxable and tax-exempt gets zero tax. An order could contain tax-exempt or tax-reduced items. CubeCart allows for the creation of arbitrary tax classes. (But cannot, as yet, apply fixed amount excise taxes.)
  21. Having successfully installed - by that we mean successfully run setup - at the end of the process there should have been an advisory shown that displays the exact URL to get to the administration side of CubeCart. If you missed that, please log in to the hosting account's control panel so that you can see the names of the files and folders of the installed CubeCart. You will be looking for a PHP file that starts with admin_, followed by six random characters, then the filename suffix .php. That is the way to the admin.
  22. This is a case of rounding error creep. It starts with a calculation at: /classes/tax.class.php, near line 453 (also 443 for percent): $amount = sprintf('%.2F', $price*($tax['percent']/100)); Try: $amount = $price*($tax['percent']/100); The $amount, limited to two decimal digits (i.e., 7.56 vs 7.5564), is inserted into the product data array that is kept in the shopping basket. Later, an average tax amount is calculated that includes the product tax amounts (26.24/291.49=9.002024%), the shipping tax (0.72/7.95=9.0566037%), and any other taxable amount at the appropriate tax rate. It adds up. The rounding creep will add up to about $0.07 for an order of about $300.00. You can certainly try a test shopping basket (you don't need to be logged in) after editing the above statement as suggested. If you go this route, be sure to watch for tax amounts being expressed with high precision. Editing the skin templates could be the solution to this, which may close the difference between what is shown versus what it should be. Tax rounding issues have been reported: https://github.com/cubecart/v6/issues/515 https://github.com/cubecart/v6/issues/1801 https://github.com/cubecart/v6/issues/2135 https://github.com/cubecart/v6/issues/2147 https://github.com/cubecart/v6/issues/2150 https://github.com/cubecart/v6/issues/2210
  23. I have recreated the above order locally, and I get the same figures. I can trace through the code and will determine where the figures are summing to (incorrect) $25.23 instead of (correct) $25.15.
  24. So, "sale prices" at 20% off -- per product or global sale mode? -- as well as a fixed discount of $20? Or did the $20 just happen to add up to the individual 20% off amounts? If possible, please let us know the full retail price of the items.
  25. And what are we looking at? An email? The admin Order Overview?
  • Create New...