Thread: Skin Switch

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 47
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Skin Switch

    This new mod provides the capability to dynamically switch templates from the catalog side.

    Download link is: https://www.zen-cart.com/downloads.php?do=file&id=2009
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Jan 2008
    Posts
    103
    Plugin Contributions
    0

    Default Re: Skin Switch

    swguy, thanks for posting this! I'm trying to incorporate this function automatically based on mobile detect...would you be able to tell me how to automatically have template #1 used for desktops and template #2 used for mobile devices? I don't want to just rely on a responsive template as it still does not display the way I want on a mobile device. Having two templates would give me the flexibility I need. I would also like to mask the url to remove the template name if possible--that way if I sent a link from a mobile device to a desktop user, they would not be directed to the wrong template. Any help you can provide is appreciated. Thanks!

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Skin Switch

    I'm actually working on the next version of this mod, which has a second set of example files that show you how to do automatic setup. Stay tuned!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Skin Switch

    The module has been updated with an example of how to do automatic template selection.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Skin Switch

    Hi,

    " I would also like to mask the url to remove the template name if possible--that way if I sent a link from a mobile device to a desktop user, they would not be directed to the wrong template. Any help you can provide is appreciated."

    I Would like to have an update regarding above question. Thx!

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Skin Switch

    Example2 in Skin Switch (just released in Sept) shows you how to do this.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    May 2007
    Posts
    79
    Plugin Contributions
    1

    Default Re: Skin Switch

    Great add-on . Now my templates switch from PC to mobile every Sunday.

    function use_nondefault_template() {
    // check whatever you want to here.
    if (date("D") == "Sun") {
    return true;
    }
    What I would really like them to do is switch whenever a mobile is detected. Would someone be kind enough to tell me how I can set up a mobile checking function in such a way as to operate this switch when ,

    if ($detect->isMobile()) {
    return true;

    Thanks.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Skin Switch

    Use a mobile detect library such as http://mobiledetect.net/.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    May 2007
    Posts
    79
    Plugin Contributions
    1

    Default Re: Skin Switch

    Thanks for replying. I've got the Mobile_Detect.php alright, but I can't figure out where to put it and how to get set_template.php to refer to it.

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,621
    Plugin Contributions
    123

    Default Re: Skin Switch

    Look at example 2 - it shows how to use a single check.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. how to install free template skin into my old skin?
    By andrewmax81 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 14 Nov 2009, 04:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR