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 - Responsive Template (https://forum.x-cart.com/showthread.php?t=66570)

Blainevk 03-01-2018 10:58 PM

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?

PhilJ 03-02-2018 04:54 AM

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}

Blainevk 03-02-2018 06:55 AM

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}

PhilJ 03-02-2018 07:35 AM

Re: X-Cart - reBOOT - Responsive Template
 
^ I've updated the code a little, so you might want to redo.

Blainevk 03-02-2018 08:31 AM

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?

Blainevk 03-02-2018 08:42 AM

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.

PhilJ 03-02-2018 08:46 AM

Re: X-Cart - reBOOT - Responsive Template
 
Uncheck admin > reboot settings > addons > "Enable testimonials addon"
Or, install the addon.

Eyeglasses Expert 03-03-2018 05:37 PM

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

Eyeglasses Expert 03-14-2018 08:31 AM

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

Eyeglasses Expert 03-24-2018 06:15 PM

Re: X-Cart - reBOOT - Responsive Template
 
How to only list 4 static pages titles at footer, pls? tks


All times are GMT -8. The time now is 04:51 PM.

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