Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 01/12/2021 :  21:26:30  
Hi

In PageSpeed Insights. I tested my website 3dlens.com and got 0.15 score of Cumulative Layout Shift (CLS), so I tried to find the reason.
I found my website html code has 2 <table> codes in left side block, which may cause poor CLS, but I am Not sure.

However, in the project.dwt there is no <table> code:

<div class="left_contain_main">
<div class="left_contain_top">
My Shopping Cart
<?php include "vsadmin/inc/incminicart.php" ?>
</div>
<div class="left_contain_bottom">  </div>
</div>

<div class="left_contain_main">
<div class="left_contain_top">
My Account
<div class="left_text">
<ul>
<li><?php include "vsadmin/inc/incminilogin.php" ?>
</li>
</ul>
</div>
</div>
<div class="left_contain_bottom">  </div>
</div>


I do not know how the table code came happen to my site.

In ECT demo site, there is no table code.


Jim
V7.25

Edited by - jimhuang on 01/12/2021 21:27:06

1818charlie
ECT Moderator

United Kingdom
1194 Posts

Posted - 01/13/2021 :  03:44:16  
Hi Jim

On the home page, only page I have checked the source of, there are <table> tags in the page which are being generated from the include lines

eg:

<div class="left_contain_main">
<div class="left_contain_top">
My Shopping Cart
<table class="mincart" width="130" bgcolor="#FFFFFF">

And also of note there is a stray <div> tag just above the footer, which is most likely on all pages

</div></div>
<footer>
<div class="footer_top">
<div class="main">
<div class="footer_top_left">


Steve
Egerton Village, Bolton, UK

Edited by - 1818charlie on 01/13/2021 03:51:25

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 01/14/2021 :  04:07:04  
Hi Steve

Thanks,
I have solved the stray </div>

Since there is no table tag in the ECT demo site and other member's website, do I need to delete the <table> tag on my site?
How to do it?

Jim

1818charlie
ECT Moderator

United Kingdom
1194 Posts

Posted - 01/14/2021 :  05:20:20  
Hi Jim

There is nothing to delete in the dwt file. It may depend on how long you have had the template as recently Vince has been working on the templates having zero tables, where practical. When Vince sees this he may be able to enlighten you

Steve
Egerton Village, Bolton, UK

Edited by - 1818charlie on 01/14/2021 05:23:20

Vince
Administrator

42761 Posts

Posted - 01/14/2021 :  13:41:49  
Hi Jim
The incminicart.php and incminilogin.php are the old, table-based scripts and they have now been replace for:

For the minicart use this...

<?php
$minicssaction="minicart";
include "vsadmin/inc/incminicss.php";
?>

For the mini login use this...

<?php
$minicssaction="minilogin";
include "vsadmin/inc/incminicss.php";
?>

That should produce more up-to-date CSS based markup

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

jimhuang
Advanced Member

Taiwan
248 Posts

Pre-sales questions only
(More Details...)

Posted - 01/14/2021 :  21:44:06  
Hi Vince

It works, thank you.

One more question, how to update recently viewed?
<?php include "vsadmin/inc/increcentview.php" ?>

Jim

Vince
Administrator

42761 Posts

Posted - 01/15/2021 :  01:44:30  
Hi Jim
Same idea really...

<?php
$minicssaction="recentview";
include "vsadmin/inc/incminicss.php";
?>

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000