Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by bsmither

  1. Word-for-word duplicate of: https://forums.cubecart.com/topic/46707-how-to-add-an-extra-image-at-the-center-of-header/
  2. Try this line: <td><span class="editable" name="site_full_address[{$customer.customer_id}]">{$customer.site_full_address}</span></td>
  3. Please compare your code above with the code in the GitHub repository (assuming you are running CC644). Two steps to making a field editable on the Customer List: make the text editable, and process the data that was submitted. Let's examine the customer's email -- ONLY AS AN EXAMPLE. In customers.index.php, near line 46, there is: <td>{$customer.email}</td> Change this to: <td><span class="editable" name="email[{$customer.customer_id}]">{$customer.email}</span></td> We are using for the name attribute an array variable of 'email'. So, for your purposes, the name attribute could be 'site_full_access'. To process the data submitted: Again, using the email -- ONLY AS AN EXAMPLE. In customers.index.inc.php, near line 299, we find code to process the 'status' check boxes. We will add our code to process the new email data just above it: if (isset($_POST['email']) && is_array($_POST['email']) && Admin::getInstance()->permissions('customers', CC_PERM_EDIT)) { foreach ($_POST['email'] as $customer_id => $email) { $result = $result || $GLOBALS['db']->update('CubeCart_customer', array('email' => $email), array('customer_id' => (int)$customer_id)); } if ($result) { $GLOBALS['main']->successMessage("Some or all emails updated."); } $send_redirect = true; } Again, for your purposes, instead of 'email', you could use 'site_full_access'. Note the $result = $result || code. The update will either succeed or fail. Once $result goes true, it will stay true.
  4. We will edit the template file element.js_foot.php. At the bottom, add this: <script>{literal}pintrk('track','checkout',{value:100,order_quantity:1,currency:'MXN'});{/literal}</script> This edit will put the above bit of javascript on every page, including during the checkout process. However, if you do not want this javascript to execute on every page of the checkout process, we can add some template code to only put this javascript code on the page where "_a=checkout", as opposed to "basket", "confirm", "gateway", and "complete". {if $smarty.get._a eq "checkout"}<script>{literal}pintrk('track','checkout',{value:100,order_quantity:1,currency:'MXN'});{/literal}</script>{/if} There is a problem, however. CubeCart most always uses an AJAX request to add an item to the cart. So, even if we put the 'addtocart' script in the HTML code that gets returned to that AJAX request, it won't get executed. As best I can determine, the proper way is to find the javascript that manages that AJAX request, and put this 'addtocart' script inside the "complete" block of the AJAX call. See 2.cubecart.js, near line 523.
  5. You also posted this: https://forums.cubecart.com/topic/56830-us-customer-able-to-order-even-that-zone-is-disabled-for-ususa/ which a comment near the end asks what I asked here, earlier. The PayPal Commerce module description on the Marketplace suggests version 1.4.9 begins to implement a fix for some sort of country dis-allowance problem.
  6. I am not really familiar with many of the PayPal modules. Are you familiar with this module having that mode where the customer can fill in their address at PayPal, and then where PayPal sends that back to CubeCart so that CubeCart updates the customer's Order Summary details (such that the customer initially specified a UK address at checkout)? Does this issue seem applicable? https://github.com/cubecart/v6/issues/2918
  7. There is this: https://www.cubecart.com/extensions/shipping-methods/store-collection It is a shipping method (sort of). You can use this in combination with: https://www.cubecart.com/extensions/payment-gateways/print-order-form or https://www.cubecart.com/extensions/payment-gateways/usa-canada-print-order-form with the module's description being something like "Pay at Pickup".
  8. CubeCart uses Google's reCaptcha, which Google has recently upgraded. There are several places in CubeCart where the reCaptcha puzzle is displayed: Contact Us, Registration, Check out as a Guest, and Submitting a review. If you are using the Foundation skin that shipped with the most recent versions of CubeCart, there should be no problem. However, to use Google's recent version of reCaptcha, you will need to acquire your own keys from Google. In admin, Store Settings, Features tab, Bot Protection section, there is the link to aquire your keys from Google. Note, you can also switch off the reCaptcha system. If you are not using the Foundation skin, then we need to troubleshoot the skin being used.
  9. "In the SESSION: section, there will be a '__basket' array. In that array, there will be an element named 'By_Category_Shipping'." If there is no '__basket' array in the SESSION: block, then perhaps when viewing this page, there was not as yet a product in the basket?
  10. What code is at line 2041 in cubecart.class.php that you see? Is there a record that got inserted in CubeCart_code_snippet where the 'unique_id' is 'systempay-multi-gateway-display'?
  11. I do not know anything about Pinterest, but from the arguments of the function call to pintrk(), I assume you want this function call to happen only when the customer adds something to the cart, and only when the customer starts the checkout process. Is this assumption correct?
  12. Just to make a video file available is very easy: just code a <video> tag in the product's description. See: https://www.w3schools.com/html/html5_video.asp https://www.geeksforgeeks.org/html5-video/ But to make a reference to a video file, to associate it with a product in the same way as with JPG images, for a thumbnail to use in the product's Image Gallery, that will take some interesting coding. I am almost done - if I can just get past all these holidays!
  13. Make sure the folder /setup/ exists. If it doesn't, download CC644 to your local computer, extract the /setup/ folder, then FTP that folder to your site. Run www.mysite.com/setup/index.php The setup system will determine if the database needs updating. If so, you will be given a choice of a fresh database or to update the existing database. Choose to update.
  14. It will require custom coding. Working on a solution. See also: https://forums.cubecart.com/topic/57366-is-it-possible-to-add-a-video-to-the-product-images-being-shown/
  15. I've never seen this before! Things to check: 1. Load the image /images/source/1PS19HBB102.jpg into an image editor (such as Irfanview, Microsoft Paint, Corel Draw, etc). Examine the image properties. If the EXIF info says for ColorSpace other than sRGB, then the PHP extension "GD" might not know how to handle these JPG images. 2. Make sure PHP's "GD" extension is installed and enabled. In CubeCart's admin, PHP Info, scroll down the list of tables until you find, or should find, "gd". If the GD table is not in the PHP Info page, find out how to enable it. 3. Do these images appear on the store front? Check the error log. 4. Check the error log. In admin, Error Log, System Error Log tab, see if any errors are logged relating to problems with images.
  16. I don't recall 'Logos" being in the File Manager section of the Navigation pane. Still, in this File Manager section, you have Documents, but not Downloads, have Images, but not Email Templates, and not Contact Form? And "Store Settings/General"? That should simply be "Store Settings". If you are sharing a database, then this Upgrade History page reflects the store that did have the Setup system executed. For that store (of which you are using it's database for this store), it was upgraded from CC622 (itself installed Feb 2019) directly* to CC628 on Feb 2020. Then to CC629, then to CC641, then to CC642. What I am very suspicious about are the entries for CC643 and the very next day CC644. A "fresh" installation, to my mind, also includes a separate database dedicated to that installation. Since this new installation is using a database belonging to a different installation, the new installation logged its date of installation in the other installation's CubeCart_history table. * By directly, I mean there was not the sequence of having to install each intervening version. Each version in its download package has all the scripts from all the prior versions going all the way back to CC400 -- and CubeCart will update an existing database as far back from that if necessary, to the current version, in one step.
  17. You don't use inventory? Then what did you mean when having said: "My categories, products and logo do not show up"?
  18. For every freshly installed package (CC644, for example), there is a folder that contains numerous files that have all the SQL statements necessary to add, delete, whatever necessary to get the database schema from where it is at (CC622 schema, for example) to the very next version (CC623 schema, for example), then to the next version (CC624 schema, for example). One by one, these files are executed to bring the database, through each intermediate version's schema, to the current version's schema. The starting point is the highest version logged in the existing database CubeCart_history table. For each intermediate version's file, the Setup system will log that version in the History table.
  19. I see there is a change that happened in CC623 that added a 'live_from' column to CubeCart_inventory, and if CubeCart does not know how to handle that missing column, then I can postulate (aka, wild guess) that products won't be found "live" to show. So, if that's the case, then if no products, and if CubeCart is set to not show empty categories, then no categories. The store's configuration settings are saved in the database. So, if sharing a database between two stores, that means also sharing the Store Settings. Logos (and the location of the images) are part of that. Are you using a copy of the CC622 database, or actually sharing the database?
  20. Even though CubeCart has a new feature where the admin can edit the Invoice using the WYSIWYG editor(admin, Documents, Invoice Editor tab), I recommend not doing so - I find problems with this. Instead, using a programmer's text editor, in the admin skin template orders.print.php: Find: <div class="total"><strong>{$LANG.basket.total_grand} {$order.total}</strong></div> Add after: <div class="total"><strong>Includes GST of {"%01.2f"|sprintf:$order.total/11}</strong></div> The {"%01.2f"|sprintf:$order.total/11} should show the value to two decimal points. PHP's sprintf() requires the first argument to be the format pattern, which requires Smarty to operate on the string, then use the value as the second argument to sprintf(). Try that. (I haven't tried it myself.)
  21. Please verify that the database user (as configured in the database server) allows 'aac-Robert' to access it at 'localhost'. A database server user can be limited to 'localhost', '', coming from a specific IP address, using some other authentication method, any method whatsoever ('*'), any one or more of these methods. So, if CubeCart wants to use 'localhost', but the server sees for 'aac-Robert' access only by '', that user will be denied. In a subdomain -- so other CubeCarts in sibling folders can access that same database?
  22. And I had, in the past for earlier solutions to problems, carefully scanned the AIOS code and, in diving in to solve this problem, completely forgot there was this line of code ready for this solution!
  23. I believe the CC65 series does use the CC643 database. Please know that CC65X betas are building up the ElasticSearch integration - and only that. I believe any changes made to CubeCart after CC643 in the CC64 series will not be included in CC65 (perhaps, eventually, after the ElasticSearch integration is complete).
  24. I added above: "But then, again, all those other URL patterns work. Only when needing to rewrite one." I can agree that moving CubeCart need not happen. Let's look at the other sites: The Aeronca and Bellanca bulletin boards may not need any URL rewriting, if there is an .htaccess file. But you may want to compare the user:group ownership (chown) and file (chmod) permission on each of these three .htaccess files.
  25. The storefront does come up. So, it can only be the case that the .htaccess file that the error messages were mentioning has the wrong permissions, or that whatever is wanting to look at the .htaccess file is looking at a place where it is not at. This works: https://ccstore.aeronca.org/index.php?_a=product&product_id=26 Bounces to: https://ccstore.aeronca.org/volume-10-member-price-16.95.html which causes an error. This also works: https://ccstore.aeronca.org/index.php?seo_path=volume-10-member-price-16.95.html https://ccstore.aeronca.org/index.php?seo_path=contact-us.html https://ccstore.aeronca.org/index.php?seo_path=aeronca.org Note the seo_path in the querystring. The rewrite directives in the .htaccess file appear to be correct (with the changes specified), but I think that is where the web server is faulting. Apache can have a directive entered in its virtual host file to debug the mod-rewrite directives. See: https://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite https://stackoverflow.com/questions/69525973/getting-error-in-cpanel-regarding-htacess-permission But you may need to get your hosting provider involved if you not running your own dedicated virtual server. Researching the error message suggests CPanel really expects all web sites (or at least specifically the .htaccess file that needs to be checked) to be in the /home/cpaneluser/public_html/ folder or child folder- which I believe your site is not, being in a sibling folder. Think about moving the site to /home/aac/public_html/ccstore/ and point the subdomain ccstore.aeronca.org directly to it. But then, again, all those other URL patterns work. Only when needing to rewrite one.
  • Create New...