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
  #1321  
Old 04-25-2018, 10:22 AM
 
jmccunep jmccunep is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 68
 

Default Re: X-Cart - reBOOT - Responsive Template

It appears there is possibly a coding error in latest reBOOT, a minor one. When customers submit contact-us forms the subject lines they use are overwritten, replaced by the same generic subject line every time.

Maybe the code in this template is off? reboot/customer/help/contactus.tpl

Perhaps something wrong related to this variable? $smarty.get.subject

Could this be a problem only with our installation of reBOOT (and reCAPTCHA) which you installed for us, Phil.

X-cart 4.7.9 with matching reBOOT template.
__________________
J McCune Porter | twinoakshammocks.com
X-Cart Gold version 4.7.11, unix server
X-Cart reBOOT Template by X-Cart Mods
Reply With Quote
  #1322  
Old 04-25-2018, 11:01 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

In skin/reboot/customer/help/contactus.tpl

You can replace...
Code:
<input type="text" class="maxlength" maxlength="100" id="subject" name="subject" size="32" maxlength="128" value="{if $smarty.get.subject}{$smarty.get.subject}{else}{$userinfo.subject|escape}{/if}" />
With...
Code:
<input type="text" class="maxlength" maxlength="100" id="subject" name="subject" size="32" maxlength="128" value="{$userinfo.subject|escape}" />
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
jmccunep (04-25-2018)
  #1323  
Old 05-05-2018, 07:28 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,164
 

Default Re: X-Cart - reBOOT - Responsive Template

Hi Phil,

Sorry to trouble you as I know that you are busy with reDux

I am having lots of issues with reboot dynamic search.

I have this logged as an error: -

Code:
[05-May-2018 08:45:19 Europe/London] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/fgfrrtfx/public_html/website.com/reboot_dynamic_search.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:6 Stack trace: #0 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search.php(1) : eval()'d code(1) : eval()'d code(1): eval() #1 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search.php(1) : eval()'d code(1): eval() #2 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search.php(1): eval() #3 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search_queries.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(3): include_once('/home/accfcfbf/...') #4 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search_queries.php(1) : eval()'d code(1) : eval()'d code(1): eval() #5 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search_queries.php(1) : eval()'d code(1): eval() #6 /home/accfcfbf/public_html/itvv.com/reboot_dynamic_search_queries.php(1): eval() #7 {main} thrown in /home/fgfrrtfx/public_html/website.com/reboot_dynamic_search.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 6

I beleive that it is caused because we are using PHP 7? The error referes to 'mysql_connect()' which should be 'mysqli_connect()' for PHP 7 if I'm not mistaken?

I cannot change this because the file is encoded.

Could you be so kind as to post an updated reboot_dynamic_search.php file please?

Would any other files need patching for search to work as it used to?

Many thanks and kind regards as always

ITVV

PS Looking forward to seeing all your hard work on reDux
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote
  #1324  
Old 05-05-2018, 07:54 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

Hiya, post a ticket and I'll attach you the PHP7 compatible files. Or you can get updates from here. We no longer encode any files since a few years back.
__________________
xcartmods.co.uk
Reply With Quote

The following 2 users thank PhilJ for this useful post:
elmirage001 (05-05-2018), ITVV (05-05-2018)
  #1325  
Old 05-05-2018, 08:08 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,164
 

Thumbs up Re: X-Cart - reBOOT - Responsive Template

WOW Thanks Phil

All sorted

BRILLIANT SUPPORT AS ALWAYS

Saturday afternoon and got a response within 25 mins of posting a request.

Many many thanks Phil

Kind regards from a very happy customer

ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote

The following user thanks ITVV for this useful post:
elmirage001 (05-05-2018)
  #1326  
Old 05-15-2018, 07:59 AM
 
jmccunep jmccunep is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 68
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Originally Posted by PhilJ
In skin/reboot/customer/help/contactus.tpl

You can replace...
Code:
<input type="text" class="maxlength" maxlength="100" id="subject" name="subject" size="32" maxlength="128" value="{if $smarty.get.subject}{$smarty.get.subject}{else}{$userinfo.subject|escape}{/if}" />

With...
Code:
<input type="text" class="maxlength" maxlength="100" id="subject" name="subject" size="32" maxlength="128" value="{$userinfo.subject|escape}" />

For the above contact-us template code, it would help our customer support staff if a unique identifier could be auto-appended (auto-pre-pended actually) to the customer-entered subject line. The identifier could be for example a date-time snippet or numeric counter number.

Can anyone suggest code (Smarty? PHP?) that would accomplish this so that the result of the subject value would be changed, conceptually, as follows?

value="[pre-pended counter or date-time or other unique identifier][space]{$userinfo.subject|escape}"
__________________
J McCune Porter | twinoakshammocks.com
X-Cart Gold version 4.7.11, unix server
X-Cart reBOOT Template by X-Cart Mods
Reply With Quote
  #1327  
Old 05-15-2018, 11:35 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

You could use {$smarty.now} in the subject line as a unique numeric identifier (unix timestamp).

Edit skin/common_files/mail/help_contactus_subj.tpl

Eg.
Code:
{config_load file="$skin_config"}{$config.Company.company_name}: {$lng.eml_contact_us_subj} | {$smarty.now} | {$smarty.now|date_format:$config.Appearance.date_format} | {$smarty.now|date_format:$config.Appearance.time_format} | {$contact.firstname} {$contact.lastname} | {$contact.email} | {$contact.subject}
And/or add the necessary code to skin/reboot/mail/html/help_contactus.tpl
__________________
xcartmods.co.uk
Reply With Quote
  #1328  
Old 05-16-2018, 11:40 AM
 
jmccunep jmccunep is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 68
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Originally Posted by PhilJ
You could use {$smarty.now} in the subject line as a unique numeric identifier (unix timestamp).

Edit skin/common_files/mail/help_contactus_subj.tpl

Eg.
Code:
{config_load file="$skin_config"}{$config.Company.company_name}: {$lng.eml_contact_us_subj} | {$smarty.now} | {$smarty.now|date_format:$config.Appearance.date_format} | {$smarty.now|date_format:$config.Appearance.time_format} | {$contact.firstname} {$contact.lastname} | {$contact.email} | {$contact.subject}
And/or add the necessary code to skin/reboot/mail/html/help_contactus.tpl

Thanks for being willing to look at this!

Would this code be accurate/correct then and would it append the date & time to the end of the subject line?

{config_load file="$skin_config"}{$config.Company.company_name} : {$lng.eml_contact_us_subj}{$smarty.now|date_format :'%Y-%m-%d %H:%M:%S'}

To put the date & time BEFORE the subject would this be accurate?

{config_load file="$skin_config"}{$config.Company.company_name} : {$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}{$lng.eml_contact_us_subj}

Oh, should insert a space as well between subject and date. Sorry, Smarty newbie, don't now basics how to insert literals...
__________________
J McCune Porter | twinoakshammocks.com
X-Cart Gold version 4.7.11, unix server
X-Cart reBOOT Template by X-Cart Mods
Reply With Quote
  #1329  
Old 05-17-2018, 01:24 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

Put what you like in there
__________________
xcartmods.co.uk
Reply With Quote
  #1330  
Old 05-17-2018, 07:23 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart - reBOOT - Responsive Template

Hiya, GDPR files attached for reBOOT v4.7.9. Get the GDPR module files for your version here.

Any problems, please let me know.

Always a good idea to get yourself a decent file comparison tool - KDiff - WinMerge - Beyond Compare - etc.

Thanks for your patience re. reDUX, temporary demo here.
Attached Files
File Type: zip X-Cart_Reboot_GDPR_Patches_4.7.9.zip (84.8 KB, 9 views)
__________________
xcartmods.co.uk
Reply With Quote

The following 3 users thank PhilJ for this useful post:
elmirage001 (05-17-2018), ITVV (05-17-2018), jmccunep (05-23-2018)
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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 05:42 AM.

   

 
X-Cart forums © 2001-2020