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)

PhilJ 01-05-2021 02:27 PM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Dougrun, it's working here fine, no errors in the console, maybe try a browser hard refresh?

Edit: timezone issue related to delivery countdown, will look into it. Page should load fine for now...

Simple workaround for the 'constant page refreshing' issue, is to comment out or remove...
Quote:

location.reload();

from...

skin/reboot/js/plugins/nddcn.js

Dougrun 01-06-2021 11:17 AM

Re: X-Cart reBOOT (reDUX) Template
 
in the demo ,the variants all appear (with 0 qty greyed out), how do I enable that? mine are showing as a selection list like my old skin.
nevermind, found it.

PhilJ 01-06-2021 12:58 PM

Re: X-Cart reBOOT (reDUX) Template
 
sorted Doug? if not, just shout.

Dougrun 01-06-2021 02:00 PM

Re: X-Cart reBOOT (reDUX) Template
 
yes, i found the setting.

I will have to adapt my product page, I created an if/then so certain mfg show no price and ADD TO CART for price for MAP policy compliance.

Dougrun 01-06-2021 03:55 PM

Re: X-Cart reBOOT (reDUX) Template
 
on the product details page, how can I remove the "tags" box under the images?


also,. i'd like to move the 'prev-all-next' item navigation to the top near the breadcrumb.

sinobest 01-07-2021 05:21 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi, PhilJ, can we set more than one category as build-in blog?

Dougrun 01-07-2021 12:37 PM

Re: X-Cart reBOOT (reDUX) Template
 
ok, I got the TAGS removed. I see there is code for whether the description is truncated but I dont see it in the options menu. I can remove the code for it but i'd rather use the option if its there.

PhilJ 01-08-2021 04:15 AM

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

on the product details page, how can I remove the "tags" box under the images?
Comment them out in /skin/reboot/customer/main/product_product.tpl
Quote:

{include file="custom/tags.tpl" heading="5" title_padding="2" content_padding="3" icon="tags"}
The Next/Prev products can be commented out there also and relocated.


Quote:

Hi, PhilJ, can we set more than one category as build-in blog?
You can only have one parent category as your blog, but have as many blog subcategories as you want.

Just update the root categories after and it'll update the blog subcategories.

PhilJ 01-08-2021 04:18 AM

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

ok, I got the TAGS removed. I see there is code for whether the description is truncated but I dont see it in the options menu. I can remove the code for it but i'd rather use the option if its there.
If you mean on product listing pages, you could just increase the setting "Product rows - truncate descriptions (characters)" to say 9999 and it'll stop truncating the descriptions.

Dougrun 01-08-2021 09:01 AM

Re: X-Cart reBOOT (reDUX) Template
 
I don't see that truncate setting. I mean on the product details page for the description.

PhilJ 01-08-2021 09:11 AM

Re: X-Cart reBOOT (reDUX) Template
 
skin/reboot/customer/product.tpl

Replace the two occurances of...
Quote:

{include file="custom/product/description.tpl" fulldescr=true nodialog=true card=true icon="info-circle" truncate="600"}
With...
Quote:

{include file="custom/product/description.tpl" fulldescr=true nodialog=true card=true icon="info-circle" truncate="9999"}
or
Quote:

{include file="custom/product/description.tpl" fulldescr=true nodialog=true card=true icon="info-circle" truncate=false}
I'll be adding a new template setting for this shortly.
The feature's there, mainly to not overwhelm mobiles users with content at once.

PhilJ 01-08-2021 09:14 AM

Re: X-Cart reBOOT (reDUX) Template
 
https://moz.com/blog/21-seo-tips-2021

Dougrun 01-08-2021 10:27 AM

Re: X-Cart reBOOT (reDUX) Template
 
1 Attachment(s)
Quote:

Originally Posted by PhilJ
Comment them out in /skin/reboot/customer/main/product_product.tplThe Next/Prev products can be commented out there also and relocated.




I see

Code:

{if $config.Appearance.display_np_products eq 'Y'}
  {include file="customer/main/np_products.tpl"}
{/if}



but removing it or moving it doesn't seem to have any affect. I cleared cache and browser too. I was able to add it in the product header where i want it but cant find the reference to it below....


.. nevermind, it was still in product.tpl

PhilJ 01-08-2021 11:17 AM

Re: X-Cart reBOOT (reDUX) Template
 
Try /skin/reboot/customer/main/product.tpl

Dougrun 01-08-2021 12:50 PM

Re: X-Cart reBOOT (reDUX) Template
 
on the admin side, my BCSE shipping per product addon is not showing up anymore. I think your admin product_modify conflicts with theirs in some way. If I switch back to ideal comfort, the BCSE mod works.

PhilJ 01-08-2021 12:54 PM

Re: X-Cart reBOOT (reDUX) Template
 
The template uses a custom /skin/reboot/main/product_details.tpl which overrides /skin/common_files/main/product_details.tpl

So add the module code for the custom product fields there.

Dougrun 01-08-2021 01:56 PM

Re: X-Cart reBOOT (reDUX) Template
 
ok, next issue, but i dont think its reboot related, i have XC's popup anywhere installed but its not working on any of my pages.

PhilJ 01-08-2021 02:26 PM

Re: X-Cart reBOOT (reDUX) Template
 
The popupanywhere module has been tested and it does work, but I generally don't recommend that module, as promotional popups are evidently annoying.

The necessary code is already added to...

/skin/reboot/customer/content.tpl
/skin/reboot/customer/service_js.tpl

Maybe clear your cache, or check that you've correctly configured your popups.

There's a timed event modal popup in the template settings > misc that you can use for similar purposes.

ITVV 01-09-2021 04:15 AM

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

I would like to increase the width of the Left Hand Sidebars (authbox, special menu etc) and decrease the size of the Main Container to the right.

What css code would I have to add to bootstrap-overrides.css to achieve this please?

Also would main site slider adjust to the new decreased size of the main container?

Many thanks in advance as always

Kind regards

ITVV

PhilJ 01-09-2021 04:26 AM

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

I would like to increase the width of the Left Hand Sidebars (authbox, special menu etc) and decrease the size of the Main Container to the right.
No need to change CSS, you can just tweak /skin/reboot/custom/main/columns.tpl

col-lg-9 change to col-lg-8 (two occurances)
col-lg-3 change to col-lg-4 (two occurances)


Quote:

Also would main site slider adjust to the new decreased size of the main container?
For your 21:9 ratio slider, images should be 867 x 372

https://xcartmods.com/redux4712/skin/reboot/custom/reboot/21x9.html

ITVV 01-09-2021 04:29 AM

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

Originally Posted by PhilJ
No need to change CSS, you can just tweak /skin/reboot/custom/main/columns.tpl

col-lg-9 change to col-lg-8 (two occurances)
col-lg-3 change to col-lg-4 (two occurances)

For your 21:9 ratio slider, images should be 867 x 372

https://xcartmods.com/redux4712/skin/reboot/custom/reboot/21x9.html


Thanks Phil,

Brilliant support as always :D/ :D/ :D/

I appreciate your kind help and super fast responses

Kind regards

ITVV

sinobest 01-09-2021 05:22 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi, Phil. How to the FAQ at homepage and category as a product page, please?

ITVV 01-09-2021 06:09 AM

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

col-lg-9 change to col-lg-8 (two occurances)
col-lg-3 change to col-lg-4 (two occurances)

Hi Phil,

Sorry to be a pain :roll:

I have made the changes which were straight forward :D/

However, I need something in the middle of these settings. After the change the Left Hand Sidebars (authbox, special menu etc) are now a bit too wide :oops:

Is there a simple css tweak that I could make to tweak the widths of the new settings?

Once again many thanks

Regards

ITVV

PhilJ 01-09-2021 08:47 AM

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

Hi, Phil. How to the FAQ at homepage and category as a product page, please?
I won't be adding custom FAQ fields for homepage and categories.

Your best bet it to just use plain HTML like this, which also includes microsnippets...

Code:

<div class="details-summary-accordion" itemscope itemtype="https://schema.org/FAQPage">

<details class="my-1" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question" open="open">
<summary class="h4 bg-light border rounded px-3 py-2" itemprop="name">This is Question 1?</summary>
<div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<p itemprop="text">This is the answer to question 1.</p>
</div>
</details>

<details class="my-1" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<summary class="h4 bg-light border rounded px-3 py-2" itemprop="name">This is Question 2?</summary>
<div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<p itemprop="text">This is the answer to question 2.</p>
</div>
</details>

<details class="my-1" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<summary class="h4 bg-light border rounded px-3 py-2" itemprop="name">This is Question 3?</summary>
<div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<p itemprop="text">This is the answer to question 3.</p>
</div>
</details>

</div>



Which will look like this.

You can of course substitute the questions and answers for language labels.

You can change the CSS styles for details/summary accordions in /skin/reboot/css/utilities.css

PhilJ 01-09-2021 09:19 AM

Re: X-Cart reBOOT (reDUX) Template
 
@ ITVV, not easily, as it works off the 12 column Bootstrap grid. I'll have a think.

Why not just put the .container max-width back to 1366px?

I see you changed yours to 1200px.
Quote:

.container { max-width: 1366px !important; }
(bootstrap-overrides.css)

EDIT: you could try adding this CSS to bootstrap-overrides.css ...
Quote:

.col-lg-30, .col-lg-70 { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
.col-lg-30 { -ms-flex: 0 0 30%; flex: 0 0 30%; max-width: 30%; }
.col-lg-70 { -ms-flex: 0 0 70%; flex: 0 0 70%; max-width: 70%; }
Then use those classes for the main and sidebar columns.

sinobest 01-10-2021 04:45 AM

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


https://search.google.com/test/rich-results?id=eYGv6xKE6Qs7-lPv8xVcZw
Structured data parsing errors
Duplicate unique property
1 instance
Line 1327:1
"@type"


How to solve this issue, please?

PhilJ 01-10-2021 05:02 AM

Re: X-Cart reBOOT (reDUX) Template
 
/skin/reboot/custom/json_ld.tpl

Replace...
Code:

"@type": "AggregateRating",
"bestRating": "5",
"ratingCount": "12",
"ratingValue": "5"
},

With...
Code:

"aggregateRating": {
"@type": "AggregateRating",
"bestRating": "5",
"ratingCount": "{if $ratingCount}{$ratingCount}{else}12{/if}",
"ratingValue": "{if $ratingValue}{$ratingValue}{else}5{/if}"
},

Then in /reboot/get_testimonials.php

After...

Code:

$smarty->assign("rtestimonials",$rtestimonials);

Insert...
Code:

$qry = db_query("SELECT COUNT(rating) AS rating_total FROM reboot_testimonials WHERE approved = 'Y'");
$result = db_fetch_array($qry);
$total = $result['rating_total'];
$smarty->assign("ratingCount", $total);

$qry = db_query("SELECT AVG(rating) AS rating_average FROM reboot_testimonials WHERE approved = 'Y' AND rating != 0");
$result = db_fetch_array($qry);
$average = ROUND($result['rating_average'], 1);
$smarty->assign("ratingValue", $average);

So if you have the testimonials addon enabled, it'll use those rating values.

https://search.google.com/test/rich-results?id=rce6h-G6-hQQi7_eYRxjRg

ITVV 01-10-2021 06:03 AM

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

Originally Posted by PhilJ
@ ITVV, not easily, as it works off the 12 column Bootstrap grid. I'll have a think.

Why not just put the .container max-width back to 1366px?

I see you changed yours to 1200px.
(bootstrap-overrides.css)

EDIT: you could try adding this CSS to bootstrap-overrides.css ...
Then use those classes for the main and sidebar columns.

@PhilJ

Hi Phil,

Sorry I have only just noticed that you updated your answer here with regard to my column widths etc.

BINGO - easy when you know how :D/ :D/ :D/

Changed it back to: -

.container { max-width: 1366px !important; }

and also reset col-lg-9, col-lg-3 in /skin/reboot/custom/main/columns.tpl

Now I have what I want (which was always there - it was operator error on my part :oops: :oops: ).

As always many thanks for your kind help :D :D :D

Regards

ITVV

PhilJ 01-11-2021 09:37 AM

Re: X-Cart reBOOT (reDUX) Template
 
https://www.smashingmagazine.com/2021/01/front-end-performance-2021-free-pdf-checklist

Dougrun 01-11-2021 11:41 AM

Re: X-Cart reBOOT (reDUX) Template
 
where can i remove the link to the contact us page? I would like the info page but not the form.

PhilJ 01-11-2021 11:44 AM

Re: X-Cart reBOOT (reDUX) Template
 
@Doug, which contact links? There's a few. Maybe PM me your site URL so I can take a look.

PhilJ 01-11-2021 02:39 PM

Re: X-Cart reBOOT (reDUX) Template
 
@doug replied.

sinobest 01-12-2021 01:11 PM

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


Featured Categories



How to change the image number, width, and use class="img-fluid", please?


Thanks, PhilJ.

Dougrun 01-13-2021 08:16 AM

Re: X-Cart reBOOT (reDUX) Template
 
minor annoyance, but in the homepage section, Unless you have TABS selected, the new arrivals header shows even though its empty of items and "Homepage new arrivals products display" is disabled. Dialogs and Basic show the "New Arrivals" header but nothing under it.

PhilJ 01-15-2021 04:00 AM

Re: X-Cart reBOOT (reDUX) Template
 
Hi Doug, if there's no new arrivals ($new_arrivals), it shouldn't be displaying the header. Maybe clear your x-cart cache, or change the new arrivals module settings.

The homepage products template is /skin/reboot/custom/home/welcome_products.tpl

PhilJ 01-15-2021 04:03 AM

Re: X-Cart reBOOT (reDUX) Template
 
@ Sinobest, edit /skin/reboot/css/misc/flickity.css

Change...
Quote:

.carousel-generic .carousel-cell img:not(.auto-height) { max-height: 100px; width: auto; }

PhilJ 01-21-2021 10:57 AM

Re: X-Cart reBOOT (reDUX) Template
 
21st Jan 2021 - Bootstrap updated to v4.6.0

New Lookbook addon - Demo - Admin Screenshot

Changelog

Dougrun 01-21-2021 11:07 AM

Re: X-Cart reBOOT (reDUX) Template
 
being new to this, is bootrap something I need to update manually? planning on switching our site tonight.


nevermind, i read the changelog.

PhilJ 01-21-2021 11:10 AM

Re: X-Cart reBOOT (reDUX) Template
 
You can just upload the new Bootstrap v4.6.0 JS and CSS files, which are here.

There's only one other change required, which is to the custom breadcrumbs CSS, which is noted in the changelog.

Don't forget to clear the template cache afterwards also.

Dougrun 01-21-2021 11:28 AM

Re: X-Cart reBOOT (reDUX) Template
 
yeah, figured that one out. I downloaded mine on 1/6, and see theres a 1/10 update with a few fixes/changes. Are those files available or automatically updated if I re-download?


All times are GMT -8. The time now is 08:47 PM.

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