Page 3 of 3
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Fri Apr 05, 2013 9:13 pm
by Owens
That's just bizarre, that it would work on 1.11.4, but when you apply the 1.11.5 update it all falls apart.
I am at a loss for ideas.
I will have to install CMSMS 1.11.5 and OSC 2.2 /w STS on my local WAMP stack to find out what's going on. Probably will not get to it until next week sometime.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Fri Apr 05, 2013 10:08 pm
by rotezecke
forgot the actual shopskin link
http://www.rpc.com.au/shopskin/
which is valid xhtml, running 1.11.4
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Mon Apr 22, 2013 1:44 am
by rotezecke
it might be too early to celebrate (i only did some rudimentary testing) but so far i am pleased and relieved to report that the 1.11.6 update appears to fix the problem reported in relation to 1.11.5 update. i assume this bug
http://dev.cmsmadesimple.org/bug/view/9078
was to blame, and change-log indicates it has been addressed.
anyway, shop skin helper looks like it's been restored to former glory. thanks for listening.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Mon Apr 22, 2013 8:05 pm
by Owens
Fantastic.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Thu Sep 12, 2013 10:54 am
by rotezecke
Owens
Could I ask you to look at this thread?
http://forum.cmsmadesimple.org/viewtopi ... =3&t=67874
Do you think the shop_skin_helper has anything to do with this? i doubt it, but am at a loss.
cheers, mario
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Thu Sep 12, 2013 11:25 am
by Owens
I checked it out, and the shop skin helper shouldn't have anything to do with those issues. As this script only requires HTML comment tags be added to the CMSMS theme.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Thu Sep 12, 2013 11:07 pm
by rotezecke
stupid me, i posted the wrong link. sorry, here's the correct one if you are interested:
http://forum.cmsmadesimple.org/viewtopi ... =3&t=67873
the stylesheet name was created but not found, and this only happened on the shop pages. the issue is resolved (user error :)
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Fri Sep 13, 2013 7:38 pm
by Owens
Great! I'm glad you have it resolved.

Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Fri Oct 11, 2013 4:21 am
by rotezecke
i've stumbled over a limitation that i'd love to overcome somehow.
Smarty code like
Code: Select all
{cge_is_smartphone assign='is_mobile'}
{if $is_mobile}{set_a_cookie}{/if}
does not work. i'm pretty sure cge_is_smartphone is testing the webserver that sends the request for the shopskin, and not the client. any idea how/if I can integrate client testing from shop pages using CMSMS tags/modules?
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Sun Oct 13, 2013 2:18 pm
by Rolf
rotezecke wrote:i've stumbled over a limitation that i'd love to overcome somehow.
Smarty code like
Code: Select all
{cge_is_smartphone assign='is_mobile'}
{if $is_mobile}{set_a_cookie}{/if}
does not work.
The smartphone part is correct.
What part doesn't work for you?
Perhaps for the cookie part this helps:
http://www.cmscanbesimple.org/blog/set- ... ug-cookies
Rolf
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Sun Oct 13, 2013 10:04 pm
by rotezecke
hi Rolf,
the shopskin helper creates a simple skin ("
http://www.rpc.com.au/index.php?page=shopskin") that is split up in three parts and later included by my ecommerce CMS. the three parts are actually written to the server. therefore, i believe, as far as CMSMS is concerned, the client request comes from my own webserver (which i assume is not a smartphone :).
i have some ideas how to work around this issue, but for maintainability, i would have wanted such solutions to be native to CMSMS. looks like this is not possible though.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Mon Oct 14, 2013 7:40 pm
by Owens
@rotezecke
You are correct.
The shop skin helper is looking at the final page that is returned to the browser client; all of the CMSMS stuff has fired well before the shop skin helper views the page.
I haven’t tested this exactly. However I have done similar things to get CMSMS content into third party systems.
In a Nut Shell
Create a new template that only has the CMSMS mobile cookie tags in it. Create a page that uses this new template. Have this new CMSMS page called directly by the third party php code that you want to be skinned.
A Rough Explanation
In CMSMS create a template with only the CMSMS cookie stuff. Something like…
Code: Select all
{content assign='foo'}{cge_is_smartphone assign='is_mobile'}{if $is_mobile}{set_a_cookie}{/if}
Then create a page that uses this new template. Uncheck show in menu, and make it not searchable, etc. Give it an alias name like "cmsmsmobilecookiecode" and save it.
In the third party template (where you are including the shop skin files) add some PHP code in the appropriate place to call the CMSMS cookie stuff page. Something like…
Code: Select all
<?php
$mobilecookiepage = file_get_contents('http://www.yourdomain.com/index.php?page=cmsmsmobilecookiecode');
echo $mobilecookiepage;
?>
Let me know how it works out for you.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Wed Oct 16, 2013 11:53 pm
by rotezecke
This works very well. CMSMS template:
Code: Select all
{content assign=foo}
{cge_is_smartphone assign='is_mobile'}
{if $is_mobile}true{else}false{/if}
and the other CMS now includes:
Code: Select all
$is_mobile = file_get_contents(HTTP_SERVER . '/index.php?page=mobileTest');
define('IS_MOBILE', filter_var($is_mobile, FILTER_VALIDATE_BOOLEAN));
Thanks a lot, again.
Re: CMSMS Shop Skin Helper for osCommerce and Zen Cart + oth
Posted: Thu Oct 17, 2013 7:34 am
by Owens
rotezecke wrote:This works very well.
Glad I could point you towards a possible solution. And thanks for sharing your actual solution. Should help others on their journey.