The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-24-2012, 11:40 PM
Koh Samui's Avatar
Koh Samui is offline
Senior Member
 
Join Date: Aug 2011
Posts: 216
Default

My sort by text has changed


Hi Ecwid forum and support team.

i had renamed my sort by box to from date added to Latest, however it seems to have changed back to date added.

Would be great if someone could advise how I can change it back to latest.

This is what it my wordpress page source looks like below with latest at the bottom.

Thank you for your help and advice.

Paul

http://kohsamui.co.uk


[ecwid_script][ecwid_script] [ecwid_minicart] *[ecwid_categories]**[ecwid_searchbox] *[ecwid_productbrowser]

 

<script type="text/javascript">// <![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[ Ecwid.OnPageLoaded.add(function(page) { skimlinks(); });
// ]]></script>

<script type="text/javascript">// <![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[ Ecwid.OnPageLoad.add(function(page) { jQuery('div.ecwid-SearchPanel').toggle(page.type != 'PRODUCT'); })
// ]]></script>

<script type="text/javascript">// <![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[ ecwidMessages = { "CategoryViewOrder.date":"Latest" }
// ]]></script>
  #2  
Old 09-07-2012, 02:44 PM
Koh Samui's Avatar
Koh Samui Koh Samui is offline
Senior Member
 
Join Date: Aug 2011
Posts: 216
Default

Hi and Ecwid support team and Forum.

Would be great if you could advise on the above as very much appreciate your help.

Many thanks.

Paul
  #3  
Old 09-10-2012, 07:42 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Koh Samui View Post
Hi Ecwid forum and support team.

i had renamed my sort by box to from date added to Latest, however it seems to have changed back to date added.

Would be great if someone could advise how I can change it back to latest.

This is what it my wordpress page source looks like below with latest at the bottom.

Thank you for your help and advice.

Paul

http://kohsamui.co.uk


[ecwid_script][ecwid_script] [ecwid_minicart] *[ecwid_categories]**[ecwid_searchbox] *[ecwid_productbrowser]

&nbsp;

<script type="text/javascript">// <![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[ Ecwid.OnPageLoaded.add(function(page) { skimlinks(); });
// ]]></script>

<script type="text/javascript">// <![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[ Ecwid.OnPageLoad.add(function(page) { jQuery('div.ecwid-SearchPanel').toggle(page.type != 'PRODUCT'); })
// ]]></script>

<script type="text/javascript">// <![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[
// < ![CDATA[ ecwidMessages = { "CategoryViewOrder.date":"Latest" }
// ]]></script>
Hi Paul,

I've inspected the code. The reason why it doesn't work is an incorrect formatting. It seems like the Wordpress editor has broken the code. In order to fix that, please replace all the <script> blocks you mentioned above with the following code:
Code:
<script type="text/javascript">
  Ecwid.OnPageLoaded.add(function(page) { skimlinks(); });

  Ecwid.OnPageLoad.add(function(page) { jQuery('div.ecwid-SearchPanel').toggle(page.type != 'PRODUCT'); });

  ecwidMessages = { "CategoryViewOrder.date":"Latest" };
</script>
It should fix the issue. As you see, it will also group them all in one block and remove extra CDATAs.

Please let me know if you need any further assistance.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
  #4  
Old 09-10-2012, 04:40 PM
Koh Samui's Avatar
Koh Samui Koh Samui is offline
Senior Member
 
Join Date: Aug 2011
Posts: 216
Default

Hi Matvey,

Thank you for your continued help,

I deleted all the code in my wordpress ecwid store source page and added your code above in html mode and my store disappeared. I have replaced the old code back to get the store back, please advise.

Many thanks Matvey,

Paul
  #5  
Old 09-10-2012, 06:09 PM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Koh Samui View Post
Hi Matvey,

Thank you for your continued help,

I deleted all the code in my wordpress ecwid store source page and added your code above in html mode and my store disappeared. I have replaced the old code back to get the store back, please advise.

Many thanks Matvey,

Paul
Paul,

Sorry, I forgot to mention that the integration codes (shortcodes like [ecwid_script] and other) shouldn't be removed - if you remove them, the store will certainly disappear. As you can see from the codes I suggested, they should replace the <script> blocks only (the custom scripts).
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
  #6  
Old 09-10-2012, 11:15 PM
Koh Samui's Avatar
Koh Samui Koh Samui is offline
Senior Member
 
Join Date: Aug 2011
Posts: 216
Default

Hi Matvey,

Sorry, my fault for deleting everything.

My wordpress Ecwid page now looks like this:

[ecwid_script][ecwid_script] [ecwid_minicart] [ecwid_categories] [ecwid_searchbox] [ecwid_productbrowser]
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page) { skimlinks(); });

Ecwid.OnPageLoad.add(function(page) { jQuery('div.ecwid-SearchPanel').toggle(page.type != 'PRODUCT'); });

ecwidMessages = { "CategoryViewOrder.date":"Latest" };
</script>



The sort by box still says date added and not Latest and the white space at the bottom of the store page still remains.

Look forward to your advice Matvey,

Thank you so much,

Paul
  #7  
Old 09-11-2012, 09:37 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Koh Samui View Post
Hi Matvey,

Sorry, my fault for deleting everything.

My wordpress Ecwid page now looks like this:

[ecwid_script][ecwid_script] [ecwid_minicart] [ecwid_categories] [ecwid_searchbox] [ecwid_productbrowser]
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page) { skimlinks(); });

Ecwid.OnPageLoad.add(function(page) { jQuery('div.ecwid-SearchPanel').toggle(page.type != 'PRODUCT'); });

ecwidMessages = { "CategoryViewOrder.date":"Latest" };
</script>



The sort by box still says date added and not Latest and the white space at the bottom of the store page still remains.

Look forward to your advice Matvey,

Thank you so much,

Paul
Paul,

The page code still contains some <p> tags right inside the <script> blocks. Those tags break the codes so they failed to properly execute. That's why the custom translation doesn't work.

I've further investigated the problem. As far as I can see, the whole thing is caused by Wordpress editor - it converts newlines to HTML paragraphs, replaces apostrophes with typographic quotes and so on. What is especially weird, it does such things even when the editor in 'HTML' mode. It's quite annoying, but it can be overcome by using some 3d-party plugins that allows to insert raw codes and prevent them from being corrupted by WP. For example, you can try this one:
http://wordpress.org/extend/plugins/raw-html

When it's installed, you can wrap the script blocks with [raw][/raw] and they will work without WordPress messing it up. IMPORTANT: do not wrap the Ecwid integration codes with the 'raw' tags, otherwise they won't work.

Another workaround that will probably help you is removing all empty lines from the page code so the code will look like this:
Code:
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page) { skimlinks(); });
Ecwid.OnPageLoad.add(function(page) { jQuery('div.ecwid-SearchPanel').toggle(page.type != 'PRODUCT'); });
ecwidMessages = { "CategoryViewOrder.date":"Latest" };
</script>
Please try either of the suggested approaches (or both of them) and let me know if it helps. Thank you.

As for the white spaces, please try to also follow my advice regarding modifying your CSS styles.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
  #8  
Old 09-11-2012, 09:51 AM
Koh Samui's Avatar
Koh Samui Koh Samui is offline
Senior Member
 
Join Date: Aug 2011
Posts: 216
Default

Hi Matvey,

Thank you for your suggestions, I am out most of today and am back this afternoon. I will try your suggestions then and let you know how i get on.

Thank you for your advice and support.

Paul
  #9  
Old 09-11-2012, 08:31 PM
Koh Samui's Avatar
Koh Samui Koh Samui is offline
Senior Member
 
Join Date: Aug 2011
Posts: 216
Default

Hi Matvey,

I have used the plugin raw-html, and it has worked fine, the sort by now says latest!

Thank you so much for your help with this, as always yourself and the Ecwid support team always find a solution.

Regarding the white space please can you advise here
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:58 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.