Zen Cart Logo
Forums / Addon Templates / Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Views: 43,791

Results 41 to 56 of 56
27 Dec 2016, 8:49 AM
#41
cruzat avatar

cruzat

New Zenner

Join Date:
Dec 2016
Posts:
5
Plugin Contributions:
0

Making v154 DIY/Picaflor-Azul templates work with v1.5.5

mydanilo:

Oh boy, this should really not be such a pita. Can we just upload the modified responsive_sheffield_blue files somewhere once all edited and working? Can't imagine everyone wants to do all that editing. Then download the faulty layout_controller.php and discover that further editing needs to be done to the , 0, 0, 0, 0, 0, 0 line mistake. The sql_patch seems to be redundant too. Cannot ADD column show_box_min_width because it already exists.

We can do better. No?

Yeah really. Because I just screwed the whole site up. Thank goodness it was on a test server.

28 Dec 2016, 3:51 AM
#42
cruzat avatar

cruzat

New Zenner

Join Date:
Dec 2016
Posts:
5
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Well alright then. In my case I went back and followed post #8 carefully although I was still confused a little but where I was confused I took a guess at what he meant and was right.
I now have the Sheffield Blue template working correctly on my test server.

I have not tested any of them yet but I assume that the should fix the other Picaflor Azul templates that are doing the same thing.

Thanks everyone for this thread

5 Feb 2017, 7:34 PM
#43
tonyreynolds avatar

tonyreynolds

New Zenner

Join Date:
Dec 2012
Posts:
68
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

cruzat:

Well alright then. In my case I went back and followed post #8 carefully although I was still confused a little but where I was confused I took a guess at what he meant and was right.
I now have the Sheffield Blue template working correctly on my test server.

I have not tested any of them yet but I assume that the should fix the other Picaflor Azul templates that are doing the same thing.

Thanks everyone for this thread

I am using Responsive Sheffield Blue 2.0 and Zen Cart 1.5.5d. I have followed the guide in post #8, and have done it twice. Still getting the error. The only thing that is unclear is #2. Do I do anything with that file?
I got the layout_controller.php from github, although I could not find the link, but googled the file. It appeared to be the correct file based on the description.
Using WinMerge I made the appropriate changes to the DIY template comparing against the html_header.php from the 1.5.5d distribution. It was pretty straightforward. The remaining differences appear to be part of the template.
So I still get the error. Any suggestions?

5 Feb 2017, 7:40 PM
#44
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

tonyreynolds:

I am using Responsive Sheffield Blue 2.0 and Zen Cart 1.5.5d. I have followed the guide in post #8, and have done it twice. Still getting the error. The only thing that is unclear is #2. Do I do anything with that file?
I got the layout_controller.php from github, although I could not find the link, but googled the file. It appeared to be the correct file based on the description.
Using WinMerge I made the appropriate changes to the DIY template comparing against the html_header.php from the 1.5.5d distribution. It was pretty straightforward. The remaining differences appear to be part of the template.
So I still get the error. Any suggestions?
What exactly is the error that YOU are getting?
And your URL where we can test it?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2017, 8:27 PM
#45
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

tonyreynolds:

I am using Responsive Sheffield Blue 2.0 and Zen Cart 1.5.5d. I have followed the guide in post #8, and have done it twice. Still getting the error. The only thing that is unclear is #2. Do I do anything with that file?
I got the layout_controller.php from github, although I could not find the link, but googled the file. It appeared to be the correct file based on the description.
Using WinMerge I made the appropriate changes to the DIY template comparing against the html_header.php from the 1.5.5d distribution. It was pretty straightforward. The remaining differences appear to be part of the template.
So I still get the error. Any suggestions?

I'm running Responsive Sheffield Blue 2.0 on zc 1.5.5d

The file includes/functions/extra_functions/zca_responsive_functions mentioned in item 2 of the list on post #8 - I'm using the file from the zc 1.5.5d fileset.

There was a problem with too many zero's in the github version of the layout_controller and I don't know if its been fixed - but check post #5 in this thread if you think this might be an issue for you too.

5 Feb 2017, 8:43 PM
#46
tonyreynolds avatar

tonyreynolds

New Zenner

Join Date:
Dec 2012
Posts:
68
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

DrByte:

What exactly is the error that YOU are getting?
And your URL where we can test it?

The site is at http://bms.night.net from the "Shop" drop down menu select "Clone Kits", add the item to the cart and proceed through checkout the error popup message occurs when you select add to cart and all subsequent pages through checkout.

Tony

5 Feb 2017, 10:05 PM
#47
tonyreynolds avatar

tonyreynolds

New Zenner

Join Date:
Dec 2012
Posts:
68
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

The exact error I am getting is:
An unknown response null: :text/html; charset:utf=8: :Bad Request was received while processing an ajax call. The action you requested could not be completed.

Tony

5 Feb 2017, 11:41 PM
#48
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

tonyreynolds:

The exact error I am getting is:
An unknown response null: :text/html; charset:utf=8: :Bad Request was received while processing an ajax call. The action you requested could not be completed.

Tony
See my fix in post #2 of this thread. It's the same as point #7 in post #8.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Feb 2017, 1:50 AM
#49
tonyreynolds avatar

tonyreynolds

New Zenner

Join Date:
Dec 2012
Posts:
68
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

DrByte:

See my fix in post #2 of this thread. It's the same as point #7 in post #8.

Thanks.That worked perfectly. I missed putting the 1.5.5d distribution file into the responsive_sheffield_blue template directory. I apologize for such a simple blunder.
Thanks again.

Tony

22 Feb 2017, 7:15 AM
#50
cruzat avatar

cruzat

New Zenner

Join Date:
Dec 2016
Posts:
5
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Sorry I hadn't been back here in a while.
Dang I just tried what DrByte said on my test server and it was easier to follow than any of the rest and worked perfect.

11 Apr 2017, 12:46 PM
#51
charmlt avatar

charmlt

New Zenner

Join Date:
Mar 2005
Location:
Earth
Posts:
83
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Worked for me too! Thanks DrByte.

19 Apr 2017, 1:43 PM
#52
chief avatar

chief

New Zenner

Join Date:
Oct 2008
Location:
Barry, UK
Posts:
24
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Followed steps here and i have the search bar visible on a mobile phone, but when i click inside it the screen keyboard appears then disappears.
not sure whats going on, help please.
The site is at https://www.tlsystems.co.uk/new

cheers dave

9 Nov 2018, 11:06 AM
#53
kgl_racing avatar

kgl_racing

New Zenner

Join Date:
Jan 2013
Posts:
68
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Hello rbarbour

I have done the steps in the tutorial to make the template work in 1.5.5, except for the last step
"6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature."

I don't see this download in your signature, where can i find this?
I really want this template to work on my site, but i get also the "WARNING: An Error occurred, please refresh the page and try again."
When clicking the all product, newest, Featured,....

Please help

my log

[08-Nov-2018 16:17:37 Europe/Amsterdam] Request URI: //index.php?main_page=products_new, IP address: ***********
#1 trigger_error() called at [/home/
/domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/home/
/domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/home/
/domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/home/
/domains//public_html/shop2019b/includes/classes/split_page_results.php:78]
#5 splitPageResults->__construct() called at [/home/
/domains//public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php:35]
#6 include(/home/
/domains//public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php) called at [/home//domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php:14]
#7 require(/home/
/domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php) called at [/home//domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php:19]
#8 require(/home/
/domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php) called at [/home//domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:251]
#9 require(/home/
/domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/home//domains/***********/public_html/shop2019b/index.php:97]

[08-Nov-2018 16:17:37 Europe/Amsterdam] PHP Fatal error: 1109:Unknown table 'p' in field list :: select count(p.products_id) as total ==> (as called by) /home//domains//public_html/shop2019b/includes/classes/split_page_results.php on line 78 <== in /home//domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php on line 171

12 Nov 2018, 9:20 AM
#54
kgl_racing avatar

kgl_racing

New Zenner

Join Date:
Jan 2013
Posts:
68
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

rbarbour:

Making them work with v1.5.5

This is for those upgrading their picaflor-azul or DIY Responsive templates.

A few major changes to the responsive components.

1 - /includes/classes/Mobile_Detect.php
This was updated to the latest version.

2 - /includes/functions/extra_functions/zca_responsive_functions.php
This was added in v1.5.5

3 - /includes/auto_loaders/config.display_mode.php
This file was removed in v1.5.5 and replaced with config.zca_layout.php

4 - /includes/init_includes/init.display_mode.php
This file was removed in v1.5.5 and replaced with init.zca_layout.php

5 - /includes/templates/responsive_classic/common/html_header.php
The call to include the Mobile_Detect class has changed from:

if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
$detect = new Mobile_Detect;
}

> 
> to:
> ```php
if (!class_exists('Mobile_Detect')) {
  include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
  $detect = new Mobile_Detect;
  $isMobile = $detect->isMobile();
  $isTablet = $detect->isTablet();
  if (!isset($layoutType)) $layoutType = ($isMobile ? ($isTablet ? 'tablet' : 'mobile') : 'default');

the device specific if statements have changed from:

if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
} else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
echo $responsive_tablet;
} else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
echo '';
} else {
echo $responsive_default;
}

> 
> to:
> ```php
  if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
    echo $responsive_mobile;
  } else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
    echo $responsive_tablet;
  } else if ( $_SESSION['layoutType'] == 'full' ) {
    echo '';
  } else {
    echo $responsive_default;
  }

6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature.

Cheers!

Hello rbarbour

I have done the steps in the tutorial to make the template work in 1.5.5, except for the last step
"6 - the DIY changes for /admin/layout_controller.php were never ported to v1.5.5
You can download the v1.5.5 layout_controller.php from the GIT link in my signature."

I don't see this download in your signature, where can i find this?
I really want this template to work on my site, but i get also the "WARNING: An Error occurred, please refresh the page and try again."
When clicking the all product, newest, Featured,....

Please help

my log

[08-Nov-2018 16:17:37 Europe/Amsterdam] Request URI: //index.php?main_page=products_new, IP address: ***********
#1 trigger_error() called at [/home/
/domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/home/
/domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/home/
/domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/home/
/domains//public_html/shop2019b/includes/classes/split_page_results.php:78]
#5 splitPageResults->__construct() called at [/home/
/domains//public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php:35]
#6 include(/home/
/domains//public_html/shop2019b/includes/modules/responsive_sheffield_blue/product_listing.php) called at [/home//domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php:14]
#7 require(/home/
/domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_modules_product_listing.php) called at [/home//domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php:19]
#8 require(/home/
/domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/templates/tpl_products_new_default.php) called at [/home//domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:251]
#9 require(/home/
/domains//public_html/shop2019b/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/home//domains/***********/public_html/shop2019b/index.php:97]

[08-Nov-2018 16:17:37 Europe/Amsterdam] PHP Fatal error: 1109:Unknown table 'p' in field list :: select count(p.products_id) as total ==> (as called by) /home//domains//public_html/shop2019b/includes/classes/split_page_results.php on line 78 <== in /home//domains//public_html/shop2019b/includes/classes/db/mysql/query_factory.php on line 171

7 Dec 2018, 2:12 PM
#55
gprit avatar

gprit

Zen Follower

Join Date:
Mar 2009
Posts:
176
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

eek!!! and to think that Picaflor actually suggested that I SHOULD use v 1.5.5f!!!...and I got my hosting company to upgrade their install function to reflect this!!

Sounds like a heck of a lot of changes to try and get this working - not sure I want to spend my time doing this!!! Now that my hosting company has upgraded to V1.5.5f, is there any way I can install.use v1.5.1 so I can use that template as it is????

8 May 2019, 4:56 PM
#56
ravynw34 avatar

ravynw34

Zen Follower

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
112
Plugin Contributions:
0

Re: Making v154 DIY/Picaflor-Azul templates work with v1.5.5

Hi,
I am trying to figure out what is the best course of action. I have a client that is on a very customized version of Picaflor-Azul's Stirling Grand Template. Opinions wanted :)
Would be it easier to update to work with 1.5.6 or should I just customize the Responsive Classic in stock Zen Cart?

Thanks
Colleen