Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by bsmither

  1. I haven't experimented with this, so I do not know all the setup required, but a Promotional Code can be created with a Fixed Price value. At the bottom of the "New Promo Code" form is a GC Conversion option. Find an order made by the winner and use that order number (standard order format - not custom format) for the conversion field. Supposedly, the balance of the "coupon" will be retained for future purchases.
  2. Anything in the admin, Error Logs, System Error Log tab?
  3. So far, this is the best I could come up with: Using Smarty syntax to break apart the tag 'script': <pre> {'<scrip'}{'t>'} {'var x="Hello.";'} {'</scrip'}{'t>'} </pre> It's fugly as sin, and will require the admin to know about this trick, and to manage the quotes appropriately.
  4. I have been scouring the CKEditor code and, while I haven't found it just yet, I believe they decided in the recent releases that script tags will not be allowed at all - no matter what! But the visual result is confusing. See: https://securitylab.github.com/advisories/GHSL-2022-009_ckeditor4/
  5. There was a "Payment Test Gateway" available at the CubeCart MarketPlace. I will send you a PM with an address where you can get it.
  6. "Can i get the admin file from the update and reload it?" Yes. "When i do an update to the newest update do i need to go through all the past updates or can i just update the newest files?" The newest files.
  7. Try doing both of these two things: 1. Clear CubeCart's Cache: www.yoursite.com/index.php?debug-cache-clear=true 2. Delete browser cookies: try to delete only those cookies that pertain to your site.
  8. Using a programmer's text editor, edit the file /includes/global.inc.php. Find the lines that are currently something like: $glob['adminFile'] = 'admin_aBcDeF.php'; $glob['adminFolder'] = 'admin_tUvWxY'; And change to: $glob['adminFile'] = 'admin.php'; $glob['adminFolder'] = 'admin'; Save. Then, you must actually change the admin script file name and the admin folder name to match.
  9. In admin, Email Templates, click the "Email Templates" tab (between "Email Contents" tab and "Import/Export" tab). Click the Edit icon for "Default Emails". As of CC648, the editor has switched to use ACE (as opposed to CKEditor). The ACE editor is a pure "Code" editor. So, on the "HTML Content" tab, find the HTML in the code that you want to edit. Do the same on the "Plain Text Content" tab. There is a Test button to see what the result will look like. (You might see some extraneous content below the editor window. I think you can ignore that for now.)
  10. Please let us know the exact version of CubeCart you are using. There have been issues in the past where Promo Codes that start with a digit(s) malfunction.
  11. Please try this: Create a new file named ini-custom.inc.php and have as its contents: <?php $glob['cid'] = true; Place it in CubeCart's main folder (same place where ini.inc.php is at). Since ini-custom.inc.php is not a file that comes with CubeCart (but will be used by CubeCart if found), this file will not be overwritten on an upgrade.
  12. Please examine the file /includes/ckeditor/config.js, and determine if this line appears exactly as follows: config.protectedSource = [/{\S*?.*?\S}/g]; If so, then this could be related to #3573, where a meta tag (well, possibly others) has been determined to be illegal. But I do think script tags are legal. If not, then review the Github issue #3427.
  13. There is this: https://www.cubecart.com/extensions/plugins/related-products-manual-automated-recommendations From what I can tell, the list of suggested products will appear on the View Product page. (Be sure to get confirmation from the publisher that there is a version of this plugin compiled for the version of PHP you are running.)
  14. Would this be the image assigned to the actual category? And are you referring to the Foundation skin? If so, the space allotted for that image is 720px wide, to fit a re-sized image that would otherwise show at 800px. The question is then, is your source image big enough? (CubeCart's re-sizing of the source image does not make re-sized variants bigger.)
  15. Try $style = $GLOBALS['gui']->getStyle(); and $skin = $GLOBALS['gui']->getSkin(); returns the name of the folder of the skin. However, the results are for the session in PHP in which is relative to the visitor, whether that be you or a customer. Which is to say, if the customer has chosen to view the site in a skin different than the default, or different than the skin you choose to view the site, the results will be different. In the rare instance where there is more than one administration skin, $GLOBALS['config']->get('config','admin_skin') will have the folder name of the admin skin.
  16. It will require a plugin - which I am working on now.
  17. Probably you mean separate tables in the database? If so, then that will be the approach to take.
  18. I answered this question just a few days ago. But I cannot find that conversation. In admin, Product Options, Add a new group using the type "Textbox (Single Line)". Give an appropriate description (optional - only the admin will see this) and a Name. Save. In admin, Products, bring a product up for editing. On the Options tab, Add New Option, select the name of the textbox from the drop-down. Here, you can also specify a price differential. CubeCart does not yet have the code to dynamically add/display follow-on options based on some other option or option combination.
  19. CC654 added the hooks necessary to add custom items to the "With Selected:" drop-down (and probably the "then" drop-down). It depends on where the edited data items are stored that makes this easy or just a bit more difficult.
  20. I have no real experience with SpamAssassin, but I would consider Support's assertion as being likely. From what I found: Multiple instances of word[s] + hexadecimal hash And the actual regex that defines that, I suppose, depends on the version of Spam Assassin in use. So, one can try rephrasing the message such that the order number is at the end of the sentence with punctuation on either side: <p>The following order has been cancelled: {$DATA.cart_order_id}.</p>
  21. This is a known issue. Please see: https://github.com/cubecart/v6/issues/3596
  22. For later versions of CubeCart, in admin, Customer List, GDPR Tools tab, there is a red button that will irretrievably (unless backed up) delete customers with having zero orders.
  23. The "cannot be decoded" message is authentic. The version of the ionCube loader needs to be compatible with the version of PHP, and the encoded script needs to have been encoded using that same version. So, the publisher of the extension needs to do their thing. The "session_start" issue is when PHP wants to also do some garbage collection when starting a session. But PHP (or whatever user:group PHP runs under) is not recognized as an authorized user to delete some session files. (But can PHP write new session files???) This should be a problem the tech support people can fix. The session issue is a "Notice" which means that CubeCart won't stop working. Being able to do garbage collecting is important, as the number of stale session files could increase into the millions (on a very busy site) and cause problems for the operating system's file management system as a whole (running out of 'nodes' or something like that).
  24. That's how I see it. The code sends info to the skins. The skins do not control the code. Well, obviously the data entered in forms will go back to the code for processing, but there is no new code that demands user action or info through the links or the forms that would otherwise have been presented to you - being detrimental to the operation of CubeCart if it wasn't performed or provided. But as an example of something necessary: the security token. This token is given to the skin where it is included next to the submit button in forms. If the skin does not have the Smarty variable for the token in a hidden form element, it will not be in the POST payload and CubeCart will refuse to accept that payload. So, for CC650 to present, in my opinion, not implementing skin changes for the new features is not a problem.
  • Create New...