Forums / Templates, Stylesheets, Page Layout / Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Sticky

Started by picaflor_azul on 16 Mar 2016, 11:30 PM · Views: 363,092

Results 521 to 540 of 1,106
12 May 2018, 11:54 PM
#521
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

This is the out-of-the-box define_main_page of responsive_classic:

<?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) { ?>

<a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book-mobile.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a>
  
<?php  } else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){ ?>

<a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a>

<?php  } else if ( $_SESSION['layoutType'] == 'full' ) { ?>

<a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a>

<?php  } else { ?>

<a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a>

<?php  } ?>
<p class="biggerText">The template package uses PHP Mobile Detect to serve up the optimized layout based on device.  
    If you are on a Desktop and want to view the Tablet layout <a class="red" href="index.php?main_page=index&layoutType=tablet">use this link.</a>  
    If you want to view the Mobile layout <a class="red" href="index.php?main_page=index&layoutType=mobile">use this link.</a>  
    To switch back to a Desktop <a class="red" href="index.php?main_page=index&layoutType=default">use this link.</a></p>
    
<p>This content is located in the file at: <code> /languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php</code></p>
<p>You can quickly edit this content via Admin->Tools->Define Pages Editor, and select define_main_page from the pulldown.</p>
<p><strong>NOTE: Always backup the files in<code> /languages/english/html_includes/your_template</code></strong></p>

In my custom file I have the 'this content....' part removed and have only jpgs which are controlled by the first part of the code re desktop/tablet/mobile.

Trying to add my own bit of text above the jpgs with ckeditor in the define pages tools breaks the page and puts the text in the middle of a hodge podge of bits of code and all the jpgs -so the jpg for mobile and tablet show up on the deskptop along with bits of code.

Add regular text editor instead of ckeditor in the define pages works but I can't stlye the text at all with html tags or I get the same broken page.

So what I tried was using the bottom section of the stock file ('this content...) and deleted the stock text and replaced it with my own, including substituting my own words I want in color red in place of the href links. This worked except there was no corresponding red class defined in the stylesheet. When I added that, the color worked. A wild and crazy way to skin a cat, admittedly! But I was unable to edit the main page otherwise - this is why I wondered if there is some sanitize feature or other unintended reason why the ckeditor won't function on that page because of the resident php stuff.

13 May 2018, 11:26 AM
#522
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,129
Plugin Contributions:
56

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

The beauty, in my opinion, of the define-pages is that you can include PHP conditionals in that definition. The downside of that, as you've found, is that you cannot use an HTML editor when you've got HTML+PHP in the page's content.

You've just got to bite-the-bullet and hand-code that HTML.

13 May 2018, 4:23 PM
#523
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

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

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

lat9:

... you cannot use an HTML editor when you've got HTML+PHP in the page's content.

You've just got to bite-the-bullet and hand-code that HTML.

Thanks. I wanted to make sure I hadn't missed a boat somewhere ;o)

30 May 2018, 2:17 AM
#524
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

I'm having the BLANK SCREEN issue after installing css_js_loader version 5.1.1 OR version 4.0.3 on the responsive_classic template..
Installed 1.5.5f manually and thru my host(s) Softaculous and Installitron (sp)
Running 1.5.5f on PHP 7.1 and tested on two different hosts.
Godaddy & Host Tornado (hostt.net) which I have been running ZenCart 1.5 & PHP 5.x for over 4 years now and haven't had any issues.
Have done several installs of css_js_loader with out any issues until now.

View source and all the code is there but I get a white blank screen with the responsive_classic template.
Switch to the Classic template and all's well.
Why is this font awesome css being pulled from a remote site?
When I plug that CSS URL into a browser it errors out.
I'm thinking that's the problem...

+++++++++++++++++++++

<base href="http://www.linuxguy2.com/zc155f/" /> <link rel="canonical" href="http://www.linuxguy2.com/zc155f/" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/responsive_classic/css/print_stylesheet.css" /> <link rel="stylesheet" type="text/css" href="/zc155f/includes/templates/responsive_classic/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="/zc155f/includes/templates/responsive_classic/css/stylesheet_colors.css" /> <link rel="stylesheet" type="text/css" href="/zc155f/includes/templates/responsive_classic/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/responsive_classic/css/responsive.css" /><link rel="stylesheet" type="text/css" href="includes/templates/responsive_classic/css/responsive_default.css" /> <script type="text/javascript">document.documentElement.className = 'no-fouc';</script> <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> </head>
31 May 2018, 8:25 AM
#525
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

BAR CUSTOMER ACCESS TO "MY ACCOUNT"

Since everything is controlled from admin on my site, the Customer doesnt need access to this.

I am just tidying my site up before go live and though I thought I had My Account access all blocked up by code "twiddles" - the first trial client managed to get it up !
Clearly once again I am missing something obvious !
Is there a way of just "killing" My Account??

And as a related issue I want the top navigation bar to always just hold home and logout on any page.
What am I missing or is it really as hard as it seems

Using 1.5.5 f with responsive classic and OPC1.5

31 May 2018, 1:45 PM
#526
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

shayne:

Since everything is controlled from admin on my site, the Customer doesnt need access to this.:dontgetit
So.....
How do I as a customer add Aunt Sally's address to my address book?
How do I change my email to make sure I receive notice of my order?
How do I let you know I have a new phone number in case you need to contact me about my order?
My password was hacked on another site, how can I change it?
I'd like to stop/start your newsletter, please.
Insert a couple more here

How is all this controlled from the admin when some of these database entries are not readily accessible from the admin?

I just can't think of a reason why this would be necessary. Why, in 142,455 members, would this be needed in your particular case?:huh:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

31 May 2018, 6:27 PM
#527
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

dbltoe:

:dontgetit
So.....
How do I as a customer add Aunt Sally's address to my address book?
How do I change my email to make sure I receive notice of my order?
How do I let you know I have a new phone number in case you need to contact me about my order?
My password was hacked on another site, how can I change it?
I'd like to stop/start your newsletter, please.
Insert a couple more here

How is all this controlled from the admin when some of these database entries are not readily accessible from the admin?

I just can't think of a reason why this would be necessary. Why, in 142,455 members, would this be needed in your particular case?:huh:

Login to your account and go to "My Account"
All these parameters can be edited from there.

31 May 2018, 6:47 PM
#528
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

@linuxguy2 -- If you'll notice, I was answering shayne who wants to block My Account from users.

Otherwise, I'm fairly familiar with where those items are located.:P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

1 Jun 2018, 2:18 PM
#529
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Because I have my ZC linked to my factory operational system data base so the office already do it from there and all the customers are on contract so all there details are already handled by exiting systems and delivery route planning.

If I was quite as blunt as dbltoe I would simply say not everyone is trapped corner shop mentalities.
The needs and requirements of each user vary enormously - please do not insult those who have wider needs - experience - than yourself.

In our case the person entering the order will be a junior employee putting in an order for a single small site - some customers have hundreds of sites.

1 Jun 2018, 2:21 PM
#530
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Oh and I dont suppose anybody has a useful answer to my query ?

I have it all fixed by code but find it strange that I just cant "turn it off" simply.

It may clarify things if i explained that my ZC database tables are accessed via ODBC from our factory and things like products and customers details are loaded from our operational databases. So ac ustomer changing a item has the update done in central billing , factory records, delivery plannng system and ZC all from one DB front end in the
office

if anybody is interested I have MS Access code for a simple interface to add/ modify Customer information on ZC via ODBC - certainly a LOT better than fooling around with CSV file !

1 Jun 2018, 2:27 PM
#531
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

shayne:

Oh and I dont suppose anybody has a useful answer to my query ?

I have it all fixed by code but find it strange that I just cant "turn it off" simply.

Generally speaking, not all is controlled through Admin.
Sometimes some codes need to be put...

1 Jun 2018, 5:50 PM
#532
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

shayne:

Oh and I dont suppose anybody has a useful answer to my query ?!

BAR CUSTOMER ACCESS TO "MY ACCOUNT"

Create a observer to catch and redirect away from account edit pages. You may need a message to explain why the links are not working for them.

Dave
Always forward thinking... Lost my mind!

1 Jun 2018, 8:22 PM
#533
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Okay, I'll add blunt and un-experienced to the resume.:P

You've got to admit, though, that what you are doing goes against goal #2 of Zen Cart. #1 being to sell and, #2, allowing customers to keep their data up to date. We have one site that allows users 75 addresses in their address book and allows them to ship to multiple addresses. The opposite end of the spectrum, I guess.

Whether using ODBC or LDAP, the customer and their data is tied to so many tables in the database that it's not just a simple "turn off." This looks like special programming versus help in the forum. Perhaps someone will PM you to further the discussion.

<bluntAlert>This would have also been better discussed outside of the template discussion as a lot of folks don't use the template and, therefore, don't visit this thread. Perhaps https://www.zen-cart.com/forumdisplay.php?28-Managing-Customers-and-Orders would have gotten you a quicker/better answer or a PM.</bluntAlert>

Hope you get it going.:bigups:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Jun 2018, 7:49 AM
#534
shayne avatar

shayne

New Zenner

Join Date:
Mar 2018
Location:
Cornwall
Posts:
26
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Thank you all.

I HAVE the solution I wanted already - but it took so many changed and additional lines of code (with the inherent update maintenance issues) - that I assumed I was being stupid and missing something simple!

Thank you dbltoe -:smile: you are of course right - there is a better forum I shall have a prod there

2 Jun 2018, 4:49 PM
#535
billsey5 avatar

billsey5

New Zenner

Join Date:
Apr 2018
Location:
Oregon
Posts:
13
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

So I'm running pretty much stock 1.5.5e and I'm getting complaints from customers who've been unable to sign up because it's not allowing their birth date. I can turn birth date off but would like to leave it on to help verify the customer is of legal age. In testing I find it all works fine with the normal interface, but if you try it from a mobile device the birth date field is terribly hard to use. Any click into the field brings up the GUI calendar with today selected and the user is required to click the back month arrow about a bazillion times to get to a reasonable date, then when they go to complete their registration it fails with 'are you sure your birth date is correct?" message. How can I fix this, or should I be using a different template than the stock one for mobile?

2 Jun 2018, 5:10 PM
#536
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

billsey5:

So I'm running pretty much stock 1.5.5e and I'm getting complaints from customers who've been unable to sign up because it's not allowing their birth date. I can turn birth date off but would like to leave it on to help verify the customer is of legal age. In testing I find it all works fine with the normal interface, but if you try it from a mobile device the birth date field is terribly hard to use. Any click into the field brings up the GUI calendar with today selected and the user is required to click the back month arrow about a bazillion times to get to a reasonable date, then when they go to complete their registration it fails with 'are you sure your birth date is correct?" message. How can I fix this, or should I be using a different template than the stock one for mobile?

Open:

/includes/templates/responsive_classic/jscript/jscript_responsive_framework.php

Find:

$('input#dob').clone().attr('type','date').insertAfter('input#dob').prev().remove();

Change to:

$('input#dob').clone().attr('type','text').insertAfter('input#dob').prev().remove();
2 Jun 2018, 7:04 PM
#537
billsey5 avatar

billsey5

New Zenner

Join Date:
Apr 2018
Location:
Oregon
Posts:
13
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

Thanks, that worked great. Has that been rolled into new versions or will I have to do it again with my next update?

2 Jun 2018, 8:00 PM
#538
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

billsey5:

Thanks, that worked great. Has that been rolled into new versions or will I have to do it again with my next update?

This is unique to the responsive_classic, pica-flor, DIY templates. Perhaps a configuration should be added for the option to use html5 input types or not.

8 Jun 2018, 6:14 PM
#539
maxbodine avatar

maxbodine

New Zenner

Join Date:
Apr 2009
Posts:
60
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

My mobile menu looses the css style when I get to product info page? Help Please!

Spent hours on here not finding anything close.
I have 1.5.5f , using responsive_classic.
Installed mega menu and use this
@media (min-width:0px) and (max-width:480px){ #mega-wrapper { display:none;visibility:hidden; }
in responsive.css and responsive_mobile.css to hide it.

Installed colorbox, Twitch's grid layout, FedEx Webservice. Also had one page check out installed.

https://uesakausa.com

On a phone when going through my site, I can get to category>subcat > then when I select the individual product info page, my mobile menu looses the css formating and messes up my page layout.

Can't figure it out. Thanking you in advance for any input!

Max

8 Jun 2018, 7:18 PM
#540
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

MaxBodine:

My mobile menu looses the css style when I get to product info page? Help Please!

Spent hours on here not finding anything close.
I have 1.5.5f , using responsive_classic.
Installed mega menu and use this
@media (min-width:0px) and (max-width:480px){ #mega-wrapper { display:none;visibility:hidden; }
in responsive.css and responsive_mobile.css to hide it.

Installed colorbox, Twitch's grid layout, FedEx Webservice. Also had one page check out installed.

https://uesakausa.com

On a phone when going through my site, I can get to category>subcat > then when I select the individual product info page, my mobile menu looses the css formating and messes up my page layout.

Can't figure it out. Thanking you in advance for any input!

Max

Your pictures are very large and so take a long time to load up, also you are using .png picture format not .jpg which is also much larger. Consequently your site takes a very long time to load up.

I suggest you fix the picture sizes first then it might be easier to see what is happening.

For example WG-755.png is 229KB, change it to a slightly lower quality jpg then it is 31KB so loads in about one tenth of the time!