Mobile Code error

General ShopSite user discussion

Mobile Code error

Postby VinceS » Thu Mar 07, 2013 11:17 am

The following code is from the mb_MobileDefaultProduct.sst

<div id="mb_footer" class="full">[-- STORE.MB_FOOTER --]</div>
<div id="mb_pc">[-- SS_MOBILE_PC --]</div>
[-- IF GiftCert --][-- GiftCertlink --][-- END_IF --]

</body>
</html>
[-- END_DEFINE MORE_INFO_PAGE --]

This code is supposed to add these two links:
View Full HTML Site
Gift Certificates

The links appear on ALL pages but I can not get the View Full HTML Site link to appear on Product More Information Pages. The Gift Certificates link appears just fine.

Any ideas?
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

Re: Mobile Code error

Postby Jim » Thu Mar 07, 2013 3:04 pm

I have confirmed that this is happening on product more information pages but not on regular store pages. I have logged a bug for our developers to look into why the problem is occurring and get it fixed. Not sure on the time frame when it will happen.

I'm not sure if there is a work around for this issue. Here is what is output for the tag [-- SS_MOBILE_PC --] on a normal page
<a href="http://<Store.domain.com>/<page.html>" onclick="set_mobile_cookie('ss_mb_0000001001', 'st', 2);return true;" title="View Full HTML Site">View Full HTML Site</a>

So you might be able to create that code with other template tags and get it to work.
something like <a href="[-- PRODUCT.MOREINFOURL --]"> onclick=set_mobile_cookie('ss_mb_[-- STORE_Serial_Number --]','st',2);return true;" title="View Full HTML Site">View Full Html Site</a>

I don't know what the possible parameters for set_mobile_cookie mean other than the fist part is the store serial number, the 'st' and 2 I have no Idea what they are. I couldn't find the function set_mobile_cookie in the javascript files that we ship so it may be something that is added by the generation code.

Disclaimer: I didn't try this so I don't know if it will work but you might give it a try.
There is probably different code generated if you are on the full html site for the link to go back to the mobile site so that might be something that won't work.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 40 guests