Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by bsmither

  1. What skin are you using? May we have a web address to give better advice?
  2. This reminds me of a conversation on these forums that discussed where, if an email template does not have a version ready for use for a given language, or if the language needed for the email has not been installed or enabled, then the email process falls apart. Please verify that the email to be sent for a cancelled order has the appropriate template has a version for the language used by the order.
  3. There are two approaches: replace the file /classes/gd.class.php with the file found in CC653, or visit your site's control panel and manage the extensions installed in PHP. Enable 'EXIF' (and 'MBSTRING' if not already) to the group of enabled extensions.
  4. If your skin is based on the Foundation platform, there is already the CSS necessary to give radius corners. See: https://get.foundation/sites/docs-v5/components/buttons.html See the last example in 'Button Sizing'. Edit the template to affect one button. Then, using the Developer Tools for your browser, examine the CSS rules that Foundation applies to class="button radius". Edit the skin CSS file 'cubecart.common.css' and add, at the bottom of that file, those same CSS rule(s) to make the corners have a radius, but for all buttons, not just for .button.radius. Alternatively, we can make a code snippet to load in a custom CSS file -- which will survive an upgrade if using the stock Foundation skin.
  5. This must be the case where CubeCart uses part of the regular product Description to serve as the Short Description, when there is nothing entered as an actual Short Description. When CubeCart does this, the <style> tags are stripped off, leaving the CSS content, which is now visible. Please try entering some simple plain information in the product's Short Description text editor. Then Save and have CubeCart clear its internal cache.
  6. If I recall, this same problem happened March 19. Your post said that this was fixed. I still do not see what you have posted above.
  7. Go to admin, Maintenance, Database tab. Scroll to the table CubeCart_geo_country. Make note that there are zero records. Obtain the following file from a stock download of CubeCart and load it into a text editor: /setup/db/install/data.sql Then, in admin, Maintenance, Query Database (Advanced), take note of the Query box. You will be pasting a lot of lines in here. From the file, starting at about line 507, there will be 243 lines (all the way to the bottom of the file, don't miss getting all of the last line) that needs be copied to the system's clipboard, then pasted into the Query box. Then click Go. Note: I haven't actually done this, so, be prepared if this does not go as desired. The only table being affected is CubeCart_geo_country which holds all the country names.
  8. Then there is a possibility that your products or services might be illegal in certain counties/countries. There must be the means to enable/disable sales and shipping (a feature of the extensions) accordingly. In admin, Store Settings, Features tab, Misc section, "Allow delivery to non-invoice address" is not checked. I think this is the setting that forces the delivery address to be the same as the billing address.
  9. It will take a lot of work. Also realize that some credit card processors want want to verify billing address data with the card's bank - a means to prevent fraud. (I have no idea how PayPal handles this.) But that would be when CubeCart is communicating with the payment processor, not when the customer is sent directly to the processor. Still, a lot of work.
  10. When clicking on the shopping cart icon, the entirety of the display is supposed to slide left-wards, allowing for the "off-canvas" portion hidden off to the right of the page to slide into view. Your skin has the "off-canvas" portion slide into view but the whole display does not move. This suggests that there is a missing or extra <div> block of code or tag that is confusing the operation of the skin. Please examine a stock, unmodified copy of the Foundation skin template 'main.php'. Find the following: Stock: </div> </div> <div class="row show-for-medium-up"> <div class="small-12 columns">{include file='templates/box.search.php'}</div> </div> </div> </div> <div class="row hide" id="small-search"> Yours: </div> </div> </div> </div> </div> <div class="row hide" id="small-search"> It is apparent that you removed the third and fourth line but should also have removed the fifth line. There is one too many closing </div> tags here.
  11. The "#id select" might not be what you want. Maybe "#id option:selected". This should find all selected options from the specific DOM node having id="id". (So, this selector may need to be set to 'multiple' to allow to choose five options.) Or maybe "[id^='maingroup'] option:selected". This should find all selected options from the group of selectors having id="maingroup_no1", where no1 is the specific id of the first selector, and no2 is the specific id of the second selector, etc. The format id^='maingroup' means that the id must start with maingroup, and jQuery will find all of them. Then .each() will work on them in turn.
  12. There is this: https://cubecart.zendesk.com/hc/en-gb/categories/360000562458-CubeCart-Download which gives a few Developer articles. And a discussion of your needs can happen here in the forums.
  13. This is a plugin that comes as close as I can find to do what you want. https://www.cubecart.com/extensions/plugins/abandoned-carts-capture-missed-opportunities
  14. As I see the code, the offer to 'Make Payment' happens when the customer never even tried to make payment before. As such, (maybe?) when an admin creates an order for a customer, that order (might?) have a 'Make Payment' option. But, an order stuck at Pending from a failed (fraudulent) transaction will not have that option. I believe 'Reorder' should work.
  15. I have read that CC650+ works with PHP 8.3. (Currently, I cannot experiment with PHP 8.3 because my server's operating system is too old.)
  16. There will be some problems with PHP 8.0+. There are several incompatible changes compared to earlier PHP version families. PHP 7.3 is in the same situation as PHP 5 - end of life. I think PHP 7.4 would work without too much trouble for CC642, - again, end of life.
  17. That would be the solution, but what would be a common attribute among the five selectors, and yet not include the sixth selector? Each selector is a distinct "option" (an option group of attributes) in its own right. There is nothing to relate them as a collection. "handle the interaction between the selected option and the corresponding action or data" The customer selects and option from the selector. But what do you mean by "corresponding action or data"?
  18. Currently, I am not finding a way to make any one specific Option Group (for example, "PowerBall #1") have a relationship to any other specific Option Group(s) (for example, "PowerBall #2", etc). I am still experimenting.
  19. Specifically who, I do not know. However, this is a problem I am interested to solve, and am currently working on it.
  20. If you are still interested in showing Featured Products on the Homepage instead of Latest Products, here are two Code Snippets that will do that. The first is to get a random subset of all (eligible) products with the 'featured' flag set, and send it to the skin template. The second is to suppress the Featured Product box on the homepage because the featured products are getting listed there anyway. In admin, Manage Hooks, Code Snippets tab, click the Add Snippet link. When the page refreshes, there will be a form at the bottom. Fill it in as follows: Enabled: checked Unique ID: swap_fp_lp_1@cc6114+ Execution Order: 99 Description: Find random subset of featured products. Trigger: class.cubecart.latest_products Version: 1.0 Author: https://forums.cubecart.com/topic/58982-show-random-products-in-sidebarhomepage/ PHP Code: $swapwhere = $GLOBALS['catalogue']->outOfStockWhere(array('I.status' => '1', 'I.featured' => '1'), 'I'); $swapquery = sprintf("SELECT I.* FROM `%1\$sCubeCart_inventory` AS I JOIN `%1\$sCubeCart_category` AS C ON C.cat_id=I.cat_id AND C.`status`=1 AND $swapwhere ORDER BY I.date_added DESC, I.product_id DESC", $GLOBALS['config']->get('config', 'dbprefix')); if (is_array($featuredProducts = $GLOBALS['db']->query($swapquery, (int)$GLOBALS['config']->get('config', 'catalogue_latest_products_count'))) && ($count = count($featuredProducts)) > 3) { foreach ($featuredProducts as $fP) { $preparedFeaturedProducts[$fP['product_id']] = $fP; } $randomSelectionOfFeaturedKeys = (array)array_rand($preparedFeaturedProducts, (int)(1+$count/2)); $latestProducts = array_intersect_key($preparedFeaturedProducts, array_flip($randomSelectionOfFeaturedKeys)); $tmpLANG = $GLOBALS['smarty']->getTemplateVars('LANG'); $tmpFP_LANG = $tmpLANG['catalogue']['latest_products']; $tmpLP_LANG = $tmpLANG['catalogue']['title_feature']; $tmpLANG['catalogue']['title_feature'] = $tmpFP_LANG; $tmpLANG['catalogue']['latest_products'] = $tmpLP_LANG; $GLOBALS['smarty']->assign('LANG', $tmpLANG); $GLOBALS['session']->set('fp_lp_swapped',true); } Click Save. For the second: Enabled: checked Unique ID: swap_fp_lp_2@cc6114+ Execution Order: 99 Description: Supresses Latest Product box on homepage Trigger: class.gui.display_random_product Version: 1.0 Author: https://forums.cubecart.com/topic/58982-show-random-products-in-sidebarhomepage/ PHP Code: if ($GLOBALS['smarty']->getTemplateVars('SECTION_NAME') =='home' && $GLOBALS['session']->get('fp_lp_swapped') ) { $product = false; $GLOBALS['session']->delete('fp_lp_swapped'); } Click Save. CubeCart will want you to clear its internal cache.
  21. It is possible - this site does it: https://maglite.com/collections/full-size/products/maglite-3-cell-d-incandescent-flashlight But the effect is part of a Shopify theme.
  22. From among all the products that has the "Include in Featured Products" checkbox checked (which is checked by default when adding a new product), CubeCart tries up to 15 times to randomly select a product that belongs to a category that is enabled and not hidden, is in stock if stock levels are being enforced, and is itself enabled. There is a Code Snippet that swaps the Best Sellers with the Latest Products. It could easily be adapted to show a set of randomly chosen products from the Featured Products group.
  • Create New...