Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

DIFFERENT page per skin?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-18-2014, 04:13 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default DIFFERENT page per skin?

I am using a dedicated mobile skin (xMobile) for smartphones.
For the most part, simply editing each skin's css is sufficient to strip css formatting or solve layout issues. This has been just fine, until today.

I am testing a new customer support/help desk SaaS and I think I found one I really like -- more on that later -- and this helpdesk software has a brilliant embedded form that also has integrated K-base and suggestive search results, based on what the customer is typing in the message field. Freaking brilliant.

But.

The embedded widget is simply not compatible with smart phones at this time.

SO -- the only solution is to not use it for now for mobile only.

I KNOW that I can trap for a skin on the page:

Code:
{if $alt_skin_info.name eq "mobileskin-name"} mobileskin content {else} primaryskin content {/if}

HOWEVER -- I need to load an entirely DIFFERENT php page for this situation.

for mobile skin:
/help.php?section=contactus

for everything else:
static embedded page

Any thoughts how to trap for this?

Thanks,
J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #2  
Old 06-19-2014, 02:41 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: DIFFERENT page per skin?

In case I am searching for this in the future...
Should I be editing

/skin/common_files/customer/home_main.tpl

?

I think so... but I need to figure out the logic.

I REALLY WANT to include a 301 redirect in htaccess to force all stray links for /help.php?section=contactus to 301 to /contact_us.html, EXCEPT if the customer is viewing the mobile skin (if using a smartphone), the page load needs to be /help.php?section=contactus

But the htaccess 301 will trump anything we do in home_main.tpl

Hmmm....

THE LOGIC needs to be:

1. IF mobile skin, the contact_us page must be default, /help.php?section=contactus
2. IF NOT mobile skin, the contact_us page is simply /contact_us.html

Any suggestions now?
Thanks!
J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 07:34 PM.

   

 
X-Cart forums © 2001-2020