Jump to content

bsmither

Member
  • Posts

    18,033
  • Joined

  • Last visited

  • Days Won

    607

Posts posted by bsmither

  1. I am looking at one of my development sites using e-Sharp (Blue) and am disappointed in the "Hover over image to zoom" function. In some cases (as when there are no secondary images to show on a horizontal area below the main image), it is impossible to select an option because the 'zoom' trigger area, called the 'dio-sensor' (triggering the view port, called the 'dio-lens', where that view port is often seen as a blank white box having roughly the same dimensions as the main image) extends over the top-most option selector.

    The image you've supplied suggests that the left-most edge of this trigger area extends to just a few pixels to the right of the right-most edge of the Buy button.

    Further experiments show that the displayed size of the font affects where the trigger area sits. For my browser, with the text zoom factor at 110%, the trigger area is not nearly as intrusive. But at 90%, the trigger area is very intrusive.

    I know very little about the WebCity skins. I am confident, however, that this problem is restricted to the skin. Meaning, it is not a new problem because of having upgraded to CC652, or PHP8, or the database server.

  2. Specifically, for the default currency, try this:

    $code = $GLOBALS['config']->get('config', 'default_currency');
    $result = $GLOBALS['db']->select('CubeCart_currency', '*', array('code' => $code)
    $default_currency_symbol_left = $result[0]['symbol_left'];
    $default_currency_symbol_right = $result[0]['symbol_right'];

     

  3. As mentioned earlier, following is a code snippet that will strip out the HTML statement that is the link to the Google APIs to fetch the font.

    In admin, Manage Hooks, Code Snippets tab, click the Add Snippet link.

    On the page that follows, enter the following in the form:

    Enabled: checked
    Unique ID: deleteGoogleFontsLink@cc600+
    Execution Order: 99
    Description: Removes Google Fonts link just prior to delivering the compiled template code.
    Trigger: controller.index
    Version: 1.0
    Author: https://forums.cubecart.com/topic/59060-any-guidance/
    PHP Code:

    Argh! I tried to use the code edit window to enter the Code Snippet code, but Cloudflare is blocking me!

    So, until @Al Brookbanks gives advice on how to contribute PHP code, this will have to wait.

     

  4. Also, with respect to the web page, as delivered to the visitor, containing a link to 'Gravatar' to fetch the gravatar image of each of the product reviewers, the skin has a 'config.xml' file with this statement (in context):

    	<gravatar_ajax>true</gravatar_ajax>
      </info>

    If the <gravatar_ajax> node is not present, add it where shown. Change the true to false. Have CubeCart clear its internal cache.

    OR... In admin Store Settings, Features tab, Reviews section, for "Enable Product Reviews/Comments", choose "Enabled (Gravatar Disabled)".

  5. What could be done, to survive upgrades, is to write a code snippet that will register a Smarty output filter (changes the rendered template output prior to actually releasing the output) that preg_replaces any string that has:

    googleapis.* type='text/css'

    with a blank line.

     

  6. If interested, please read:

    No joke: Cloudflare takes aim at Google Fonts with ROFL
    https://www.theregister.com/2023/09/26/cloudflare_fnnts/
    
    Website fined by German court for leaking visitor's IP address via Google Fonts
    https://www.theregister.com/2022/01/31/website_fine_google_fonts_gdpr/

    Personally, I have evaluated the "Open Sans" font from Google as being completely unnecessary at this time.

    Perhaps, in the distant past, some browsers did not have a complete set of symbols for the entire UTF codepoints (which, if so, will show as black diamonds or upside down question marks). Perhaps, at that time, CubeCart's decision to pull in a font from a third-party was to solve that issue.

    In the Foundation skin template 'element.css.php', delete line 1 - the <link> statement.

  7. In the Foundation skin template element.product.vertical_gallery.php, use the following (make a backup of the existing file):

    <ul class="small-block-grid-1 medium-block-grid-2">
    <li>
    <div class="row">
       <div  class="medium-3 columns thinpad-right off-canvas-for-small vertical">
          <div id="scrollUp" class="scroller"><svg class="icon"><use xlink:href="#icon-angle-up"></use></svg></div>
          <ul class="{if !is_array($GALLERY) || count($GALLERY) < 2}hide-important {/if}clearing-thumbs small-block-grid-1" id="scrollContent" data-clearing>
             {foreach from=$GALLERY item=image}
             <li><a href="{$image.source}" class="th"><img src="{$image.small}" data-image-swap="{$image.medium}" data-caption="{$PRODUCT.name}{if !empty($image.image_tags.title)}: {/if}{$image.image_tags.title}" class="image-gallery" alt="{if isset($image.image_tags.alt) && !empty($image.image_tags.alt)}{$image.image_tags.alt}{else}{$image.name}{/if} - {$LANG.catalogue.click_enlarge}"{if isset($image.image_tags.title)} title="{$image.image_tags.title}"{/if}></a></li>
             {/foreach}
          </ul>
          <div id="scrollDown" class="scroller"><svg class="icon"><use xlink:href="#icon-angle-down"></use></svg></div>
       </div>
       <div class="small-12 medium-9 columns text-center nopad small-centered">
          <a href="#" class="open-clearing" data-thumb-index="0"><img src="{$PRODUCT.medium}" alt="{if isset($PRODUCT.image_tags.medium.alt) && !empty($PRODUCT.image_tags.medium.alt)}{$PRODUCT.image_tags.medium.alt}{else}{$PRODUCT.name}{/if}"{if isset($PRODUCT.image_tags.medium.title)} title="{$PRODUCT.image_tags.medium.title}"{/if} id="img-preview"></a>
          <p class="show-for-small-only">{if is_array($GALLERY) && count($GALLERY) > 1}{$LANG.catalogue.tap_gallery}{else}{$LANG.catalogue.tap_enlarge}{/if}</p>
       </div>
    </div>
    </li>
    <li>
    <div class="row">
       <div class="small-12 columns thinpad-left">
          {include file='templates/element.product.options.php'}
          {include file='templates/element.product.review_score.php'}
          {include file='templates/element.product.call_to_action.php'}
       </div>
    </div>
    </li>
    </ul>

     

  8. To answer the social media icon question, in admin, Store Settings, General tab, delete all the entries in the Social Account section. (This is actually in reference to CC654 - I haven't explored CC655 yet.) Have CubeCart clear its internal cache.

    In admin Store Settings, Locale Settings section, make sure Default Language is set to what you want (English (US)?).

    Next, in admin, Administrators, edit your admin profile. Select as your personal Default Language what you want (English (US)?).

  9. The part in red is informational. It is not a response to any offense. It is very much like a sign on the door of a business: No Smoking. It is there to inform you, regardless whether you are or are not a smoker.

    I do see the User/Pass part of the conversation. but secureserver.net is not agreeing to what they should be.

    If you copy/pasted the username and/or password into these fields, the copy may have grabbed an invisible tab or newline character. So, blank those fields and then manually type in what they should be.

     

  10. Then I wonder how the test succeeded. Looking again at the conversation of the test, I see that there is no part that says, "Give me your Username," and "Give me your Password." Strange.

    Anyway, in Store Settings, Advanced tab, for the "Use SMTP Authentication (Normally Required)", select Yes.

    Then fill in the SMTP Username and SMTP Password fields.

    Test. In the test response conversation, make sure there is a part that the Client sends to the Server a (possibly hashed) username and a (possibly hashed) password. But DO NOT post what those values are, here in the forums!

  11. It is the whole reported number as the percentage, that is, for you, 7.00 (do not include the actual percent character).

    If you are experiencing this in CC654, please know that several stores are experiencing tax calculation issues.

    The solution at present is to make an edit to the following file:

    /classes/cart.class.php, line 1203, remove the line:

    $this->get();

    The value $37.90 is 3X what the tax should be, thus somewhere, somehow, CubeCart is running $179 through the tax calculator three times. (Personally, I have not discovered why, but the programmers imply this should be the fix.)

    • Like 1
  12. My feeling is that there is a new or newly revealed systemic issue in the CC654 code, meaning whether it is a "clean" install or an "upgrade", the end result will be the same.

    Which is to say, an upgrade is actually a whole-cloth replacement of all the system files and the Foundation skin.

    I do not think it likely that there is a new incompatibility between CC654 code and any module, especially where tax calculations are concerned.

     

  13. When viewing a list of products in a given category, when that list is in 'grid' view, the product name (title) is truncated to 38 characters (including spaces), followed by a three-dot character (ellipsis). The same applies to the listing on the homepage.

    Using a programmer's text editor, please edit these files:

    content.homepage.php, near line 29:
    From:
    <h3><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></h3>
    To:
    <h3><a href="{$product.url}" title="{$product.name}">{$product.name}</a></h3>
    
    content.category.php, near line 137:
    From:
    <h3><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></h3>
    To:
    <h3><a href="{$product.url}" title="{$product.name}">{$product.name}</a></h3>

    Have CubeCart clear its internal cache (in admin, click the "Clear Cache" button at the upper-right corner).

  14. 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.

     

  15. 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.

     

     

  16. 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.

     

×
×
  • Create New...