Post by yest » Wed Aug 24, 2011 6:29 pm

hello..
im using oc 1.5.1.1 and have a problem... when i add a checkbox option i can see that the option added to the shopping cart but when i try to confirm the order its not leting me to go on ...
the second problem is that in the shopping cart i see the output text of the options with Questions marks and a half of the text .. i using an hebrew lang...

i uploded a pic and and point to the problem with an arrow..

please help me

Attachments

wpstore_1314181574671.png

wpstore_1314181574671.png (2.95 KiB) Viewed 2238 times


New member

Posts

Joined
Thu Aug 05, 2010 1:57 am

Post by i2Paq » Wed Aug 24, 2011 6:38 pm

Does it work with the default theme and English language?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by yest » Wed Aug 24, 2011 6:59 pm

i supose yes...

New member

Posts

Joined
Thu Aug 05, 2010 1:57 am

Post by uksitebuilder » Wed Aug 24, 2011 8:37 pm

problem is due to substr() function shortening option values names etc

Because of hebrew language, php interpretter is getting the count incorrect of where to shorten the text and is cutting a character in half. Therefore rendering a '?'

Answer is to change substr() to mb_substr()

Problem with this is not all servers have the mbstring function installed.

This is a bug, but needs to be posted to the bug forum/topic

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by yest » Wed Aug 24, 2011 8:49 pm

thank u for u answer... u mean that i have to contact my server and asked theme to change to that ?
this is the reasen that the order confirm is stuck ?

New member

Posts

Joined
Thu Aug 05, 2010 1:57 am

Post by yest » Wed Aug 24, 2011 9:56 pm

help please

New member

Posts

Joined
Thu Aug 05, 2010 1:57 am

Post by yest » Thu Aug 25, 2011 3:33 am

uksitebuilder wrote:problem is due to substr() function shortening option values names etc

Because of hebrew language, php interpretter is getting the count incorrect of where to shorten the text and is cutting a character in half. Therefore rendering a '?'

Answer is to change substr() to mb_substr()

Problem with this is not all servers have the mbstring function installed.

This is a bug, but needs to be posted to the bug forum/topic
can u help me please im stuck...??

New member

Posts

Joined
Thu Aug 05, 2010 1:57 am

Post by uksitebuilder » Thu Aug 25, 2011 4:57 am

There is no easy answer.

1. It is a bug in OC core code
2. to fix would require all substr() functions being replaced by mb_substr() function

This will not happen / be fixed that way because not every server has mbstring() functions/module installed with PHP by default.

I'm sorry but I do not know an easy fix for this.

Please post in the 1.5.1.1 bug topic where Daniel will see.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by yest » Thu Aug 25, 2011 5:14 am

thank u ..i posted it in the bug topic...

New member

Posts

Joined
Thu Aug 05, 2010 1:57 am

Post by Xsecrets » Thu Aug 25, 2011 5:25 am

well mbstring is very common on servers these days, and many programs have it as a requirement, so I don't know that it would be that big of deal to just have opencart require it.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by uksitebuilder » Thu Aug 25, 2011 5:30 am

I know Daniel added it to 1.5.1 for catalog/model/catalog/product.php

But then people were posting that it was causing errors (because it not being installed)

So he changed it for 1.5.1.1

For some reason during the three or four uploads that took place when 1.5.1.1 was released, it crept back in due to some problems with Google SVN.

I'm pretty sure it will be gone again in the next update.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Xsecrets » Thu Aug 25, 2011 6:08 am

well let me expand my statement I don't think it would be a problem if done correctly. If you add it in the code you also need to add it to the requirements, and to the install checks.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by uksitebuilder » Thu Aug 25, 2011 6:13 am

I agree, it is very handy to have.

I just dont think Daniel will go for it, personally

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Xsecrets » Thu Aug 25, 2011 6:22 am

well yeah I was just stating my opinion which very often is not the same as Daniel's.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US
Who is online

Users browsing this forum: Bing [Bot] and 65 guests