Jump to content

Lunalphic

Members
  • Posts

    10
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Lunalphic

  1. Good evening,

     

    Is it possible to take a php element as the shopping cart or my account information to another page?

     

    I have a MAINPAGE(www.website.com/index.html) which is before the SHOP(website.com/shop/index.php)

     

    Is it possible to cross elements from the SHOP to the MAINPAGE? Do I need to convert the index.html to index.php? what is the easiest way to to that?

     

    Thank you in advance.

     

  2. Could it be something related to the following errors when I inspect:

    Uncaught ReferenceError: $ is not defined
        at page_loader.js:13:5
    (anonymous) @ page_loader.js:13
    load (async)
    (anonymous) @ page_loader.js:11

     

    or this:

    Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform
    A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
    To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
    Note that for performance reasons, only the first access to one of the properties is shown.
    1 source
    bubble_compiled.js:1
    Learn more: User-Agent String Reduction
  3. Thanks for the time you took to answer. I am not looking for the shopping cart box.

     

    I would like to move the header shopping cart instead (the one on the header, with a dropdown and a cart icon).

     

    It is the code which I literally pasted on my previous post. I can't find that in any module, only there.

  4. Dear community,

     

    I apologize for my lack of experience in.php.

     

    How do I move the cart from the multi_template_default to the header_page_manager.

     

    What I did was move the cart code from multi_template_default.php to header_page_manager.php but the page breaks down, I guess it isn't that simple.

     

    Any experienced user willing to give me some guidance on what else needs to be done? Thank you in advance.

     

        <div class="row">
          <div class="col-md-12 group">
            <span class="col-md-10 float-end text-end headerMultiTemplateDefaultCartLink">
    <?php
      if ($CLICSHOPPING_ShoppingCart->getCountContents() > 0) {
    ?>
             <ul>
              <li class="dropdown headerMultiTemplateDefaultShoppingCart">
                <a class="dropdown-toggle headerMultiTemplateDefaultShoppingCart" data-bs-toggle="dropdown" href="#"><?php echo '<i class="bi bi-cart-fill headerMultiTemplateDefaultShoppingCart" aria-hidden="true"></i>&nbsp;&nbsp;&nbsp;&nbsp;' . $shopping_cart ?></a>
                <ul class="dropdown-menu">
                  <li role="separator"></li>
    <?php
      $products = $CLICSHOPPING_ShoppingCart->get_products();
    
      foreach ($products as $k => $v) {
        echo '<li class="headerMultiTemplateDefaultLi">&nbsp;&nbsp;
                <span class="float-start">' . $v['quantity'] . ' - ' . $v['name'] . '</span>
                <span class="float-end">' .  $CLICSHOPPING_Currencies->displayPrice($v['final_price'], $CLICSHOPPING_Tax->getTaxRate($v['tax_class_id']), $v['quantity']) . '</span>
             </li>
             ';
      }
    ?>
                    <li role="separator" class="h-divider"></li>
                    <li class="headerMultiTemplateDefaultLi">&nbsp;&nbsp;
                      <span class="float-start"><?php echo CLICSHOPPING::getDef('modules_header_multi_template_shopping_cart_total_content'); ?></span>
                      <span class="float-end text-end"><?php echo $CLICSHOPPING_Currencies->format($CLICSHOPPING_ShoppingCart->show_total()); ?></span>
                    </li>
                    <li role="separator" class="h-divider"></li>
                    <li class="headerMultiTemplateDefaultLi">
                      <span class="float-start headerMultiTemplateDefaultShoppingSmallCart"><i class="bi bi-cart-fill">&nbsp;&nbsp;</i><?php echo HTML::link(ClicShopping::link(null, 'Cart'), CLICSHOPPING::getDef('modules_header_multi_template_shopping_cart_view_cart')); ?></span>
                      <span class="float-end headerMultiTemplateDefaultCheckout"><i class="bi bi-arrow-right-square-fill"></i>&nbsp;&nbsp;<?php echo HTML::link(ClicShopping::link(null, 'Checkout&Shipping'), CLICSHOPPING::getDef('modules_header_multi_template_shopping_cart_checkout')); ?></span>
                    </li>
                  </ul>
                </li>
             </ul>
     <?php
      } else {
        echo '<ul>
                <li class="headerMultiTemplateDefaultShoppingCart"><i class="bi bi-cart-fill headerMultiTemplateDefaultShoppingCart" aria-hidden="true"></i>&nbsp;&nbsp;&nbsp;&nbsp;' . CLICSHOPPING::getDef('modules_header_multi_template_shopping_cart_no_content') . '</li>
             </ul>
             ';
      }
    ?>
            </span>
          </div>
        </div>

     

  5. There is no error. 

    No specific installation problems.

    Yesterday after continuously trying I managed to log in but today it is white again.

    I have the same problem with the official demo and on other devices.

    I suspect that it is something with my network, blocking something. Only happens with the admin page. When I inspect the page the elements are there.

    No one had this problem before?

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use