Jump to content

bsmither

Member
  • Posts

    17,944
  • Joined

  • Last visited

  • Days Won

    602

bsmither last won the day on March 28

bsmither had the most liked content!

Profile Information

  • Gender
    Male
  • Location
    Pacific Coast

Recent Profile Visitors

99,933 profile views

bsmither's Achievements

Mentor

Mentor (12/14)

  • Well Followed Rare
  • Very Popular Rare
  • Conversation Starter
  • Dedicated Rare
  • Posting Machine Rare

Recent Badges

1.6k

Reputation

  1. 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
  2. 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.
  3. 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.)
  4. 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.
  5. 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"?
  6. 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.
  7. Specifically who, I do not know. However, this is a problem I am interested to solve, and am currently working on it.
  8. 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.
  9. 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.
  10. 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.
  11. 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.)
  12. 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.
  13. 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.
  14. "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.
  15. 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.
×
×
  • Create New...