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

X-Cart - reBOOT - Responsive Template

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1301  
Old 03-01-2018, 10:58 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: X-Cart - reBOOT - Responsive Template

HI,

In the welcome section of the home page (xcart) ReBoot it displays the full Name {{name}}, what can I use to only show the First Name?
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #1302  
Old 03-02-2018, 04:54 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
In the welcome section of the home page (xcart) ReBoot it displays the full Name {{name}}, what can I use to only show the First Name?

In home.php

Before...

Code:
/** * Assign Smarty variables and show template */

Insert...

Code:
if ($user_account['firstname']) { $display_greet_visitor_firstname = ($user_account['firstname']); $smarty->assign('display_greet_visitor_firstname', $display_greet_visitor_firstname); }

Then in skin/reboot/custom/home/home_welcome.tpl

Replace instance(s) of...
Code:
$display_greet_visitor_name
With...
Code:
$display_greet_visitor_firstname

If you want to be able to use the first name globally, instead add the PHP code to auth.php before ?> and use Smarty {$display_greet_visitor_firstname} along with {if $login}...{/if}
__________________
xcartmods.co.uk
Reply With Quote
  #1303  
Old 03-02-2018, 06:55 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: X-Cart - reBOOT - Responsive Template

================
Then in skin/reboot/custom/home/home_welcome.tpl

Replace...
$display_greet_visitor_name

With...
$display_greet_visitor_firstname
================

Thanks Phil,

It didn't work at first, until I noticed a second instance of $display_greet_visitor_name...


{if $display_greet_visitor_firstname}
{include file="customer/dialog.tpl" title=$lng.lbl_welcome_back|substitute:"name":$dis play_greet_visitor_firstname content=$smarty.capture.dialog}
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #1304  
Old 03-02-2018, 07:35 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

^ I've updated the code a little, so you might want to redo.
__________________
xcartmods.co.uk
Reply With Quote
  #1305  
Old 03-02-2018, 08:31 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: X-Cart - reBOOT - Responsive Template

Updated the code a little....

do you mean: skin/reboot/custom/home/home_welcome.tpl

or all the ReBoot Files?
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #1306  
Old 03-02-2018, 08:42 AM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Re: X-Cart - reBOOT - Responsive Template

Hi Phil,

Last night I found out that I could not log into my store... I got it fixed...

Now I'm getting a bunch of SQL Errors, every minute or so.....:

=========================
[02-Mar-2018 11:32:35] SQL error:
Site : http://isexypartynetwork.net/isexyredpoints/giftmall
Remote IP : 2601:c0:c100:97b7:1f6:deeb:6772:9624
Logged as : blainevk
SQL query : SELECT * FROM reboot_testimonials WHERE approved='Y' ORDER BY RAND() LIMIT 5
Error code : 1146
Description : Table 'db624068427.reboot_testimonials' doesn't exist
Request URI: /isexyredpoints/giftmall/login.php?mode=logout
Backtrace:
/homepages/9/d622476657/htdocs/isexypartynetwork.net/isexyredpoints/giftmall/include/func/func.db.php:738
/homepages/9/d622476657/htdocs/isexypartynetwork.net/isexyredpoints/giftmall/include/func/func.db.php:615
/homepages/9/d622476657/htdocs/isexypartynetwork.net/isexyredpoints/giftmall/reboot_get_testimonials.php:9
/homepages/9/d622476657/htdocs/isexypartynetwork.net/isexyredpoints/giftmall/auth.php:131
/homepages/9/d622476657/htdocs/isexypartynetwork.net/isexyredpoints/giftmall/login.php:50
=========================

http://isexypartynetwork.net/isexyredpoints/giftmall/home.php

I looked in my Xcart Database and didn't see anything "ReBoot"... are there files to upload to my Xcart SQL Database?

Blaine.
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote
  #1307  
Old 03-02-2018, 08:46 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

Uncheck admin > reboot settings > addons > "Enable testimonials addon"
Or, install the addon.
__________________
xcartmods.co.uk
Reply With Quote
  #1308  
Old 03-03-2018, 05:37 PM
 
Eyeglasses Expert Eyeglasses Expert is online now
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Re: X-Cart - reBOOT - Responsive Template

Product Additional Data:

How about add another function?
Product Uploads - Let registered customer to upload extra information with there order
Reply With Quote
  #1309  
Old 03-14-2018, 08:31 AM
 
Eyeglasses Expert Eyeglasses Expert is online now
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Re: X-Cart - reBOOT - Responsive Template

When I set
Grid view product block minimum height (pixels) to 260px, the product block displays very long at first, about 2 seconds later, the blocks become ok.
www.buyeyeglasses.net
Reply With Quote
  #1310  
Old 03-24-2018, 06:15 PM
 
Eyeglasses Expert Eyeglasses Expert is online now
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Re: X-Cart - reBOOT - Responsive Template

How to only list 4 static pages titles at footer, pls? tks
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 10:54 AM.

   

 
X-Cart forums © 2001-2020