Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart reBOOT (reDUX) Template

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #441  
Old 08-11-2022, 02:00 AM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default 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".
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #442  
Old 08-11-2022, 03:39 AM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: X-Cart reBOOT (reDUX) Template

How to disable text editor, pls?
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #443  
Old 08-11-2022, 03:24 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default 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
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
PhilJ (08-11-2022)
  #444  
Old 08-12-2022, 09:07 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
sinobest (08-12-2022)
  #445  
Old 08-12-2022, 09:08 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart reBOOT (reDUX) Template

Quote:
How to disable text editor, pls?
Why would you want to do that?
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
sinobest (08-12-2022)
  #446  
Old 08-12-2022, 02:32 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default 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.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #447  
Old 08-12-2022, 04:32 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default 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.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #448  
Old 08-12-2022, 05:15 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default 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?
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #449  
Old 08-12-2022, 06:35 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: X-Cart reBOOT (reDUX) Template

@PhilJ
how to add {$category.category_alt}, pls?
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #450  
Old 08-15-2022, 02:03 AM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default 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.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020