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 08-11-2022 02:00 AM

Re: X-Cart reBOOT (reDUX) Template
 
@PHilJ
how to add an extra field in a category, and display the content in H1, instead of the category name.

Say a category name is "Car", by default this category will display "Car" in the h1 tag.
If we have an extra field, we can use "Best Car" instead of "Car".

sinobest 08-11-2022 03:39 AM

Re: X-Cart reBOOT (reDUX) Template
 
How to disable text editor, pls?

elmirage001 08-11-2022 03:24 PM

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

I've updated to v4.7.12.9 and all looks good!

Thank you so much for the UPDATES Folder with all of the individual updates. This was brilliant and made upgrading from v4.7.12.4 a breeze.

Thanks again!

Paul

PhilJ 08-12-2022 09:07 AM

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

@PHilJ how to add an extra field in a category, and display the content in H1, instead of the category name.
Follow these steps (make a full backup first)...

1) Patch the database with the new category field...
Code:

ALTER TABLE `xcart_categories` ADD `category_alt` VARCHAR(255) NOT NULL DEFAULT '';

2) Edit /include/func/func.category.php


After...
Code:

        $to_search[] = 'node.seo';

Insert...
Code:

        $to_search[] = 'node.category_alt';

3) Edit /admin/category_modify.php

After...
Code:

            'seo'                  => $seo, // Reboot

Insert...
Code:

            'category_alt'    => $category_alt, // Reboot

4) Edit /skin/reboot/admin/main/category_modify.tpl

After...
Code:

  {include file="main/clean_url_field.tpl" clean_url="" show_req_fields="Y" clean_urls_history=""}
{/if}


Insert...
Code:

<tr>
  <td height="10" class="FormButton" nowrap="nowrap">{$lng.lbl_category} ALT:</td>
  <td width="10" height="10">&nbsp;</td>
  <td height="10">
    <input type="text" name="category_alt" id="category_alt"  maxlength="255" size="65" value="{$current_category.category_alt|escape:"html"}" />
  </td>
</tr>


5) In Admin > Tools > Maintenance, click "Rebuild category indexes".

6) In Admin > Tools > Maintenance, Clear the X-Cart cache.

After that you should be able to save the new category fields and be able to use {$category.category_alt} in the template.

PhilJ 08-12-2022 09:08 AM

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

How to disable text editor, pls?
Why would you want to do that?

sinobest 08-12-2022 02:32 PM

Re: X-Cart reBOOT (reDUX) Template
 
I have disabled the editor already, only keeping the plain text editor.
https://kingphp.com/911.html

Because When I add some js code for the category of https://shop.optical4u.com. The first time, the front code is ok. After, I re-edit the category, the front js code will be changed.

sinobest 08-12-2022 04:32 PM

Re: X-Cart reBOOT (reDUX) Template
 
how to an image for a category top banner, same as https://www.eyewearcanada.com/women-glasses , do not take care the white text.


if possible, add 2 different size images for desktop and mobile.
tks


https://shop.optical4u.com/eyeglasses/
just add the image between the top menu and breadcrumb.

sinobest 08-12-2022 05:15 PM

Re: X-Cart reBOOT (reDUX) Template
 
https://shop.optical4u.com/womens-glasses/

1 how to display only 2 products per row, pls?
2 the product thumbnail is too small, how to change the size, pls?

sinobest 08-12-2022 06:35 PM

Re: X-Cart reBOOT (reDUX) Template
 
@PhilJ
how to add {$category.category_alt}, pls?

sinobest 08-15-2022 02:03 AM

Re: X-Cart reBOOT (reDUX) Template
 
how to change "Featured Categories" style as this, pls?
https://forum.x-cart.com/attachment.php?attachmentid=5687&stc=1&d=166055780 7


when mouse over, category description displays.

sinobest 08-15-2022 02:40 AM

Re: X-Cart reBOOT (reDUX) Template
 
How to set Category icon size to 450px, pls?

neonrider 09-21-2022 10:22 AM

Re: X-Cart reBOOT (reDUX) Template
 
1 Attachment(s)
Could you please advise how to change Alt Text limit for larger product photos on X-cart 4.7.12?

PhilJ 09-21-2022 10:26 AM

Re: X-Cart reBOOT (reDUX) Template
 
Try /skin/common_files/modules/Detailed_Product_Images/colorbox_image.tpl

Around line 75, increase the value in red...
Code:

{$i.alt|truncate:"35":"..."|escape}

neonrider 09-21-2022 12:28 PM

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

Originally Posted by PhilJ
Try /skin/common_files/modules/Detailed_Product_Images/colorbox_image.tpl

Around line 75, increase the value in red...
Code:

{$i.alt|truncate:"35":"..."|escape}


I changed the 35 to 80 and was sure this will work, but it didn't. I rebooted my PC just to make sure and also tried it on Chrome browser instead of Firefox, but to my surprise the text under a large photo in a pop-up still is limited to about 35 chars and is being followed by a three pointer. Then I remembered one trick, to UNCHECK (and then check again) the "Do not check if templates are changed (Smarty compile_check)" under GENERAL settings and it worked.

mabseyuk 10-02-2022 02:21 AM

Re: X-Cart reBOOT (reDUX) Template
 
I seem to have a problem with Paypal Express Checkout and the Redux Template with one page checkout. As a Customer I do the following steps:

1) Add a Product to my Cart
2) Click Checkout in the Top Right
3) I login or fill in my adress details on the checkout page and click Submit.
4) I select my postage option and click Submit Order

5) I get redirected to login to Paypal
6) I pay via PayPal and it redirects back to my site
7) And that's it, I am hung on the Submitting your order page, with a twirling please wait.
8) It stays hung forever.

9) I abandon the page it is stuck on and go back to my sites checkout page
10) I select Submit Order again
11) Order goes through and I get the order confirmation, without going to Paypal with no problems.

So it looks like it is missing some sort of session information and by going back to the cart page and clicking Submit order again, it goes through

Is this a known bug, or am I missing something?

Thanks

Mabs

vulcan-works 10-02-2022 06:21 PM

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

Originally Posted by mabseyuk
I seem to have a problem with Paypal Express Checkout and the Redux Template with one page checkout. As a Customer I do the following steps:
Mabs


I have customers tell me this exact same thing in the steps you just listed.lol
Never really investigated it, I assume it is the paypal module getting outdated. But it could be template related.

PhilJ 10-02-2022 11:41 PM

Re: X-Cart reBOOT (reDUX) Template
 
https://forum.x-cart.com/showthread.php?t=78253

vulcan-works 10-04-2022 04:38 AM

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

Originally Posted by PhilJ


That just says not to use an email and to use API credentials for paypal express.

Dougrun 10-05-2022 11:51 AM

Re: X-Cart reBOOT (reDUX) Template
 
Where can I edit the size of the category icon? Also, If I delete the icon, it uses another one which isnt right.

PhilJ 10-05-2022 11:13 PM

Re: X-Cart reBOOT (reDUX) Template
 
Adjust the CSS class in /skin/reboot/css/reboot.css

Quote:

img.subcategory-is-icon { max-height: 75px; width: auto; }

Dougrun 10-06-2022 08:32 AM

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

Originally Posted by PhilJ
Adjust the CSS class in /skin/reboot/css/reboot.css




nevrmind, i found it.

Dougrun 10-06-2022 08:37 AM

Re: X-Cart reBOOT (reDUX) Template
 
nevermind, found it in subcategories.tpl

sinobest 10-06-2022 07:38 PM

Re: X-Cart reBOOT (reDUX) Template
 
how to remove the second category description title, pls?

PhilJ 10-06-2022 11:20 PM

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

Replace the code at the bottom with... (additional code highlighted in red)
Code:

{if $current_category.seo ne "" && $config.Reboot.reboot_category_descr_2 ne ""}
  {if $config.Reboot.reboot_category_descr_2 eq "default"}
    {include file="customer/main/subcategory_descr.tpl" field=$current_category.seo br=true nodialog=true}
  {elseif $config.Reboot.reboot_category_descr_2 eq "truncated"}
    {include file="customer/main/subcategory_descr.tpl" field=$current_category.seo truncate=500 br=true nodialog=true}
  {elseif $config.Reboot.reboot_category_descr_2 eq "scroller"}
    {include file="customer/main/subcategory_descr.tpl" field=$current_category.seo scroller=300 nofade=false br=true nodialog=true}
    {/if}
{/if}

See also template settings > catalog > "Category description 2" to change display type.

sinobest 10-07-2022 07:23 AM

Re: X-Cart reBOOT (reDUX) Template
 
By default, each row displays 6 products on the categories page, how to only display 3 on the desktop, pls?

PhilJ 10-07-2022 08:35 AM

Re: X-Cart reBOOT (reDUX) Template
 
Assuming you're set the template settings > catalog > Products display to "Switchable Grid"

You set the columns in /skin/reboot/js/reboot.js

You can adjust the col-x-x values

Code:

    if ($('#body-container').hasClass('container-fluid')){  <----- Meaning the layout is set to full width
        if (has_sidebar){
            $list_cols = 'col-'+p_cols_mob+' col-sm-6 col-md-6 col-lg-6 col-xl-4 col-xxl-3';
        } else {
            $list_cols = 'col-'+p_cols_mob+' col-sm-6 col-md-6 col-lg-4 col-xl-3 col-xxl--5 col-xxxl--2';
        }
    } else {
        if (has_sidebar){
            $list_cols = 'col-'+p_cols_mob+' col-sm-6 col-md-6 col-lg-6 col-xl-4';
        } else {
            $list_cols = 'col-'+p_cols_mob+' col-sm-6 col-md-6 col-lg-4 col-xl-3';
        }
    }



If you've set the template settings > catalog > Products display to "Masonry"

You can change the columns by editing /skin/reboot/customer/main/products_t.tpl

Code:

{assign var="masonry_cols" value="col-12 col-sm-6 col-md-3 col-md-4 col-lg-4 col-xl-4"}
Info at https://getbootstrap.com/docs/4.6/layout/grid/

sinobest 10-07-2022 03:12 PM

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


when i enable 'New Arrivals' module, the footer will not display properly.

sinobest 10-07-2022 05:22 PM

Re: X-Cart reBOOT (reDUX) Template
 
https://www.helloeyewear.com/meridian-tortoiseshyell-eyeglasses/
Related Products is too small.


How to change related product image size, pls?
how to set 3 products per row as product list, pls

jmccunep 11-11-2022 02:24 PM

Re: X-Cart reBOOT (reDUX) Template
 
How to upgrade from Google Universal Analytics to Google Analytics 4.0?

My site is running reBOOT (should be up-to-date) on x-cart 4.7.11.

Under skin/common_files/modules/Google_Analytics I find the following 3 template files:

ga_code.tpl
ga_code_async.tpl
ga_code_universal.tpl

Dougrun 11-11-2022 02:57 PM

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

Originally Posted by jmccunep
How to upgrade from Google Universal Analytics to Google Analytics 4.0?

My site is running reBOOT (should be up-to-date) on x-cart 4.7.11.

Under skin/common_files/modules/Google_Analytics I find the following 3 template files:

ga_code.tpl
ga_code_async.tpl
ga_code_universal.tpl





start reading here:

https://forum.x-cart.com/showpost.php?p=416682&postcount=18

sinobest 11-28-2022 07:43 PM

Re: X-Cart reBOOT (reDUX) Template
 
1 Attachment(s)
how to change Best Seller's product image width, pls?

PhilJ 12-01-2022 09:44 AM

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

.carousel-generic .carousel-cell img:not(.auto-height) { max-height: 100px; width: auto; }
Change 100px to a higher value.

sinobest 12-05-2022 03:03 AM

Re: X-Cart reBOOT (reDUX) Template
 
How to generate IOS Mobile App, and Android Mobile App, pls?


All times are GMT -8. The time now is 03:58 PM.

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