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.


All times are GMT -8. The time now is 06:59 PM.

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