X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   X-Cart - Ultra - Responsive Template (https://forum.x-cart.com/showthread.php?t=74358)

Bluemonk 10-26-2016 05:42 AM

Re: X-Cart - Ultra - Responsive Template
 
Hi Phil, Can you please let me know how to adjust the size and color of the slider overlay in Ultra? Thanks

PhilJ 10-26-2016 06:04 AM

Re: X-Cart - Ultra - Responsive Template
 
Look in skin/ultra/css/swipers.css

.swiper-caption { ... }

If you don't use it already, I strongly recommend Firebug for tracking down CSS.

cflsystems 10-26-2016 07:44 AM

Re: X-Cart - Ultra - Responsive Template
 
There is an issue with Ultra and the stock Banners module.

When banner is created and only one image is added it can be set to static so there is no rotation. With Ultra however the template takes over and converts all banners into slider. So no matter how you set the banner with one image - it will just loop itself.

Phil you should look into this and not convert banners into slides if not necessary.
Or am I missing some setting?

PhilJ 10-26-2016 08:33 AM

Re: X-Cart - Ultra - Responsive Template
 
@Steve, in skin/ultra/modules/Banner_System/banner_rotator.tpl

Replace...
Code:

{foreach from=$banners item=banner}
{if $banner.content ne ''}
{if $banner.nav eq 'Y'}


With...
Code:

{foreach from=$banners item=banner}
{if $banner.content ne '' && $banner.content|@count gt 1}
{if $banner.nav eq 'Y'}


Then in skin/ultra/js/custom/swipers.js underneath BANNER SYSTEM

Replace...
Code:

          autoplay: 3000,

With...
Code:

            autoplay: $this.find('.swiper-slide').length > 1 ? 3000 : false,

If need be, do the same for grabCursor and loop...
Code:

            grabCursor: $this.find('.swiper-slide').length > 1 ? true : false,
            loop: $this.find('.swiper-slide').length > 1 ? true : false,


cflsystems 10-26-2016 10:46 AM

Re: X-Cart - Ultra - Responsive Template
 
Thanks Phil, we managed to code a solution that works for us. I just wanted to post for others to know and for feature versions of the skin to be corrected.

PhilJ 10-27-2016 10:26 AM

Re: X-Cart - Ultra - Responsive Template
 
27th October 2016 - v1.0.3 (X-Cart v4.7.6)
  • New 'header_lower_cats' setting for # of header menu parent categories
  • New 'single_product_redirect' setting to redirect to the product page, if only 1 product in category / search result
  • New 'email_header_logo' and 'admin_header_logo' settings added
  • New 'descriptions_on_thumb_hover' setting to display short description snippet on thumbnail hover - Example
  • New header customer account quick access dropdown menu for when logged in
  • 'Smart Grid' and 'Masonry Grid' widgets added
  • 'Animated elements on scroll' feature added - Examples
  • New 'Easy Custom Contact Forms' addon included
  • New 'Product Additional Data' addon included for product downloads and FAQ - Example
  • Product 'Quick View' improved to display product detailed images gallery
  • Products 'live' sort and 'standard' sort now combined - Example
  • Google maps added to customer address book (not in popup dialog box)
  • Banner system module tweaked to prevent sliding if only 1 banner in the location
  • Various tweaks to the Blog addon, title tags, author names added, footer block fix
  • New glossary addon options, caseSensitive and exactMatch
  • Minor tweaks and improvements
  • Uses Bootstrap v4 Alpha 4

PhilJ 11-02-2016 08:24 AM

Re: X-Cart - Ultra - Responsive Template
 
New 'Product Additional Data' addon included, up to 5 downloads and 10 FAQs per product. Example | Admin | Admin.

SEO is working well.

cflsystems 11-02-2016 09:02 AM

Re: X-Cart - Ultra - Responsive Template
 
When the addons are not installed - in particular "featured category", "testimonials", "wp"... - the log files get filled up with sql errors. The altskin_common.php runs on every page load and queries database for tables which do not exist. This could have been coded in a better way to check for the features or tables and not the way currently is.
Imagine if the site has sql errors email active - admin will get one each time page is loaded....

PhilJ 11-02-2016 10:55 AM

Re: X-Cart - Ultra - Responsive Template
 
I don't get any errors whatsoever. Log files are one of the things I check most closely.

You might have an version of altskin_common.php

You can send me the log files if you like and I'll investigate.

cflsystems 11-02-2016 11:09 AM

Re: X-Cart - Ultra - Responsive Template
 
Here is an example

Quote:

[29-Oct-2016 04:41:59] SQL error:
SQL query : SELECT * FROM xcart_categories WHERE avail='Y' AND featured='Y' ORDER BY RAND() LIMIT 8
Error code : 1054
Description : Unknown column 'featured' in 'where clause'
Request URI: /xcart/home.php?shopkey=cflsystems
Backtrace:
/include/func/func.db.php:738
/include/func/func.db.php:615
/altskin_get_featured_categories.php:19
/altskin_common.php:9
/auth.php:120
/home.php:48

-------------------------------------------------

[29-Oct-2016 04:41:59] SQL error:
SQL query : select 1 from `altskin_testimonials` WHERE approved = 'Y' LIMIT 1
Error code : 1146
Description : Table 'xc47x.altskin_testimonials' doesn't exist
Request URI: /xcart/home.php?shopkey=cflsystems
Backtrace:
/include/func/func.db.php:738
/include/func/func.db.php:615
/altskin_common.php:17
/auth.php:120
/home.php:48

-------------------------------------------------
[29-Oct-2016 04:41:59] SQL error:
SQL query : select 1 from `wp_posts` WHERE post_status = 'publish' LIMIT 1
Error code : 1146
Description : Table 'xc47x.wp_posts' doesn't exist
Request URI: /xcart/home.php?shopkey=cflsystems
Backtrace:
/include/func/func.db.php:738
/include/func/func.db.php:615
/altskin_common.php:23
/auth.php:120
/home.php:48



The 2 tables and "featured" field in categories do not exist since the addons are not needed and not installed

Also even if the WP is installed the mod will look for its tables within the same XC database. I would never put the blog tables within XC database - it will have its own database. With WP this is mandatory given the fact it is the most hacked platform.

Unless I am missing some setting in admin


All times are GMT -8. The time now is 08:57 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.