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 reBOOT (reDUX) Template (https://forum.x-cart.com/showthread.php?t=77655)

sinobest 02-10-2021 02:32 PM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Originally Posted by PhilJ
/skin/reboot/customer/main/subcategories.tpl



The different category has different FAQs, if I add the codes at subcategories.tpl, all categories will have the same FAQs, if i use if clause to add FAQs, subcategories.tpl will be very big.


I think it is better we can add FAQs from x-cart back end, it is easy for customers to add/modify/delete FAQs.

PhilJ 02-11-2021 12:40 AM

Re: X-Cart reBOOT (reDUX) Template
 
I'll consider adding category FAQs... need to decide on the best way first.

In the meantime you can just use code like this in /skin/reboot/customer/main/subcategories.tpl
Quote:

{if $current_category.categoryid eq 123}
...
{elseif $current_category.categoryid eq 234}
...
{elseif $current_category.categoryid eq 345}
...
{/if}


sinobest 02-11-2021 01:28 AM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Originally Posted by PhilJ
I'll consider adding category FAQs... need to decide on the best way first.

In the meantime you can just use code like this in /skin/reboot/customer/main/subcategories.tpl





Say, I have 200 categories, the file will be very very big, it is better to save each faq at the database, just add a field.

elmirage001 02-13-2021 11:19 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil !!


(I posted in reBOOT by mistake so I deleted there and adding here.)


I'm finally back to working on reDUX and loving it even more!
Question: Is reDUX optimized for Core Web Vitals and do you have any tips for us? Google is set to turn this on in May.

Thank you so much!

Paul

peggyr 02-14-2021 08:09 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil,

Your update download, X-Cart_reBOOT_[reDUX]_4.7.12.4.zip contains REBOOT_VERSION as 4.7.12.5

X-Cart reBOOT reDUX Version 4.7.12.5 with a 1-21-21 date.

Is this zip 4.7.12.5, or should the REBOOT_VERSION file be 4.7.12.4?

Thanks

PhilJ 02-15-2021 01:40 AM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Is reDUX optimized for Core Web Vitals and do you have any tips for us? Google is set to turn this on in May.
@ Paul, I'm looking at ways to improve the CWV's, but a lot depends on your server spec/configuration. I've had a few people asking me about this, only to find that they're on cheap shared hosting, or they have poorly optimised images etc.

There's some good tips here BTW...
https://www.practicalecommerce.com/seo-common-fixes-to-core-web-vitals
https://blog.uptrends.com/web-performance/6-ways-to-reduce-time-to-first-byte-ttfb/

The positioning of javascript files can't be fixed, it's an age old limitation with X-Cart Classic.

CLS can probably be improved by not using carousels.

reDUX should already score highly for SEO in Lighthouse. Structured data is already taken care of.

Quote:

Is this zip 4.7.12.5, or should the REBOOT_VERSION file be 4.7.12.4?
@ Peggy, that's a typo, it's still at v4.7.12.4, I've updated the zip file, sorry for any confusion.

Next major update will happen when v4.7.13 gets released, fingers crossed.

sinobest 02-15-2021 06:47 PM

Re: X-Cart reBOOT (reDUX) Template
 
How to set the category Second Description to default editor, please?
Or disable the WYSIWYG editor.

PhilJ 02-16-2021 12:01 AM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

How to set the category Second Description to default editor, please?
Or disable the WYSIWYG editor.
In /skin/reboot/admin/main/category_modify.tpl

Replace...
Quote:

<textarea name="seo" cols="45" rows="6" class="InputWidth redactorme">{$current_category.seo}</textarea>
With...
Quote:

{*<textarea name="seo" cols="45" rows="6" class="InputWidth redactorme">{$current_category.seo}</textarea>*}
{include file="main/textarea.tpl" name="seo" cols=65 rows=15 data=$current_category.seo entity_id=$current_category.categoryid entity_type='category_description_2'}
Then in /skin/common_files/modules/Redactor/redactor.tpl

Around line 101, remove...
Quote:

textarea[name=seo],

sinobest 02-16-2021 01:59 AM

Re: X-Cart reBOOT (reDUX) Template
 
https://www.opticalusa.com/

how to set the numbers of posts will be shown under "Latest from the Blog" at the homepage, say only display 4 latest posts, and let the new posts display in a row, please?


Thanks

PhilJ 02-16-2021 04:30 AM

Re: X-Cart reBOOT (reDUX) Template
 
1 Attachment(s)
@sinobest, upload attached featured_items_blog.tpl to /skin/reboot/customer/

Then in your home template (skin/reboot/custom/home/home_style_x.tpl)

Replace...
Quote:

{include file="customer/featured_items.tpl" items=$blog_latest
With...
Quote:

{include file="customer/featured_items_blog.tpl" items=$blog_latest
If you want further help, it would be a paid job.

PhilJ 02-16-2021 02:31 PM

Re: X-Cart reBOOT (reDUX) Template
 
https://css-tricks.com/how-the-web-is-really-built/

https://remysharp.com/2021/02/11/the-web-didnt-change-you-did

PhilJ 02-16-2021 02:56 PM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Say, I have 200 categories, the file will be very very big, it is better to save each faq at the database, just add a field.
@sinobest, what's the max # of FAQs per category do you think you'll need? Was thinking 10 should be enough...

sinobest 02-17-2021 03:38 PM

Re: X-Cart reBOOT (reDUX) Template
 
about 300 categories, I will add the same as https://www.eyewearcanada.com/ (Magento). For Magento, I have added one FAQ(schema) under https://www.eyewearcanada.com/safety-glasses successfully. The codes are save at the second description block.

sinobest 02-17-2021 03:49 PM

Re: X-Cart reBOOT (reDUX) Template
 
https://www.rxsafetyglassescanada.com/ based on x-cart, i have added about 105 categories/subcategories.

peggyr 02-19-2021 05:07 PM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil,

I'm on reBOOT (reDUX) 4.7.12.2. I just did a test upgrade on a test server to 4.7.12.4.

Is there a way where I can "SAVE" my already configured template settings first, so I don't have to go and reconfigure all the changes I have made?

That includes any 'skin/reboot/custom' files.

I've looked at comparing the SQL updates from those I have in place, and the new ones on 4.7.12.4, and coming up with my own 'alter' etc changes. That isn't an easy option, though there most likely isn't an easy option.

Though having the 'template settings' I currently have in place, not being modified, would go a long ways to speeding up the process, if there is some easy way to do that.

Thanks for any ideas

Peggy

elmirage001 02-20-2021 08:42 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil,

For reDUX should we be using Memcache?

Code:

/**
 * Memcache routine
 * Defines whether you want to use memcache for data caching
 * http://help.x-cart.com/index.php?title=X-Cart:Using_Memcached_with_X-Cart
 */
define('USE_MEMCACHE_DATA_CACHE', true);
define('MEMCACHE_SERVER_ADDRESS', 'localhost');
define('MEMCACHE_SERVER_PORT', 11211);


Thank you so much!

Paul

PhilJ 02-20-2021 09:07 AM

Re: X-Cart reBOOT (reDUX) Template
 
@Paul I haven't tried memcache yet, as I don't really need it at the moment.

But give it a go if you like... Just be careful with the install commands - Plesk | CPanel

Also note, https://forum.x-cart.com/showthread.php?t=74397&highlight=memcache

sinobest 02-21-2021 07:06 AM

Re: X-Cart reBOOT (reDUX) Template
 
google site:www.opticalusa.com
I found an issue, google indexed 2 URLs for the same product:
https://www.opticalusa.com/gm231-prescription-safety-glasses-gray/
https://www.opticalusa.com/gm231-prescription-safety-glasses-gray/?modal=true&quickview=true

how to solve this issue, pls?

peggyr 02-21-2021 11:49 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil,

I'm currently in production on reDUX 4.7.12.2. Testing with reDUX 4.7.12.4

1) When testing on MOBILE, the 'category icon' does NOT to appear when 'featured categories' are displayed on the HOMEPAGE. The ICON 'DOES' appear with version 4.7.12.2.

I found what the difference was.

In skin/reboot/customer/featured-items.tpl

Around line 112 I added ‘data-sizes=”auto” which was in the 4.7.12.2 code, and this had the mobile work as I wanted. Is there a reason you removed 'data-sizes="auto" from the 4.7.12.4 code?


FROM

<p class="text-center"><a href="home.php?cat={$i.categoryid}"><img class="lazyload img-fluid featured-item-icon" src="{$AltImagesDir}/spacer.gif" data-src="{$i.image_path|default:'./default_logo.gif'}" alt="{$i.category|amp}" title="{$i.category|amp}" width="{$i.image_x|default:'150'}" height="{$i.image_y|default:'150'}"></a></p>

TO

<p class="text-center"><a href="home.php?cat={$i.categoryid}"><img class="lazyload img-fluid featured-item-icon" data-sizes="auto" src="{$AltImagesDir}/spacer.gif" data-src="{$i.image_path|default:'./default_logo.gif'}" alt="{$i.category|amp}" title="{$i.category|amp}" width="{$i.image_x|default:'150'}" height="{$i.image_y|default:'150'}"></a></p>



Thanks.

Peggy

peggyr 02-21-2021 12:04 PM

Re: X-Cart reBOOT (reDUX) Template
 
1 Attachment(s)
Hi Phil,

A question about 'hidden categories'. I've set up 'hidden categories' to add subsets of products for upselling, and change the order based on the main product I'm upselling to.

This works fine.

However, I just ran a test where I 'searched for an item', and items in 'hidden categories' appear.

Where can I change the results to only return items in 'non-hidden' categories?

The "I am searching for" field image is attached.

Thanks

Peggy

PhilJ 02-23-2021 03:19 AM

Re: X-Cart reBOOT (reDUX) Template
 
@Sinobest, that's already been addressed. Use the recommended root robots.txt file and upload the new /skin/reboot/customer/main/product_quickview_btn.tpl

Use the Google URL removal tool for duplicate URLs.

PhilJ 02-23-2021 04:42 AM

Re: X-Cart reBOOT (reDUX) Template
 
CDSEO users, use this alternative breadcrumbs code in /skin/reboot/customer/bread_crumbs_desktop.tpl
Code:

<ol class="breadcrumb p-0 border-0 rounded-0 d-none d-lg-block" itemscope itemtype="https://schema.org/BreadcrumbList">
{foreach from=$location item=l name=location}
<li class="breadcrumb-item text-{$config.Reboot.reboot_breadcrumb_text_colour|default:'dark'}" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><a itemprop="item" href="{if $smarty.foreach.location.first}{$current_location}{else}{if !$smarty.foreach.location.last}{$l.1|amp}{else}//{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{/if}{/if}"><span itemprop="name">{if $smarty.foreach.location.first}<i class="fa fa-home fa-fw" aria-hidden="true"></i>{$config.Company.company_name|amp}{*{$lng.lbl_site_path}*}{else}{$l.0|amp}{/if}</span></a><meta itemprop="position" content="{$smarty.foreach.location.iteration}" /></li>
{/foreach}
</ol>

Then comment out, or delete the breadcrumbs JSON-LD code section in /skin/reboot/custom/json_ld.tpl

peggyr 02-25-2021 02:20 PM

Re: X-Cart reBOOT (reDUX) Template
 
2 Attachment(s)
Hi Phil,

What redux template parameter for 4.7.12.4 controls, the number of 'columns' for the Home Page with Featured Categories?

My test server 4.7.12.4 link has 4 columns on a full PC 15" screen window

My live 4.7.12.2 site, has 2 columns.

I've tried to identify the parm from inspecting elements from both urls for the Live and Development site, attached.

Thanks for any ideas

Peggy

PhilJ 02-26-2021 01:47 AM

Re: X-Cart reBOOT (reDUX) Template
 
@Peggy, look in /skin/reboot/customer/featured_items.tpl

You need to tweak the columns around line 20
Code:

{if $descr eq "Y"}
    {assign var="cols" value="col-12 col-sm-6 col-md-6 col-lg-6 col-xl-{if $config.Reboot.reboot_main_container eq 'fluid'}{if $has_sidebar}6{else}6{/if}{else}{if $has_sidebar}6{else}6{/if}{/if}"}

Bootstrap grid uses 12 columns per row, so
col-x-12 = 1 column
col-x-6 = 2 columns
col-x-4 = 3 columns
col-x-3 = 4 columns

PhilJ 02-26-2021 06:51 AM

Re: X-Cart reBOOT (reDUX) Template
 
'Easy Custom Contact Forms' are coming back to reDUX! ... working on it over the weekend.

In the meantime, just made this category enquiry form widget if anyone's interested...

https://xcartmods.com/redux4712/category-checklist.html

peggyr 02-26-2021 09:37 AM

Re: X-Cart reBOOT (reDUX) Template
 
Thanks Phil,

Is there a reason that

featured_items.tpl, around line 20 was

In 4.7.12.2

{if $descr eq "N"}

and then

4.7.12.4

{if $descr eq "Y"}

THanks

PhilJ 02-26-2021 11:25 AM

Re: X-Cart reBOOT (reDUX) Template
 
Not sure/can't remember Peggy, makes no difference anyway, same logic, just in reverse.

Feel free to drop by live chat if you want me to fix anything for you.

peggyr 02-26-2021 12:11 PM

Re: X-Cart reBOOT (reDUX) Template
 
Phil,

Thanks for fixing.

I will be testing 4.7.12.4 on my dev store and plan to cut over to live store from 4.7.12.2 to 4.7.12.4 next weekend


Peggy

elmirage001 02-26-2021 01:16 PM

Re: X-Cart reBOOT (reDUX) Template
 
Quote:

Originally Posted by PhilJ
'Easy Custom Contact Forms' are coming back to reDUX! ... working on it over the weekend.


Perfect timing Phil! I'm just about at Forms on my reBOOT to reDUX conversion.

Thank you so much!

Paul

ITVV 02-28-2021 06:45 AM

Re: X-Cart reBOOT (reDUX) Template
 
Moved from Dev Server to Production Server images missing in Admin

Hi all,

Please forgive this off topic message but I am banging my head on the desk ](*,)

I have moved from our dev server to our production server and images such as Product image and Thumbnails are missing in the admin panel 8O

If I try to replace them I can see that they have uploaded and the database has updated but still not showing in admin :roll:

Manufacture images are also not showing in the front or back-end :(

I have updated everything; config.php database, $xcart_http_host, $xcart_https_host, $xcart_web_dir etc.

Updated .htaccess for Clean URLs and they are all working.

If I right-click on a missing manufactures logo image in the front end and click on “View Image Info” and select an image I get: -

https://www.mywebsite.com/image.php?type=M&id=1

If I browse to this I get: -

The image “https://www.mywebsite.com/image.php?type=M&id=1” cannot be displayed, because it contains errors 8O

Everything is working except the images.

Anyone know what I have missed :?

Many thanks in advance for any kind help

Kind regards

ITVV

PhilJ 02-28-2021 07:22 AM

Re: X-Cart reBOOT (reDUX) Template
 
Silly question, but are you sure you did a 1:1 copy, files and DB?

Could take a look if you want, or maybe re-do the migration for you... Live chat is available.

ITVV 02-28-2021 08:20 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil,

Thanks for the reply.

Yup 1:1 copy of site and DB.

Also checked permissions on files and folders. Cleared cache etc

As I say if I delete a manufactures logo and then add it back in it updates DB (xcart_images_M) and uploads the image to folder (images/M) but does not show up in the admin panel or on the store front!

It's really strange?

Kind regards as always

ITVV

PhilJ 02-28-2021 08:40 AM

Re: X-Cart reBOOT (reDUX) Template
 
Checked the logs?
Checked /admin/images_location.php ?
Tried regenerating the image cache?

ITVV 02-28-2021 09:18 AM

Re: X-Cart reBOOT (reDUX) Template
 
Yup tried all that - all OK

Nothing in the logs. image locations are file system.Regenerating the image cache no difference :(

The only thing that appears to be common is that all the fails seem to reference image.php: -

mydomain.com/image.php?type=P&id=7&ts=1614532468

Really confussing 8O 8O 8O

Dougrun 02-28-2021 09:32 AM

Re: X-Cart reBOOT (reDUX) Template
 
what browser? Sometimes the browser cache's are persistent.

ITVV 02-28-2021 09:35 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Dougrun,

Tried a few and cleared browser cache!

Just cannot see whats wrong?

Kind regards

ITVV

PhilJ 02-28-2021 09:47 AM

Re: X-Cart reBOOT (reDUX) Template
 
You can remove all folders in /var and it will auto re-generate the cache.
But to me, sounds like one or more PHP files didn't upload/transfer correctly, or are corrupted.
Maybe there's a BOM issue, (byte order mark) on some. I can send you a file to check/fix.
You should always be uploading with UTF-8 encoding. Depends what method you used to do the transfer...

ITVV 02-28-2021 09:52 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Phil,

Yup I have already tried several times deleting the /var folder - no joy :(

Don't think it's a DB issue as I have just swapped it over to the dev DB and same result 8O

I am starting to think you are right - maybe a corrupt file?

Would appreciate the check/fix file please 8)

Going to logout for the night as dinner is ready :D

Many thanks for the kind help

ITVV 02-28-2021 09:54 AM

Re: X-Cart reBOOT (reDUX) Template
 
PS,

Yup all is UTF-8 encoding.

Zipped in dev root folder and unzipped in production root folder

peggyr 02-28-2021 10:12 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi

have you checked the Settings->Images location fromy our admin panel, and if the images are stored in 'File System' then verify that the images tables, eg

xcart_images_P xcart_images_D xcart_images _T etc have the correct images_path?


All times are GMT -8. The time now is 07:56 AM.

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