Jump to content

bsmither

Member
  • Posts

    17,943
  • Joined

  • Last visited

  • Days Won

    601

Everything posted by bsmither

  1. 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.
  2. 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.)
  3. 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.
  4. 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"?
  5. 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.
  6. Specifically who, I do not know. However, this is a problem I am interested to solve, and am currently working on it.
  7. 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.
  8. 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.
  9. 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.
  10. There is a form validator that could be enhanced to make sure any one selection is not the same as any other selection. There is also the idea of making that option as a set of checkboxes (there would need to be a custom layout) where any five can be checked. But CubeCart is not yet fully coded to show checkboxes. There is also the idea of a single text field where the numbers can be entered, separated by a space, comma, or dash (there would need to be a custom verification), where the label says "Enter five different numbers between 1 and 70". (I think this is the easiest.)
  11. There is a choice to make when using CBurst: Keep all the assigned images (Main_images_1 through Main_images_7), and not use the 'image per option' feature, or Assign only Main_image_1 (gold star), allowing to use the 'image per option' feature. After changing which images are assigned to the product, click CubeCart's Clear Cache button.
  12. Is this still the problem of showing the designated image that is assigned to a specific product option? This is a recent feature of CubeCart's core code, where probably only the Foundation skin has been enhanced to display this feature. Please post a web address where we can see the problem.
  13. "All skins"? It looks like Foundation is working. The "Girl Engine Grey" selection shows an image of a figure that looks grey, and the "Girl Engine Blue" selection shows an image of a figure that looks blue. "unable to update the corresponding product images" I see that the product above still have secondary images assigned. If you un-associated all the secondary images and saved the changes, please be sure to have CubeCart clear its internal cache.
  14. From what I see, the CBurst "View Product" page will show a "Swipe Gallery" if there are more than one image assigned to the product. (This is not where images can be assigned to options.) If there is only one main image assigned to the product, there is no gallery. (The images posted above suggest there is more than one image assigned to that product.) Try assigning only one image to this product. Then there will be no gallery. Then selecting an option should show the image assigned to that option.
  15. There used to be a plugin that gave the admin a link placed at various locations around admin that would bring up an email editor to compose an ad hoc message and send it off. Unfortunately, the plugin author is no longer listed in the Marketplace. Since there was a plugin, this is not a stock CubeCart feature, and it has not been implemented as such.
  16. If I read the original post correctly, what was wanted is a very recent feature where a specific image gets displayed when a corresponding option is chosen.
  17. Due to security measures implemented on these forums, I cannot post the code changes needed. Please send a Private Message with your email address and I will attach a text file with the code edits. Also, you might be interested in the "Magic" series of plugins shown in the CubeCart Marketplace.
  18. From what I see, the CBurst "View Product" page will show a "Swipe Gallery" if there are more than one image assigned to the product. (This is not images assigned to options.) If there is only one main image assigned to the product, there is no gallery. (The images posted above suggest there is more than one image assigned to that product.) So, there are edits that need to be made to the skin so that "Images Assigned to Options" feature will work. But not on a Gallery. I will post what those edits are soon. (There also seems to be a problem with some CSS code bleeding over into the Short Description area.)
  19. The stock code shows there should be four closing </div> tags, but three makes the structure work. Which means, in addition to the extra </div> mentioned above, there might be a missing opening <div> tag somewhere.
  20. I see that you have taken the Search bar out of the code. However, it seems there is a closing </div> tag that didn't get removed. So, compare with the saved original versions of the main.php and box.search.php templates to determine where a </div> did not get deleted. Also, check the main.php template. Near the bottom, there should be: {include file='templates/ccpower.php'} </div> </div> {include file='templates/element.markup.json-ld.php'} Either the two </div> tags are missing in this template, or they are missing in the ccpower.php template. And something is still off.
  21. Please become familiar with the File Explorer in your CPanel control panel. There will be a folder named 'public_html' (or maybe 'doc_root'). That should be where the CubeCart code is at. Take note if there are more than one folder that starts with admin, and/or more than one script file that starts with admin.
  22. The web server responds with indications that the web server is Apache, and PHP is 7.4.33. Please visit your site's control panel (Cpanel?) and use its File Explorer to view the files and folders of your site, and also the contents of ".htaccess". There are some statements that must be present concerning the rewrite engine. Then, you need to have your hosting provider make sure that the virtual host file for your site has enabled the mod_rewrite module, and that there is a statement that gives permission for directives in ".htaccess" to overrule directives in the virtual host file.
  23. Having a problem replying. Having upgraded to CC653, there may be more than one script file that starts with admin. Please verify.
×
×
  • Create New...